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
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users