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