[asterisk-dev] (no subject)

Jerome Poggi jp+asterisk at hsc.fr
Wed Jul 2 09:52:05 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,sj)
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,sj)
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

Sincerly,
Jérôme Poggi

--
Jerome POGGI                                     Jerome.Poggi at hsc.fr
Herve Schauer Consultants   -=-   Network security consultant, CISSP
http://www.hsc.fr/                             Tel : +33 141 409 700



More information about the asterisk-dev mailing list