[asterisk-bugs] [JIRA] (ASTERISK-25887) continueInDialplan fail on Gosub, go to priority n-1
Julian Etayo (JIRA)
noreply at issues.asterisk.org
Thu Mar 31 17:09:56 CDT 2016
Julian Etayo created ASTERISK-25887:
---------------------------------------
Summary: continueInDialplan fail on Gosub, go to priority n-1
Key: ASTERISK-25887
URL: https://issues.asterisk.org/jira/browse/ASTERISK-25887
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Resources/res_ari_channels
Affects Versions: 13.7.2
Environment: Ubuntu server 14.04, Asterisk 13.7.2
Reporter: Julian Etayo
When I make a continueInDialplan with priority n+1 on a Stasis cmd in a Gosub via Dial cmd ie:
[out]
exten => _X.,1,Dial(SIP/${EXTEN},,U(answer,s,1))
[answer]
exten => s,1,Stasis(out)
exten => s,n,NoOp(${response})
exten => s,n,Return
The Dialplan execute the priority set in continueInDialplan - 1, and it repeat the line where was called the stasis cmd, and in the second call to continuelndialplan execute the priority n+1
This is the method used:
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-continueInDialplan
This show the console:
-- Executing [201 at out:1] Dial("SIP/1409-0000008c", "SIP/201,,U(answer,s,1)") in new stack
-- Called SIP/201
-- SIP/201-0000008d is ringing
-- SIP/201-0000008d answered SIP/1409-0000008c
-- SIP/201-0000008d Internal Gosub(answer,s,1(s,1)) start
-- Executing [s at answer:1] Stasis("SIP/201-0000008d", "out") in new stack
-- Executing [s at answer:1] Stasis("SIP/201-0000008d", "out") in new stack
-- Executing [s at answer:2] NoOp("SIP/201-0000008d", "ok") in new stack
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list