Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] ARI bridges


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
sboily at avencall.com
Guest





PostPosted: Tue Dec 15, 2015 3:13 pm    Post subject: [asterisk-users] ARI bridges Reply with quote

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

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
jcolp at digium.com
Guest





PostPosted: Tue Dec 15, 2015 3:26 pm    Post subject: [asterisk-users] ARI bridges Reply with quote

Sylvain Boily wrote:
Quote:
Hello,

Just a note - there's an asterisk-app-dev mailing list[1] which is
better suited for these kind of posts.

Quote:
I did some tests because i'm interesting to transfer a non stasis bridge
to a stasis bridge and i found a strange situation.

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.

Quote:

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

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

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
sboily at avencall.com
Guest





PostPosted: Tue Dec 15, 2015 3:31 pm    Post subject: [asterisk-users] ARI bridges Reply with quote

Le 2015-12-15 15:25, Joshua Colp a écrit :
Quote:
Sylvain Boily wrote:
Quote:
Hello,

Just a note - there's an asterisk-app-dev mailing list[1] which is
better suited for these kind of posts.

Ok

Quote:

Quote:
I did some tests because i'm interesting to transfer a non stasis bridge
to a stasis bridge and i found a strange situation.

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.


Ok, that i understood. What do you think about enhancing AMI to have a
command for moving channels to a stasis application ? Is it possible ?
For the moment i'm using AMI Transfer and dialplan Stasis().

Quote:

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.


Ok

Sylvain

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
jcolp at digium.com
Guest





PostPosted: Tue Dec 15, 2015 3:35 pm    Post subject: [asterisk-users] ARI bridges Reply with quote

Sylvain Boily wrote:

<snip>

Quote:

Ok, that i understood. What do you think about enhancing AMI to have a
command for moving channels to a stasis application ? Is it possible ?
For the moment i'm using AMI Transfer and dialplan Stasis().

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

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
sboily at avencall.com
Guest





PostPosted: Tue Dec 15, 2015 3:41 pm    Post subject: [asterisk-users] ARI bridges Reply with quote

Le 2015-12-15 15:34, Joshua Colp a écrit :
Quote:
Sylvain Boily wrote:

<snip>

Quote:

Ok, that i understood. What do you think about enhancing AMI to have a
command for moving channels to a stasis application ? Is it possible ?
For the moment i'm using AMI Transfer and dialplan Stasis().

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.


Ok thank you !

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services