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
_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 > > >