[asterisk-users] included context not being prioritized properly

Brian J. Murrell brian at interlinx.bc.ca
Wed Jun 25 10:54:19 CDT 2008


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 


More information about the asterisk-users mailing list