[asterisk-bugs] [JIRA] (ASTERISK-24377) Dialplan pattern matching does not work as expected
Maxim (JIRA)
noreply at issues.asterisk.org
Tue Sep 30 23:59:28 CDT 2014
Maxim created ASTERISK-24377:
--------------------------------
Summary: Dialplan pattern matching does not work as expected
Key: ASTERISK-24377
URL: https://issues.asterisk.org/jira/browse/ASTERISK-24377
Project: Asterisk
Issue Type: Bug
Security Level: None
Affects Versions: 11.13.0
Environment: Debian GNU/Linux 7.5 (wheezy)
Reporter: Maxim
There is part of my dialpan
{quote}
exten = s,n,StopMixMonitor
exten = s,n,Goto(s-$\{DIALSTATUS\},1)
exten = s,n,Goto(exit,1)
;
exten = s-BUSY,1,Playtones(busy)
exten = s-BUSY,n,Busy(3)
exten = s-BUSY,n,HangUp
exten = s-BUSY,n,Goto(exit,1)
;
exten = s-ISNULLTRUNK,1,Playtones(congestion)
exten = s-ISNULLTRUNK,n,Congestion(3)
exten = s-ISNULLTRUNK,n,HangUp
exten = s-ISNULLTRUNK,n,Goto(exit,1)
;
exten = s-CONGESTION,1,StopMixMonitor
exten = s-CONGESTION,n,Congestion(3)
exten = s-CONGESTION,n,HangUp
exten = s-CONGESTION,n,Goto(exit,1)
;
exten = _s-!,1,Goto(s-CONGESTION,1)
{quote}
When variable DIALSTATUS is not BUSY,CONGESTION, ISNULLTRUNK or empty, i assume that it should jump to extension _s-!, but it begin to execute whole macro from beginning.
{quote}
-- Executing \[s at macro-dialout:119\] Goto("SIP/w_3769608-00000003", "s-,1") in new stack
-- Goto (macro-dialout,s-,1)
-- Executing \[s- at macro-dialout:1\] NoOp("SIP/w_3769608-00000003", "CID_CLIR : ") in new stack
-- Executing \[s- at macro-dialout:2\] NoOp("SIP/w_3769608-00000003", "TRUNK : SIP/w_3769608") in new stack
{quote}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list