[Asterisk-Users] missing pre pattern matching feature

Peter Fern pete at keypoint.com.au
Tue Jan 31 17:48:42 MST 2006


_X. should do the job for you.

Harald Holzer wrote:

>Hi,
>is there a way to executing commands in the dialplan regardless which number is dialed before
>the pattern matching starts ?
>
>when a call enters the first context it would be nice if i can set some variable or manipulate
>a callerid, or what ever before the patternmatching starts.
>
>a solution like this:
>
>[firstcontext]
>exten => _.,1,Set(usergroup=1)
>exten => _.,2,Goto(firstcontext-post,${EXTEN},1)
>
>[firstcontext-post]
>exten => _1.,1,NoOp()
>exten => _2.,1,NoOp()
>exten => _3.,1,NoOp()
>
>The pattern ._ brings up a warning not to use it.
>Is there a save way to workaround this problem without adding macros before each pattern ?
>
>a predefined channel variable which preserves the starting context would also be nice.
>
>
>Harald Holzer
>
>
>_______________________________________________
>--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
>
>  
>



More information about the asterisk-users mailing list