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.

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to