This question shows research effort; it is useful and clear
6
Save this question.
Show activity on this post.
I'm writing an iPhone application which needs to have an option to call our office. However, the phone number that needs to be dialed has a 5 digit extension.
I know that to call a regular phone number we can use openURL using something like:
[[UIApplication sharedApplication]
openURL:[NSURL URLWithString:@"tel:1-800-555-5555"]];
Can I get this to work with an extension? If so, how?
The Apple docs link to RFC 2806, which describes the URL scheme for tel: and it seems as though extensions are supported, but I can't figure out the syntax from the RFC.
39.1k25 gold badges207 silver badges283 bronze badges
1
Not 100% sure if this is the answer, but from the RFC you linked on page 14:
tel:+358-555-1234567;postd=pp22The 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.
If it is a phone system where you dial the main number, hear a prompt and then enter the extension number then you can include a pause in your number to allow for the call to be picked up. Per the RFC 2806 that you linked to this is done using a "p" pause character for each 1 second pause.
Comments
Explore related questions
See similar questions with these tags.