[asterisk-bugs] [JIRA] (ASTERISK-28366) Add timeout for response to StasisStart-event

Asterisk Team (JIRA) noreply at issues.asterisk.org
Mon Apr 1 07:25:47 CDT 2019


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

Asterisk Team commented on ASTERISK-28366:
------------------------------------------

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

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

> Add timeout for response to StasisStart-event
> ---------------------------------------------
>
>                 Key: ASTERISK-28366
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28366
>             Project: Asterisk
>          Issue Type: New Feature
>      Security Level: None
>          Components: Resources/res_stasis
>    Affects Versions: 16.2.1
>            Reporter: Morten Tryfoss
>            Severity: Trivial
>
> Many people use a connector from Asterisk ARI to for example NATS or similar message bus. In this scenario the connector may be functional (and the stasis app registered), but no listener might be available to serve the request. 
> Another scenario might be something blocking the ARI app causing it to not respond. 
> Is it possible to add a timeout parameter, dialplan variable or similar to specify how much long you want to wait before returning from Stasis() with FAILED or even TIMEOUT?
> I made a quick proof of concept for myself just counting returns of  "r = ast_waitfor(chan, MAX_WAIT_MS);" in res_stasis.c and break out of the loop if it hits a limit. I guess this works because my app always add the channel to a bridge.



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



More information about the asterisk-bugs mailing list