Dear all,
this is a very simple dialplan:
[employees]
exten => _100,1,Dial(SIP/100,20,t)
exten => _100,n,Hangup()
exten => _200,1,Dial(SIP/200,20,t)
exten => _200,n,Hangup()
If i call 100 Asterisk evaluates and matches the first two line, otherwise if i call 200 Asterisk matches the second part of Dialpan.
Now, my question is: is it possibile to write some general instructions that Asterisk executes before evaluating the context?
[employees]
exten => always,1,Macro(checkoutboundtrunk)
exten => always,n,Hangup()
exten => _100,1,Dial(SIP/100,20,t)
exten => _100,n,Hangup()
exten => _200,1,Dial(SIP/200,20,t)
exten => _200,n,Hangup()
What i means is, always the first two lines are executed and then Asterisk proceed with the evaluation and matching of dialplan.
I know that my request is a little “crazy” but i will solve a big problem i have…
Thanks,
Davide