Can't receive ARI bridge events after this sequence of ARI calls

Hi all,
I’m experimenting with ARI and I found a potential bug.
I tested with asterisk v. 13.10.0 and 14.0.2 but I got the same result.

With websocket and curl I’m trying to call 2 phones (101 and 290) then put them in communication through a bridge.
The sequence of commands are:

wscat -c “ws://localhost:8088/ari/events?api_key=asterisk:asterisk&app=attendant&subscribeAll=true”

curl -v -u asterisk:asterisk -X POST “http://localhost:8088/ari/applications/attendant/subscription?eventSource=channel:,endpoint:,bridge:,deviceState:

curl -v -u asterisk:asterisk -X POST “http://localhost:8088/ari/bridges
curl -v -u asterisk:asterisk -X POST “http://localhost:8088/ari/channels?endpoint=SIP/101&app=attendant
curl -v -u asterisk:asterisk -X POST “http://localhost:8088/ari/bridges/6c83e708-b59b-4200-8dbe-f6d7ee31d2cf/addChannel?channel=atom_asterisk-1476373625.0

curl -v -u asterisk:asterisk -X POST “http://localhost:8088/ari/channels?endpoint=SIP/290&app=attendant
curl -v -u asterisk:asterisk -X POST “http://localhost:8088/ari/bridges/6c83e708-b59b-4200-8dbe-f6d7ee31d2cf/addChannel?channel=atom_asterisk-1476373662.1

curl -v -u asterisk:asterisk -X DELETE “http://localhost:8088/ari/channels/atom_asterisk-1476373625.0
curl -v -u asterisk:asterisk -X DELETE “http://localhost:8088/ari/channels/atom_asterisk-1476373662.1
curl -v -u asterisk:asterisk -X DELETE “http://localhost:8088/ari/bridges/6c83e708-b59b-4200-8dbe-f6d7ee31d2cf

curl -v -u asterisk:asterisk -X POST “http://localhost:8088/ari/bridges

After the last POST (creating a new bridge), I don’t receive the event “BridgeCreated” on the websocket and in general I don’t receive bridge events anymore.
The last bridge event I get is the “BridgeDestroyed” corresponding to the last DELETE http request.

Am I misusing ARI or is this a bug in asterisk ARI?

Thanks
Daniele

Hi Daniele, Looks like you’re having the same issue as

but I see you’re creating your websocket with app=attendant&subscribeAll=true

I didn’t think we received a BridgeCreated event for a bridge you’ve asked for. The fact you got a 200 OK from your HTTP call means it was created (I think - I caveat because some http responses where it says OK is where things are queued and asterisk has said “yup, I’ll do that asap”) but I think Bridge creation happens and you get your 200 response when it gets made.

I may be wrong though. I’m about to jump on a plane but I’ll double check this later. Maybe we should close one of these issues and merge the two so we have one answer.

I’m afraid that’s not the same issue. I do receive bridge events… until I destroyed one used for a call.

I’m receiving bridge events because I’m subscribing with:

curl -v -u asterisk:asterisk -X POST “http://localhost:8088/ari/applications/attendant/subscription?eventSource=channel:,endpoint:,bridge:,deviceState:

as you can see, there is

eventSource=bridge:

that means I subscribe for all bridge events.

But it seems the bridge event flow stop after the DELETE call.

If all bridge related events stop after that then I would suggest filing an issue[1] with complete Asterisk console log, the requests you’ve done, etc. All information that can be used to reproduce the issue as you certainly should receive bridge events if subscribed to all.

[1] https://issues.asterisk.org/ira

Issue created:
https://issues.asterisk.org/jira/browse/ASTERISK-26468