[asterisk-users] Any Way to Get # Functionality in DISA

Yuan LIU yliu11 at hotmail.com
Thu Feb 8 22:48:20 MST 2007


>From: "Yuan LIU" <yliu11 at hotmail.com>
>Date: Thu, 08 Feb 2007 21:28:03 -0800
>Not necessarily.  You only have to program your existing context to handle 
>trailing # when it comes along.  For example, this simplistic example 
>ignores trailing #'s:
>
>exten => _Z., 1, GotoIf($[${EXTEN:-1} = #]?${EXTEN:1},1:2)
>exten => _Z., 2, whatever...

Or simply add

exten => _Z.[#*].,1, Goto($[${EXTEN} : \([0-9]*\)],1)

to an existing context to ignore anything after first # or *.




More information about the asterisk-users mailing list