In order to use my softphone I have registered a custom url protocol, cccx
This is then associated with a .bat file that parses the phone and sends the command to the softphone.
The code I use is:
set str=%1
set str=%str:cccx:=%
set str=%str:+=00%
set str=%str:0030=%
set str=%str:-=%
set str=%str: =%
"C:\Program Files (x86)\3CXPhone\3CXPhone.exe" dial:9%str:cccx:=%
However this is not enough, some web pages send characters differently and I can't parse it.
For example, a phone is shown as +39 02 33919999.
I receive this as either str="%2b39+02+33919999" or str="+39%2002%2033919999"
In both cases this must become 00390233919999
I've tried various ways, but can't seem to handle it correctly.
Thank you for any help