[asterisk-bugs] [Asterisk 0019122]: 1.8.3.2 extenpatternmatchnew=yes cannot find extensions with '-' in them
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Apr 19 09:10:41 CDT 2011
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=19122
======================================================================
Reported By: test011
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 19122
Category: Tests/NewFeature
Reproducibility: always
Severity: minor
Priority: normal
Status: feedback
Asterisk Version: 1.8.3.2
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2011-04-14 20:03 CDT
Last Modified: 2011-04-19 09:10 CDT
======================================================================
Summary: 1.8.3.2 extenpatternmatchnew=yes cannot find
extensions with '-' in them
Description:
1.8.3.2 extenpatternmatchnew=yes cannot find extensions with '-' in them.
ex) exten => _#9.,n,Goto(9-${DIALSTATUS},1)
ex) exten => s,2,Goto(1-out,1)
I believe something like "Goto(1-${DIALSTATUS},1)" is widely used, but
extenpatternmatchnew=yes has some parsing problem and can't find it.
with extenpatternmatchnew=no works fine.
======================================================================
----------------------------------------------------------------------
(0133927) test011 (reporter) - 2011-04-19 09:10
https://issues.asterisk.org/view.php?id=19122#c133927
----------------------------------------------------------------------
[skb106-dial]
exten => s,1,NoOp()
exten => s,n,Set(DEST2=skb1_pstn)
exten => s,n,Set(DIALSTATUS=UNKNOWN)
exten => s,n,Goto(skb1_${DIALSTATUS},1)
exten =>
skb1_pstn,1,Gosub(dial-failover,s,1(${ARG1},${TRUNK6},${TRUNK7},,${LONGTIMEOUT},,))
exten => skb1_pstn,n,Set(DEST2=skb2_pstn)
exten => skb1_pstn,n,Goto(skb1-${DIALSTATUS},1)
exten =>
skb2_pstn,1,Gosub(dial-failover,s,1(106,${TRUNK4},${TRUNK1},${TRUNK3},${LONGTIMEOUT},,))
exten => skb1_UNKNOWN,1,Goto(${DEST2},1)
exten => skb1-CONGESTION,1,Goto(${DEST2},1)
exten => skb1-BUSY,1,Goto(${DEST2},1)
exten => skb1-CHANUNAVAIL,1,Goto(${DEST2},1)
above works fine.
[skb106-dial]
exten => s,1,NoOp()
exten => s,n,Set(DEST2=skb1_pstn)
exten => s,n,Set(DIALSTATUS=UNKNOWN)
exten => s,n,Goto(skb1-${DIALSTATUS},1)
exten =>
skb1_pstn,1,Gosub(dial-failover,s,1(${ARG1},${TRUNK6},${TRUNK7},,${LONGTIMEOUT},,))
exten => skb1_pstn,n,Set(DEST2=skb2_pstn)
exten => skb1_pstn,n,Goto(skb1-${DIALSTATUS},1)
exten =>
skb2_pstn,1,Gosub(dial-failover,s,1(106,${TRUNK4},${TRUNK1},${TRUNK3},${LONGTIMEOUT},,))
exten => skb1-UNKNOWN,1,Goto(${DEST2},1)
exten => skb1-CONGESTION,1,Goto(${DEST2},1)
exten => skb1-BUSY,1,Goto(${DEST2},1)
exten => skb1-CHANUNAVAIL,1,Goto(${DEST2},1)
above does not.
These two lines are different
exten => s,n,Goto(skb1-${DIALSTATUS},1)
....
exten => skb1-UNKNOWN,1,Goto(${DEST2},1)
Issue History
Date Modified Username Field Change
======================================================================
2011-04-19 09:10 test011 Note Added: 0133927
======================================================================
More information about the asterisk-bugs
mailing list