dial pattern

mizoran
Joined: Wed 06 of May, 2009

dial pattern

Posted:Wed 06 of May, 2009 (10:50 UTC)
Hi all!

I am reviewing one working asterisk 1.2 configuration. In extensions.conf in context "from-mainsrv" I have found the following dial-pattern "_1-X". What does it mean and what it does? By search the asterisk documentation I just haven't succeed to find the meaning of the "dash" symbol.

The original context is down below. Please could you explain me how does it work?

[from-mainsrv]
exten => _1-X!,1,Set(tmpid=${CALLERID(num)})
exten => _1-X!,n,Set(CALLERID(num)=6${CALLERID(num):-3})
exten => _1-X!,n,Dial(Zap/g1/${EXTEN:2})
exten => _1-X!,n,Set(CALLERID(num)=${tmpid})
exten => _1-X!,n,Hangup

exten => _2-X!,1,Dial(Zap/g1/${EXTEN:2})
exten => _2-X!,n,Hangup


Thanks in advance!
mizoran