[asterisk-bugs] [JIRA] (ASTERISK-25846) Gracefully deal with Absent Stasis Apps

Asterisk Team (JIRA) noreply at issues.asterisk.org
Tue Mar 15 12:52:56 CDT 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229898#comment-229898 ] 

Asterisk Team commented on ASTERISK-25846:
------------------------------------------

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].

> Gracefully deal with Absent Stasis Apps
> ---------------------------------------
>
>                 Key: ASTERISK-25846
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25846
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>    Affects Versions: 13.7.2
>            Reporter: Andrew Nagy
>
> I was just reviewing
> https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Stasis.
> I noticed there is a handy variable named ${STASISSTATUS} returned when
> Stasis is finished (OR fails). However if I never register my stasis
> application and dial into the context where stasis is at once Asterisk
> hits stasis and realizes it can¹t talk to said app Asterisk just hangs up
> on the channel.
> Quick Dialplan:
> {code}
> [ari-trunk]
> exten => 45,1,Noop(Attempting to join test ari)
> exten => 45,n,Macro(user-callerid,)
> exten => 45,n,Stasis(test,45)
> exten => 45,n,GotoIf($[${STASISSTATUS} = "FAILED"]?from-did-direct,1000,1)
> exten => 45,n,GotoIf($[${STASISSTATUS} = "SUCCESS"]?app-blackhole,busy,1)
> exten => 45,n,Answer
> exten => 45,hint,Stasis:45
> {code}
> CLI:
> {code}
>     -- Executing [45 at from-internal:3] Stasis("PJSIP/1003-00000001",test,45") in new stack
>   == Spawn extension (from-internal, 45, 3) exited non-zero on
> "PJSIP/1003-00000001"
>     -- Executing [h at from-internal:1] Macro("PJSIP/1003-00000001",
> "hangupcall") in new stack
> {code}
> I propose to to more gracefully handle this and just return to the
> dialplan so the creator can do something appropriate instead of just
> having Asterisk hang up the channel



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list