English 中文(简体)
How does "Truphone Anywhere"<TM> place a GSM call on the iPhone?
原标题:

As far as I understand, the only way to place a call from an app is using the tel:// URL scheme, which launches the native phone app. But the Truphone app available on the App Store can place VOIP call even when there is no WIFI available. They say they do it by making a GSM call to their server and routing the VOIP packets over the internet from there.

Rerference: http://blog.truphone.com/2008/12/truphone-on-the-iphone-now-works-without-wi-fi.html

How can I do something similar in my app?

问题回答

As far as the phone s cell hardware is concerned this isn t a call. Its just a 2 way data stream. They are activating the mic and encoding its input and sending that stream to their server, while they receive another stream and play it on the speaker. Their servers then decode the streams and then connect it to a normal phone system so you can talk to someone who doesn t use their service.

Do you want to allow users to contact people outside your userbase? If so that s going to require you to set up a server to decode your streams and then find a VOIP provider that has an API so your server can stream to them. This is possible but it costs.

If you only want user to user this can be done for free but its almost identical to the previous option, just take out the VOIP provider.





相关问题
how do you suppress a direct call to a managed method?

I want to know if this is inherently possible: Think of a cloud scenario. I allow users to upload their .net code onto my server. However to manage things on my server I can t allow users to write ...

F# Riddle: how to call an overload of a method?

First part: call F# from F# Let s say we have the following type defined in F#: type MyClass = static member Overload1 (x, y) = "Pim" static member Overload1 (x : System.Tuple<_, ...

Django: Passing a request directly (inline) to a second view

I m trying to call a view directly from another (if this is at all possible). I have a view: def product_add(request, order_id=None): # Works. Handles a normal POST check and form submission and ...

IPhone Web App reurn to app after call

I have created a web app that produces a list of items to buy, It also gives a link to call the shop using a Tel: link to its phone number. I want to stay on the app page during the call so the user ...

jqgrid add / delete / modify button call a html page

i work with jqgrid for listings only also i don t use jqgrid forms i need to call external forms (example: update.cgi?id=123) to make modifications on the database. how can i make that ? thanks a lot

热门标签