Programmatically Dial a Phone Number and Pass Dtmf Using the iPhone Sdk

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

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

How would I dial a number and then key in numbers to the dialpad five seconds after?

See this question on SO: Programmatically Dial a Phone number and pass DTMF using the iPhone SDK

It appears that you cannot dial a number programmatically, but you can achieve what you're trying to do by using ","s in the number that you call.

EX:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:01212842800,,,,,,,,,NUMBER_HERE"]];

With the commas acting as pauses.

IOS calling a number and enter a code

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 

Is it possible to call a telephone number with an extension?

Not 100% sure if this is the answer, but from the RFC you linked on page 14:

tel:+358-555-1234567;postd=pp22

The above URL instructs the local entity to place a voice call to
+358-555-1234567, then wait for an implementation-dependent time (for
example, two seconds) and emit two DTMF dialing tones "2" on the line
(for example, to choose a particular extension number, or to invoke a
particular service).

Hope this helps.

Call out Phone App in iPhone & fill in a phone number ( no dial )

It doesn't appear so, according to the official docs at http://developer.apple.com/library/ios/ipad/#featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html

Sorry.

If you're trying to predial (eg for a calling card) then you could get input from the user, prepend your number, then call the tel URL in one feel swoop. Is that the sort of thing you're trying to accomplish?



Related Topics



Leave a reply



Submit