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.