Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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
up vote 0 down vote accepted

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.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .