Brian J. Murrell
2008-Jun-25 15:54 UTC
[asterisk-users] included context not being prioritized properly
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?
b.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url :
http://lists.digium.com/pipermail/asterisk-users/attachments/20080625/fe3feef9/attachment.pgp
Tilghman Lesher
2008-Jun-25 16:25 UTC
[asterisk-users] included context not being prioritized properly
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