Just thought Id see if someone can clarify how Asterisk Matches it Dial Plan Priorites. I thought it was done a a “most closest match” principle. But it appears not. Basically I have the following
[context1]
exten => _XXXX,1,Dial(SIP/…)
[context2]
exten => _8XXX,1,Dial(IAX/…)
Both of these above contexts are accessible from my [internal] context where all the extensions are by using
[internal]
include => context1
include => context2
Internal exists at the top on the extensions.conf file and context1 and then appear under that (in that order)
I noticed the problem today when i wanted to dial into one of our intersate offices meeting room which is room 600. So i dialled “8600” to go out via the IAX trunk into that meeting room. However it kept tryig to connect my call via the context1 priority which is our the SIP interface, hence my call was failing. "Dial(SIP/600) I strip the first 8 off. It should be going out the IAX trunk Dial(IAX2/600)
I thought that 8600 would match _8XXX betetr than _XXXX… Or does Asterisk look down starting at the top for the best match…
Can anyone shed some light on this for me…
Thanks,
Daniel.