[asterisk-users] Dial function exit, go to line n+1
Jerome Poggi
JP+asterisk at hsc.fr
Thu Jul 3 03:40:57 CDT 2008
Yesturday I found a bug in Asterisk, in particular in Dial application.
When the Dial function exit it want to branch to n+1, but if n+1 do not
exist, it exit from the context.
Example :
exten => s,5,ChanIsAvail(SIP/604,s)
exten => s,6,Dial(SIP/604,15,wotr)
exten => s,106,NoOp(Matthieu)
exten => s,n,ChanIsAvail(SIP/605,s)
Won't work because Dial exit to 7, and line 7 don't exist
but
exten => s,5,ChanIsAvail(SIP/604,s)
exten => s,6,Dial(SIP/604,15,wotr)
exten => s,7,NoOp(Nopnopnopnopnop)
exten => s,106,NoOp(Matthieu)
exten => s,n,ChanIsAvail(SIP/605,s)
Work, because line 7 exist
I use Asterisk 1.4.18
Jerome.
More information about the asterisk-users
mailing list