4

Possible Duplicate:
How to use tel: with * (star, asterisk) or # (hash, pound) on iOs?

I need to initiate a call which also enters an id separated by #

The problem is that as soon as I insert this special character the method does not fire (as explained in the doc, I know)

Also stringByAddingPercentEscapesUsingEncoding does not change anything.

Is there a workaround? Can I send /simulate key strokes ?

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:12345#2"]]; <- because of the # it does not fire.

Thanks very much....

Cœur
  • 37,241
  • 25
  • 195
  • 267
user387184
  • 10,953
  • 12
  • 77
  • 147

3 Answers3

2

CTCallDialWithID(@"12345#2", -1);

and link with CoreTelephony.

KingofBliss
  • 15,055
  • 6
  • 50
  • 72
  • unfortunately this doesn't fire neither, but thanks for the hint! – user387184 Dec 23 '10 at 15:35
  • Oh yes, this works exactly as required - the only question now left is regarding appstore acceptance as I read in other places....and how would one know which solution is being used for the call... – user387184 Dec 23 '10 at 17:32
  • Appstore will surely accept this.. check the app store for iCallREdialer app, it is implemented using core telephony only. – KingofBliss Dec 25 '10 at 06:17
  • Do you mean "Auto Redial Helper" ? This is the only App I find when searching for "redial". By the way, this seems to return back to the app after the call has been made too! – user387184 Dec 27 '10 at 20:15
  • Just got the confirmation that due to use of this function the app will not be accepted by the app store....need to find an alternative now! – user387184 Feb 02 '11 at 21:34
  • 1
    FYI: Appstore rejected this solution, since it uses private API – user387184 Feb 05 '11 at 04:09
1

I think it's not possible. And in another forum someone asked Apple about that, but never get an answer back

0

According to RFC2806 you've got a 'post-dial' part that seemingly let's you do what you want. Try:

tel:12345;postd=#2
CSkau
  • 625
  • 6
  • 10