[asterisk-bugs] [JIRA] (ASTERISK-28679) stasis application is destroyed after its creation

Kevin Harwell (JIRA) noreply at issues.asterisk.org
Wed Jan 8 09:44:26 CST 2020


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

Kevin Harwell edited comment on ASTERISK-28679 at 1/8/20 9:43 AM:
------------------------------------------------------------------

Confirmed using the given steps.

It appears it may have something to do with the deleting of a bridge that's been subscribed to by the application. I tried a few other combinations of disconnecting/reconnecting the application and it seemed to find it. In some cases the "GET /applications/{applicationName}" command even return "okay" when disconnected.

It seems to be that deleting the bridge, and then upon reconnection Asterisk "loses" application.


was (Author: kharwell):
Confirmed using the given steps.

It appears it may have something to do with the deleting of a bridge that's been subscribed to by the application. I tried a few other combinations of disconnecting/reconnecting the application and it seemed to find it. In some cases the "GET /applications/{applicationName} command even return "okay" when disconnected.

It seems to be that deleting the bridge, and then upon reconnection Asterisk "loses" application.

> stasis application is destroyed after its creation
> --------------------------------------------------
>
>                 Key: ASTERISK-28679
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28679
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_ari
>    Affects Versions: 16.7.0
>         Environment: Debian buster
>            Reporter: Francois Blackburn
>
> Given I create bridge (type=holding)
> Given I create Stasis application (by connecting the websocket)
> Given I subscribe the bridge to the application
> Given I close the websocket connection
> Given I destroy the bridge
> When I reconnect the websocket
> When I get the application with ARI
> Then I get 404 application not found
> Expected I get the application
> I have the following log for my last websocket connection :
> {code}
> [Jan  6 09:00:22]  Activating Stasis app 'MY_APPLICATION'
> [Jan  6 09:00:22]   == WebSocket connection from '127.0.0.1:49876' for protocol '' accepted using version '13'
> [Jan  6 09:00:22]  Destroying Stasis app MY_APPLICATION
> [Jan  6 09:00:22]     -- Remove stasis-MY_APPLICATION/h/1, registrar=res_stasis; con=stasis-MY_APPLICATION(0x7fd5f000fe70); con->root=0x7fd5f00102a0
> [Jan  6 09:00:22]     -- Remove stasis-MY_APPLICATION/_./1, registrar=res_stasis; con=stasis-MY_APPLICATION(0x7fd5f000fe70); con->root=0x7fd5f00102a0
> {code}
> This bug has been introduced by [this commit|https://gerrit.asterisk.org/c/asterisk/+/13172]. e.i. I cannot reproduce it if I revert this one
> I've created a small python script to trigger this bug
> https://gist.github.com/fblackburn1/b945798b882bc825db2c2258174cad0e



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



More information about the asterisk-bugs mailing list