Re: ARI Bridge and Dial

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jim, please see my responses in line.
 
Hi, 

I have a few questions regarding ARI after experimenting with it for a while. 

Bridging. When I create a bridge, I provide a single type ('mixing') I get a '200' OK back but when I retrieve details on the bridge, the type 'list' is NULL. The bridge seems to work - but I wanted to make sure there wasn't an issue.

What do you mean by type 'list'? What ARI operation are you using to get details for the bridge?
 

Let's say I want to create a simple Dial application. By trial and error, what seems to work is a call comes into my dial plan and off to my app. I answer, create a bridge and add this channel to the bridge. I then create a channel for the destination SIP when it picks-up and add this to the bridge. I should now have 2 connected phones. Thanks!!

This sounds about right. After the first channel enters your application, you need to originate a call to the second channel and then put them both in the bridge. Once that is done, getting the details of that bridge will show both channels under the channels property, which will be an array of channel ids. Please see https://github.com/asterisk/ari-py/blob/master/examples/originate_example.py for an example of how to do this using ari-py. The same functionality could be accomplished by making direct calls to ARI of course.


Samuel Fortier-Galarneau

_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev@xxxxxxxxxxxxxxxx
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev

[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux