[asterisk-users] Dial function exit, go to line n+1
Jerome Poggi
JP+asterisk at hsc.fr
Wed Jul 9 06:42:29 CDT 2008
On Mon, 07 Jul 2008, Matt Riddell wrote:
> > 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
> That's what it's supposed to do - maybe you are referring to the
> deprecated +101 jumps?
I use them before some patch. But this example work :
exten => s,5,ChanIsAvail(SIP/604,s)
exten => s,6,Dial(SIP/604,15,wotr)
exten => s,7,NoOp(Nopnopnopnopnop)
exten => s,10,NoOp(Matthieu)
and this not :
exten => s,5,ChanIsAvail(SIP/604,s)
exten => s,6,Dial(SIP/604,15,wotr)
exten => s,10,NoOp(Matthieu)
The problem is not the deprecated jump n+101, the problem is simple why
Dial exit to line 7 but not to the next line.
Cordialement,
Poggi Jérôme.
--
Jérôme POGGI Jerome.Poggi at hsc.fr
Herve Schauer Consultants -=- Consultant Sécurité Informatique, CISSP
http://www.hsc.fr/ - Tél : +33 141 409 700 - Fax : +33 141 409 709
More information about the asterisk-users
mailing list