Thanks for your help, John. You're absolutely right.

Asterisk cmd Dial
(http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Dial):
- option j - Jump to priority n+101 if all of the requested channels were
busy

Asterisk cmd EnumLookup
(http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+EnumLookup):
- good TEL entry will increase the priority by 51

Regards,
James


On 1/11/2006, "John Van Ostrand" <[EMAIL PROTECTED]> wrote:

>On Wed, 2006-01-11 at 14:17 -0500, James Rothney wrote:
>
>> I have added enum logic into my dialplan using the following chunk of
>> code (from https://www.e164.org/config.php?dp=NA):
>> [macro-enum-call]
>> exten => s,1,SetCallerID(16045551212)
>> exten => s,2,EnumLookup(${ARG2})
>> exten => s,53,Goto(${ARG1},${ARG2},1)
>> exten => s,103,Goto(${ARG1},${ARG2},1)
>
>
>Commands can cause a priority jump. For example Dial will cause a +101
>priority jump if the channel or extension is busy. Perhaps EnumLookup
>causes a +51 or +101 jump on certain conditions.
>
>> exten => s,3,GotoIf($[$[${ENUM:0:3} = SIP] | $[${ENUM:0:3} = IAX]]?4:5)
>> exten => s,4,Dial(${ENUM})
>> exten => s,5,Goto(${ARG1},${ARG2},1)
>> exten => s,105,Goto(${ARG1},${ARG2},1)
>>
>> If my understanding of context flow is correct, then priority commands
>> 53, 103 & 105 in the above example will never be called or executed.
>>
>> Am I missing something? Why are they there?
>
>
>--
>John Van Ostrand
>         Net Direct Inc.
>
>Director of Technology
>564 Weber St. N. Unit 12
>   Waterloo, ON N2L 5C6
> map
>[EMAIL PROTECTED]
>        Ph: 519-883-1172
> ext.5102
>Linux Solutions / IBM
>Hardware
>        Fx: 519-883-8533
>

Reply via email to