[asterisk-app-dev] ARI Bridge and Dial

Samuel Galarneau sgalarneau at digium.com
Thu May 8 14:43:17 CDT 2014


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.pyfor
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20140508/f4902357/attachment.html>


More information about the asterisk-app-dev mailing list