[asterisk-users] issue with some numbers

Administrator TOOTAI admin at tootai.net
Mon Feb 14 09:28:20 CST 2011


Le 14/02/2011 15:44, salaheddine elharit a écrit :
> thanks for your response
> i have tested with a regular phone and i get the same result
> my question if there is any action to do in dial plan or 
> extenssion.conf in order to call this number becouse in dial plan i can
> bloc a number to be call
>
> exten => _OUT.,n,Set(match=${REGEX("^06XXXXXXX" ${AH_PHONE_NUMBER})})
>
> exten => _OUT.,n,GotoIf($["${match}" = "1"]?rien)
>

I think you're in France, your REGEX is wrong:  France has 10 digits 
(one X missing). Also, remember that since few monthes, French mobile 
phones can also start with 07xxxxxxxx.

Regards

-- 
Daniel



More information about the asterisk-users mailing list