[asterisk-users] How to handle "+" prefix
Anthony Francis
anthonyf at rockynet.com
Thu Aug 30 13:05:11 CDT 2007
What phones are you using?
SIP wrote:
> 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
>>>
>>>
>>>
>>
>>
>
>
> _______________________________________________
> --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
>
--
Thank you and have a wonderful day,
Anthony Francis
Rockynet VOIP
(303) 444-7052 opt 2
voip at rockynet.com
More information about the asterisk-users
mailing list