Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] included context not being prioritized properly


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
tilghman at mail.jeffa...
Guest





PostPosted: Wed Jun 25, 2008 11:25 am    Post subject: [asterisk-users] included context not being prioritized prop Reply with quote

On Wednesday 25 June 2008 10:54:19 Brian J. Murrell wrote:
Quote:
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services