[asterisk-bugs] [JIRA] (ASTERISK-22917) extenpatternmatchnew doesn't match extensions that contain '-'

Matt Jordan (JIRA) noreply at issues.asterisk.org
Tue Nov 26 12:46:06 CST 2013


Matt Jordan created ASTERISK-22917:
--------------------------------------

             Summary: extenpatternmatchnew doesn't match extensions that contain '-'
                 Key: ASTERISK-22917
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22917
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Core/PBX
    Affects Versions: 11.5.1
            Reporter: Patrick Maille
            Assignee: Rusty Newton
            Severity: Minor


When extenpatternmatchnew=yes, unable to match extensions that work with extenpatternmatchnew=no.

\[Edit: updated by mjordan from comments\]

Using the following dialplan:

{noformat}
[dialin]
exten => _NXXNXXXXXX,1,NoOp(Incoming call from ANI: ${CALLERID(ani)} - CID: ${CALLERID(name)} <${CALLERID(num)}> to ${EXTEN})
exten => _NXXNXXXXXX,n,Dial(SIP/${EXTEN},6)                             ;; Dial endpoint with ringtime - default 6 seconds for testing
exten => _NXXNXXXXXX,n,Goto(dialin,${EXTEN}-${DIALSTATUS},1)            ;; Handle Dial Status
exten => _NXXNXXXXXX,n,Hangup(16)                                       ;; Safety net hangup

exten => _NXXNXXXXXX-BUSY,1,NoOp(${EXTEN:0:10} returns BUSY)
exten => _NXXNXXXXXX-BUSY,n,Busy(6)

exten => _NXXNXXXXXX-[N]OA[N]SWER,1,NoOp(${EXTEN:0:10} returns NOANSWER)
exten => _NXXNXXXXXX-[N]OA[N]SWER,n,Hangup(20)
{noformat}

When a call comes in for extension 3456789999, we start at dialin,3456789999,1.
We ring the endpoint for 6 seconds, if it's busy(dnd) we jump to {noformat}dialin,${EXTEN}-${DIALSTATUS},1{noformat} , which in this case would be dialin,3456789999-BUSY,1

But with externpatternmatchnew=yes, we get:
[Nov  1 14:44:09] WARNING[16393][C-00000007]: pbx.c:6390 __ast_pbx_run: Channel 'SIP/TESTINGTRUNK-0000000c' sent to invalid extension but no invalid handler: context,exten,priority=dialin,3456789999-BUSY,1

If I set externpatternmatchnew=no, then it jumps to the right extension (dialin,3456789999-BUSY,1). The same occurs with no-answer and probably other dialstatus conditions.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list