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

Steve Murphy murf at digium.com
Fri Feb 9 07:11:50 MST 2007


On Thu, 2007-02-08 at 21:48 -0800, Yuan LIU wrote:
> >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 *.
> 

Nope. The "." can only be at the end. It matches all remaining chars.
This is not a real fancy pattern matcher. I've seen all sorts of
requests 
for a regex there, but the complexity of a regex state-machine in that
code
is staggering!

> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Steve Murphy
Software Developer
Digium
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3227 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070209/1b3929aa/smime.bin


More information about the asterisk-users mailing list