[asterisk-bugs] [JIRA] (ASTERISK-25491) extenpatternmatchnew=yes breaks with hint and dial-extension in the same context

Asterisk Team (JIRA) noreply at issues.asterisk.org
Fri Oct 23 04:55:33 CDT 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=228002#comment-228002 ] 

Asterisk Team commented on ASTERISK-25491:
------------------------------------------

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

> extenpatternmatchnew=yes breaks with hint and dial-extension in the same context
> --------------------------------------------------------------------------------
>
>                 Key: ASTERISK-25491
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25491
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: 13.1.0
>         Environment: Debian Jessie, certified-asterisk-13.1-cert2
>            Reporter: Sebastian Denz
>
> While testing Asterisk 13 i tried the new pattern matcher.
> With extenpatternmatchnew=yes i was not able to call the extensions anymore, after creating a hint with the same pattern like the dial-extension.
> {code}
> [general]
> static=yes
> writeprotect=yes
> autofallthrough=yes
> extenpatternmatchnew=yes
> clearglobalvars=yes
> [from-internal]
> exten => _XXX,1,NoOp(internal call from ${CALLERID(all)} to ${EXTEN})
> same => n,SIPAddHeader(Alert-Info: Auto Answer)
> same => n,Dial(${PJSIP_DIAL_CONTACTS(${EXTEN})},,tT)
> exten => _XXX,hint,PJSIP/${EXTEN}
> {code}
> As long as the hint is not created (because no subscription was done) everything works fine. But when the hint was created the patternmatcher does not find the extension with priority 1 anymore:
> {code}
> asterisk13-test*CLI> dialplan show 401 at from-internal
> [ Context 'from-internal' created by 'pbx_config' ]
>   '_XXX' =>         hint: PJSIP/${EXTEN}                          [pbx_config]
>                     1. NoOp(internal call from ${CALLERID(all)} to ${EXTEN}) [pbx_config]
>                     2. SIPAddHeader(Alert-Info: Auto Answer)      [pbx_config]
>                     3. Dial(${PJSIP_DIAL_CONTACTS(${EXTEN})},,tT) [pbx_config]
> -= 2 extensions (5 priorities) in 1 context. =-
> asterisk13-test*CLI> core show version 
> Asterisk 13.1-cert2 built by root @ asterisk-test on a x86_64 running Linux on 2015-10-20 14:34:57 UTC
> [Oct 23 11:12:41] NOTICE[1056]: res_pjsip_session.c:1587 new_invite: Call from '401' (UDP:10.3.66.108:5070) to extension '402' rejected because extension not found in context 'from-internal'.
> asterisk13-test*CLI>
> {code}
> After extenpatternmatchnew=no everything works as exepected.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list