Replace '+' (the plus sign) with international dialing code
I have tested this in FreePbx 2.4:
first pass the + in the outbound route by adding
+Z.
then add in the trunk's dial rule like this
+|011+Z. (if trunk in N. America)
+|0011+Z. (if trunk in AU)
+|00+Z. (if trunk in EU/CN etc.)
etc...
Now you can dial +1234567890x from any softphone,
and let trixbox convert to the right international dialing code.
I tried the way you describe above but it doesn't seem to work for me. Working my way out through google i found this link:
http://www.freepbx.org/support/documentation/howtos/how-to-strip-...
but that doesn't seem to work either.
Is there any other way or anything else to try?
Hi there:
I hope you have gotten this to work. I had the same problem and I didn't read the previous poster's post completely. I solved this problem just minutes ago after struggling with this for 6 months!
You need to do _2_ things:
STEP #1:
Allow "Outbound Routes" to accept numbers starting with "+"sign to begin with. This means, you need to goto out "Outbound Routes" rules (not Dial Plan Rules!) and add the following line to it.
+Z.
Notice that there is a "." after +Z in the rule - a total of 3 characters. This is IMPORTANT, and probably why I struggled for another 3 hours.
Example: my "Outbound Routes" dial patterns are:
311
411
+Z.
00.
011.
1800NXXXXXX
1866NXXXXXX
1877NXXXXXX
1888NXXXXXX
1NXXNXXXXXX
NXXNXXXXXX
From my limited knowledge, by doing the above, you are telling Asterisk to forward numbers matching the pattern(s) above to a specific trunk.
STEP #2:
At this point Asterisk will pass on any number with a preceding + plus sign to your trunk. You now need to not pass this "+" sign to your SIP provider. At this point you need to strip out the "+" plus sign using "Outgoing Dial Rules". Adding the following line in your outgoing dial rules will achieve the desired result:
+|.
Again, notice that there are 3 characters.
Example: my "Outbound Dial Rules" for this trunk are:
1+NXXNXXXXXX
011|.
00|.
+|.
I hope this helps you and you don't have to pull out any more remaining hairs. :)

Member Since:
2007-07-03