[asterisk-users] How to handle "+" prefix

SIP sip at arcdiv.com
Thu Aug 30 12:49:49 CDT 2007


This is actually a big misconception... the idea that you don't need to 
match + because you'll never receive a + and it's just a metacharacter.

In the modern world of IP phones and such, more often than not, you will 
ACTUALLY be sent a + and will need to translate that yourself on your 
own side. If all you did was match a _011X, you might never GET it 
unless someone truly dialed a 011.... 

MOST of our phones send a + as a +, and we see it often.

N.


Anthony Francis wrote:
> To match any single digit use X. Also, it is simplest to know what your 
> + meta is for and just match that. In the states we just match _011X.
>
> Anthony
>
> Adrian Marsh wrote:
>   
>> Thanks James, worked a treat.
>>
>> Is there a way of using variables within the dialplan, eg:
>>
>> [globals]
>> SOMEVAR=0179344
>>
>> [local]
>> exten => _${SOMEVAR}.,1,NoOp(Dialled own number)
>>
>>
>> I'm looking to catch our own PSTN numbers outbound should someone use the full PSTN number rather than the local extension number. Ideally I need to capture the international combinations too:
>>
>> SOMEVAR=+44179344
>> And
>> SOMEVAR=0044179344
>>
>> Is there regexp * in Asterisk ? :
>>
>> exten => _.${SOMEVAR}.,1,NoOp(Dialled own number)
>>
>> Adrian Marsh
>>   
>>
>> _______________________________________________
>> --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
>>   
>>     
>
>   




More information about the asterisk-users mailing list