Dovid Bender
2018-Jun-26 23:31 UTC
[asterisk-users] Asterisk not matching longest prefix with include
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 > > What does the output of the below show? > > dialplan show from-external > > Doug > >It shows: fingerprint1*CLI> dialplan show from-external [ Context 'from-external' created by 'pbx_config' ] '1234' => 1. Noop() [extensions.conf:2] '_X.' => 1. Noop(CALL IS COMING INTO FROM EXTERNAL CONTEXT) [extensions.conf:7] 2. Noop(IP: ${CHANNEL(recvip)}) [extensions.conf:8] 3. Noop(CALLED NUMBER: ${EXTEN}) [extensions.conf:9] 4. Ringing() [extensions.conf:10] 5. WaitExten(15) [extensions.conf:11] 6. Congestion() [extensions.conf:12] 7. Hangup() [extensions.conf:13] Include => 'test' [pbx_config] -= 2 extensions (8 priorities) in 1 context. =- I am going to build Asterisk 14, 13 etc. to see if I can re-produce on those versions. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20180626/09add7e1/attachment.html>
Joshua Colp
2018-Jun-26 23:40 UTC
[asterisk-users] Asterisk not matching longest prefix with include
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 13The 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
Dovid Bender
2018-Jun-26 23:51 UTC
[asterisk-users] Asterisk not matching longest prefix with include
On Tue, Jun 26, 2018 at 7:40 PM, Joshua Colp <jcolp at digium.com> wrote:> 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. > > -- >Thanks Josh. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20180626/97d42bf2/attachment.html>