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

Rob Hillis rob at hillis.dyndns.org
Wed Jul 9 19:26:19 CDT 2008


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.
>
>   
Alternatively (and IMHO much more simple) you label the first priority 
"1" and every subsequent priority "n". I forget exactly which version of 
Asterisk this was introduced, but I've been using it since 1.2 with no 
problems.

Gotos are handled quite easily too - any goto target's priorty should be 
"n(somelabel)" and you simply specify Goto(somelabel), 
Goto(extension,somelabel) or Goto(context,extension,somelabel) as required.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080710/09d83263/attachment.htm 


More information about the asterisk-users mailing list