3

How do I populate a '#' in a mobile browser auto-dialer using tel:123#?

ex:

<a href='tel:123#'>Dial this number</a> 

This will only populate '123' in the native auto-dialer. Any way to include the # in the dialer?

Aaron Benjamin
  • 1,291
  • 3
  • 18
  • 27
  • Possible duplicate of http://stackoverflow.com/questions/4660951/how-to-use-tel-with-star-asterisk-or-hash-pound-on-ios – Brandon Jul 31 '13 at 13:06

2 Answers2

3

You can't, see How to use tel: with * (star, asterisk) or # (hash, pound) on iOs?


Apple Link should be helpful.

To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone application supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone application does not attempt to dial the corresponding phone number.

Community
  • 1
  • 1
Brandon
  • 16,382
  • 12
  • 55
  • 88
2

i have the same issue on android, not only on iphone, and I have solved (at least for Android) by escaping the string:

<button class="phoneCallButton">click me and call an hash number</button>

$(document).ready(function(){ 


  $(".phoneCallButton").click( function()
           {

             window.location = 'tel:'+escape("*123#");
           }
    );
});
Matteo Bononi 'peorthyr'
  • 2,170
  • 8
  • 46
  • 95