[asterisk-users] Dial function exit, go to line n+1

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Wed Jul 9 11:53:35 CDT 2008


On Wednesday 09 July 2008 09:03:07 Jared Smith wrote:
> On Wed, 2008-07-09 at 13:42 +0200, Jerome Poggi wrote:
> > 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.
>
> Priority numbers *must* be sequential... in other words, your priority
> numbers must be 1, 2, 3, 4, 5... Asterisk won't skip missing numbers in
> the sequence.

Incidentally, this is precisely why the 'n' autoincrement for priorities was
created:  so that if you want to insert or delete a priority, you won't have
to renumber all priorities thereafter.

-- 
Tilghman



More information about the asterisk-users mailing list