I've been racking my brain trying to get my softphone to dial numbers on web pages. I've gotten the browser to pass the number through to the softphone, but it adds tell:+ to the number and won't call out.

As a matter of last resort, I want to create a batch file to remove the tel:+ from the number. I have never written one before, but I imagine that it would be relatively simple.

The batch file just needs to open the tel: urls and remove tell:+ from the number before passing it on to the softphone.

I would really appreciate it if someone could point me in the right direction.

  • Arthur, do you know if you can send a number to your softphone via the command line? If not, how do you manually send a number to it? Copy and paste? I have some ideas that could work. :) – iglvzx Jun 25 '12 at 17:58
  • Is this for Windows, *nix, OSX, or just on the Internet? Or is it just for mobile devices? If so, what ones? – Canadian Luke Jun 25 '12 at 17:59
  • @Luke I assumed Windows, since Arthur is asking for a Batch script. But it wasn't explicitly clarified. They haven't been here since March, though... – iglvzx Jun 25 '12 at 18:01

If you have a batch file that uses the URL as the command line argument:

launch.bat tell:+800-555-1212

then you could do something like this for your launch.bat:

@echo off

set URL=%1
if not defined URL goto ERR
goto RUN

@echo Please give tell:+ URL on command line
goto END

set GOOD=%URL:~6%
@echo calling: %GOOD%
softphone.exe %GOOD%
goto END


When you run it, it will execute:

softphone.exe 800-555-1212

You will nee to replace "softphone.exe" accordingly.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.