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

Anthony Francis anthonyf at rockynet.com
Thu Aug 30 11:20:44 CDT 2007


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
>   

-- 
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