Can someone please explain how to match a + character in a dial plan (so that I can swap it for the "00" country escape code). In Europe at least the + is a common shortcut for the international prefix (which is "00" in my country). However, my trunk chokes on the + character and all my speed-dials are setup with a + at the start of them... Trying to fix the phone rather than the addressbook... Thanks Ed W
Anselm Martin Hoffmeister
2008-Feb-07 00:49 UTC
[asterisk-users] Matching "+" characters in dial plan
Am Donnerstag, den 07.02.2008, 00:18 +0000 schrieb Ed W:> Can someone please explain how to match a + character in a dial plan (so > that I can swap it for the "00" country escape code). > > In Europe at least the + is a common shortcut for the international > prefix (which is "00" in my country). However, my trunk chokes on the + > character and all my speed-dials are setup with a + at the start of > them... Trying to fix the phone rather than the addressbook...You should get away with exten => _+[1-9].,1,Goto(00${EXTEN:1},1) If you had any special use for triple-0 numbers (as we do), you should afaik also be able to use exten => _+.,1,Goto(00${EXTEN:1},1) We do not allow "+0" numbers though because that would contradict the meaning of a "000" number in our setup. Generally "+AABBBCCC" is dialled as "00AABBBCCC", as international phone call, through our outward phone provider without them noticing any weird + signs. BR Anselm
I made up some dialplan rules to strip the '+' and replace with the 00... Something like: exten => _+XX.,1,Dial(zap/g1/00${EXTEN:1}) PaulH On Thu, 2008-02-07 at 00:18 +0000, Ed W wrote:> Can someone please explain how to match a + character in a dial plan (so > that I can swap it for the "00" country escape code). > > In Europe at least the + is a common shortcut for the international > prefix (which is "00" in my country). However, my trunk chokes on the + > character and all my speed-dials are setup with a + at the start of > them... Trying to fix the phone rather than the addressbook... > > Thanks > > Ed W > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Tilghman Lesher
2008-Feb-07 01:00 UTC
[asterisk-users] Matching "+" characters in dial plan
On Wednesday 06 February 2008 18:18:12 Ed W wrote:> Can someone please explain how to match a + character in a dial plan (so > that I can swap it for the "00" country escape code). > > In Europe at least the + is a common shortcut for the international > prefix (which is "00" in my country). However, my trunk chokes on the + > character and all my speed-dials are setup with a + at the start of > them... Trying to fix the phone rather than the addressbook...exten => _+.,1,Goto(00${EXTEN:1},1) -- Tilghman