[asterisk-users] Asterisk not matching longest prefix with include

Joshua Colp jcolp at digium.com
Tue Jun 26 18:40:19 CDT 2018


On Tue, Jun 26, 2018, at 8:31 PM, Dovid Bender wrote:
> On Tue, Jun 26, 2018 at 7:28 PM, Doug Lytle <support at drdos.info> wrote:
> 
> > On 06/26/2018 07:20 PM, Dovid Bender wrote:
> >
> > Doug,
> >
> > I tried that as well. Even with my dialplan looking like this:
> >
> >
> >
> > Ordering by includes works for me under Asterisk 11 and 13

The context always takes priority over includes. Includes are only examined if there are no matches in the current context. It's always worked this way. Ordering includes as such is one way to control that. As it is the matching is working as expected.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list