Solved Replace "+" with "00"

Status
Not open for further replies.

John Ranger

Joined
Jan 14, 2017
Messages
21
Reaction score
8
Hi all,

I am struggling with striping the "+" from any international number Format and replace it with "00".

Q: Why I want to do this?
A: Because our VoiP-Provider (or maybe 3CX) seems not to be able to process the "+" - but it works fine if using "00".

Hint: Most international numbers today are found in the Format +xx .... so it is most easy to copy&paste such numbers into the 3CX win phone but then the number is not accepted and must be modified every time in order to work.

So: How do I either make 3CX work with the "+" Format or let it automatically replace the "+" by changing it into "00"?

Thanks for all of your Input and

with Kind regards,

John
 
Hello @John Ranger

The format you stored the numbers is correct and the PBX can handle numbers starting with + just fine. You can create an outbound rule that strips 1 digit and prepend 00 to the outgoing number.
 
  • Like
Reactions: John Ranger
Hi YiannisH,

thanks for your extremely fast Reply! It is highly appreciated.

And yes, your advice perfectly worked.

I have tried more complicated rules like exchanging +41 by a 0 and this worked only when I stripped 2 (not 3) Digits and was searching for "41", not "+41" - so I was supposing that the "+" is ignored within the PBX (which was a false thought on my side).

Thanks again and

with Kind regards,

John
 
Well, it seems this behavior changed in version 14 and newer. In earlier versions was possible to strip out the '+' sign in outbound rules.
With newer versions you need to have active E.164 processing. The '+' sign is converted to '00' (or other international dialing code for USA and others), before the dialed number reaches outbound rules.

If you have '00' defined as international dialing code in E.164 and you don't remove it there, you need an outbound rule striping 4 digits and prepending '0' for dialing case +41xxx -- being transformed to 0041xxx by E.164 processing and to 0xxx by outbound rule.

I you don't have E.164 processing active may be you can still strip one digit into outbound rules, i.e. the '+' sign.
 
  • Like
Reactions: YiannisH_3CX
Status
Not open for further replies.

Forum statistics

Threads
111,875
Messages
589,515
Members
164,724
Latest member
StratisFear