ARI Bridges
Hello,
I did some tests because i’m interesting to transfer a non stasis bridge to a stasis bridge and i found a strange situation.
A call B
B answer
You have a bridge
On my asterisk CLI:
xivo*CLI> bridge show b1d8fb21-ec6d-469a-9dde-bb6bfd5618cc Id: b1d8fb21-ec6d-469a-9dde-bb6bfd5618cc Type: basic Technology: simple_bridge Num-Channels: 2
Channel: SIP/tcu9tz-00000032
Channel: SIP/c4i2zd-00000031
Now with swagger UI on bridges section.
POST /bridges/b1d8fb21-ec6d-469a-9dde-bb6bfd5618cc with type holding for example.
200 ok
On asterisk CLI:
xivo*CLI> bridge show b1d8fb21-ec6d-469a-9dde-bb6bfd5618cc Id: b1d8fb21-ec6d-469a-9dde-bb6bfd5618cc Type: stasis Technology: holding_bridge Num-Channels: 0
On swagger UI:
DELETE /bridges/b1d8fb21-ec6d-469a-9dde-bb6bfd5618cc
204 ok
On asterisk CLI:
xivo*CLI> bridge show b1d8fb21-ec6d-469a-9dde-bb6bfd5618cc Bridge ‘b1d8fb21-ec6d-469a-9dde-bb6bfd5618cc’ not found
It looks like strange no ? Is it an issue, why it’s possible ? My calls are not hangup, but i loose my bridge.
I have another question, is it possible to change a non statis bridge to a stasis bridge ? The only way i found for the moment is using AMI with transfer application to Stasis() dialplan. My point is how can i gain the ARI control on a non stasis bridge ?
Thank you. Sylvain
4 thoughts on - ARI Bridges
Sylvain Boily wrote:
Just a note – there’s an asterisk-app-dev mailing list[1] which is better suited for these kind of posts.
You can’t, you have to move the channels into your Stasis application using AMI and create a new bridge like you state below. Only one entity
(be it an existing application like app_dial, or an external application written using ARI) can have absolute control over a bridge or else both could get really confused as each manipulates things.
I’d suggest filing an issue for this. You shouldn’t be able to create a bridge from ARI with an id of one that already exists.
[1] http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev
Le 2015-12-15 15:25, Joshua Colp a
Sylvain Boily wrote:
What people have wanted is actually just to be able to do it all from ARI[1]. Specifically have an ARI operation to redirect a channel into a Stasis application or to elsewhere in the dialplan. I’m sure people would be happy if it could be done.
[1] https://wiki.asterisk.org/wiki/display/AST/ARI+Feature+Wish-list
Le 2015-12-15 15:34, Joshua Colp a