[asterisk-users] dialplan pattern help

Armand Fumal af at cybernet.lu
Sat Jul 23 09:30:42 CDT 2011


Hi all,

I need help for make a pattern for a special case that i can't find the solution.

In my case I want to match these in one pattern:

This is the same ext that can come in 4 cases

exten => _42704701,1,Macro(dialfax,${EXTEN:-8})		; case with 42704701
exten => _X42704701,1,Macro(dialfax,${EXTEN:-8})		; case with 042704701
exten => _XXXX42704701,1,Macro(dialfax,${EXTEN:-8})	; case with +3242704701
exten => _XXX42704701,1,Macro(dialfax,${EXTEN:-8})		; case with 3242704701

I have try _.42704701 but the parser stop to check after the point "."    :-(

So did you have any suggestion ?

Regards

Armand Fumal




More information about the asterisk-users mailing list