Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically Dial a Phone number and pass DTMF using the iPhone SDK

Tags:

ios

phone-call

How do you programmatically do the following from the iPhone SDK:

  1. Programmatically Dial a Phone Number through the iPhone SDK

  2. Bypass the dial / cancel prompt that the iPhone brings up

  3. Send additional DTMF after the number is dialed just like how you would program pauses into a regular phone.

I know you can make a tel:// call but the issue is that it brings up the dial / cancel prompt and after that it prevents any future DTMF from being sent.

like image 876
L. DPenha Avatar asked Feb 25 '09 03:02

L. DPenha


1 Answers

The iPhone SDK does NOT give you direct access to dial numbers (imagine if a 'bad' program got on your phone and dialed a pay per minute number on mute so you didn't notice).

However, if you use the tel link, then you should be able to send it "," characters which inserts pauses.

So to dial 555-1212, then wait 4 seconds, then do 12345# on the touch tone you would use tel:5551212,,12345#

Check out https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/PhoneLinks/PhoneLinks.html

like image 102
Adam Davis Avatar answered Sep 20 '22 18:09

Adam Davis