[Asterisk-Users] missing pre pattern matching feature

Harald Holzer hholzer at may.co.at
Tue Jan 31 03:08:02 MST 2006


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





More information about the asterisk-users mailing list