Summary: | ASTERISK-25887: ARI: POST "/channels/{channelId}/continue" inside Gosub - starts at priority n-1, repeats Stasis call before "continuing" | ||
Reporter: | Julian Etayo (keyman) | Labels: | |
Date Opened: | 2016-03-31 17:08:52 | Date Closed: | |
Priority: | Major | Regression? | |
Status: | Open/New | Components: | Resources/res_ari_channels |
Versions: | 13.7.2 13.8.2 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | Ubuntu server 14.04, Asterisk 13.7.2 | Attachments: | |
Description: | When I make a continueInDialplan with priority n+1 on a Stasis cmd in a Gosub via Dial cmd ie:
{noformat} [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 {noformat} 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: {noformat} -- Executing [201@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@answer:1] Stasis("SIP/201-0000008d", "out") in new stack -- Executing [s@answer:1] Stasis("SIP/201-0000008d", "out") in new stack -- Executing [s@answer:2] NoOp("SIP/201-0000008d", "ok") in new stack {noformat} | ||
Comments: | By: Asterisk Team (asteriskteam) 2016-03-31 17:08:52.751-0500 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. By: Rusty Newton (rnewton) 2016-04-22 15:19:36.589-0500 I verified a few things: * I can reproduce your issue * Specifying priority "n+1" in the ARI POST or just leaving it default results in the same behavior. * Calling the Gosub like "answer" instead of "answer,s,1" results in the same behavior as well. ( I thought "Gosub(answer,s,1(s,1))" was a bit strange in the output) Looks like a bug to me. Opening it up. |