Link to home
Start Free TrialLog in
Avatar of thenelson
thenelson

asked on

set url:tel to a website

I am using a webbrowser phone to make outgoing calls. I would like to use it when I click on a phone number link in a webpage. In the registry I have changed HKEY_CLASSES_ROOT\tel\shell\open\command to "https://mywebsite.com/phone.php?number=\" %1 but this is not working. How do I set this to a URL?

Windows 7 64 SP1

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thenelson
thenelson

ASKER

That took care of that problem. I changed HKEY_CLASSES_ROOT\tel\shell\open\command to
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "https://www.website.com/phone.php?number=%1"

But the url:tel routine replaces %1 with tel:[phone number] example: tel:9996665555 instead of just the number.
I changed my php script from:
document.getElementById("tocall").value = $_GET["number"];
to:
document.getElementById("tocall").value = str_replace("tel:", "", $_GET["number"]);
but with this change, nothing gets entered into the "tocall" field. I checked the code with a php debugger and it works fine. I don't know what the problem is. Perhaps another set of eyes might help.
I fixed the psp script problem.

Thanks for your help.