[asterisk-users] included context not being prioritized properly

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Wed Jun 25 11:25:31 CDT 2008


On Wednesday 25 June 2008 10:54:19 Brian J. Murrell wrote:
> I have an "outbound-ld" context as follows:
>
> [ Context 'outbound-ld' created by 'pbx_config' ]
>   '_1NXXNXXXXXX' => 1. Macro(enumdial|${EXTEN})                  
> [pbx_config] 102. Wait(1)                                  [pbx_config]
> 103. Set(LINE=${IF($[${LINE}=pots]?link2voip:${LINE})}) [pbx_config] 104.
> Macro(dial${LINE}|${EXTEN})              [pbx_config] 105. Hangup()        
>                         [pbx_config] Include =>        'toll-free-override'
>                          [pbx_config]
>
> and "toll-free-override" has:
>
>   '18002687096' =>  1. Macro(dialpots|${EXTEN})                  
> [pbx_config] '18009598281' =>  1. Macro(dialpots|${EXTEN})                 
>  [pbx_config] '18664277451' =>  1. Macro(dialpots|${EXTEN})                
>   [pbx_config] '18668797179' =>  1. Macro(dialpots|${EXTEN})               
>    [pbx_config] '18884189338' =>  1. Macro(dialpots|${EXTEN})              
>     [pbx_config] '18884716070' =>  1. Macro(dialpots|${EXTEN})             
>      [pbx_config] '18886684636' =>  1. Macro(dialpots|${EXTEN})            
>       [pbx_config]
>
> But when I dial a number in the toll-free-override context (i.e.
> 18664277451) it still gets processed by the "enumdial" macro.  I thought
> that an exact match would take precedence over a "_" match.  What am I
> missing?

That's only true within the same context.  ONLY if a match is not found in the
current context will it go into an included context.

-- 
Tilghman



More information about the asterisk-users mailing list