[asterisk-bugs] [JIRA] (ASTERISK-24377) Dialplan pattern matching does not work as expected

Rusty Newton (JIRA) noreply at issues.asterisk.org
Wed Oct 1 16:21:29 CDT 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-24377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rusty Newton closed ASTERISK-24377.
-----------------------------------

    Resolution: Not A Bug

> 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 and *not* empty it successfully jump to extension _s-! and then jump to s-CONGESTION.
> {quote}
> -- Executing \[s at macro-dialout:120\] Goto("SIP/101-00000046", "s-ANSWER,1") in new stack
> -- Goto (macro-dialout,s-ANSWER,1)
> -- Executing \[s-ANSWER at macro-dialout:1\] Goto("SIP/101-00000046", "s-CONGESTION,1") in new stack
> -- Goto (macro-dialout,s-CONGESTION,1)
> {quote}
> But when variable DIALSTATUS is empty, i assume that it should jump to extension _s-! too, 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