3

I want to create a app that will call a number and after a few seconds enter a code. Is this even possible? I searched all over and couldn't find anything about accessing the phone.

Thanks.

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
user739509
  • 813
  • 3
  • 10
  • 19
  • possible duplicate of [Programatically Dial a Phone number and pass DTMF using the iPhone SDK](http://stackoverflow.com/questions/584663/programatically-dial-a-phone-number-and-pass-dtmf-using-the-iphone-sdk) – JasonMArcher Aug 22 '14 at 00:00

2 Answers2

3

No, this is not possible, at least via code. You can use the tel: url schema to call the number.

then use the 'p' for a pauze:

tel:+145555464p123 
rckoenes
  • 69,092
  • 8
  • 134
  • 166
  • So by doing this i will pause the phone call for 123 seconds but i can't enter the code.No? – user739509 May 20 '11 at 08:11
  • Yes, it will call the number then pauze and call 123. – rckoenes May 20 '11 at 08:16
  • I found this link after you sent me in the right direction .Thanks for all the help. http://stackoverflow.com/questions/584663/programatically-dial-a-phone-number-and-pass-dtmf-using-the-iphone-sdk/4943272#4943272 – user739509 May 20 '11 at 08:19
  • Keep in mind that this will require the user's consent. The user will be presented with the number and be asked if they want to call it. If you're trying to do this without the user's consent, well... don't. – Jasarien May 20 '11 at 08:20
  • There will be an alert and the user can choose if he want to dial or cancel. – user739509 May 20 '11 at 08:22
2

You can dial the number with pauses.

If you insert a comma between the phone number and the code you want to dial, it will dial the number, pause, then dial the code.

Other than that, there isn't a way to gain access to the call or phone audio.

Edit I think rckoenes is correct, you should use a p. Inserting a pause into a tel:// link

Community
  • 1
  • 1
jopke
  • 1,186
  • 6
  • 18