Create a CONFBRIDGE conference via ARI

I am trying to create a conference which offers (uses) CONFBRIDGE features from the ARI. Based on various posts I’ve gotten this far:

  1. Create bridge (type mixing)
  2. Create channels
  3. Add channels to bridge
  4. Dial channels (Users are all in a bridge now)

Now I have a simple conference with no CONFBRIDGE features. How do I now make this a CONFBRIDGE conference? And then identify one of my channels as admin/marked?

Or am I going about this the wrong way? I feel like I need to add a CONFBRIDGE channel to this bridge to listen and provide the nice features.

You don’t. If you want ConfBridge you have to leave ARI. ARI gives you fundamentals to BUILD your own ConfBridge.

Yeah, I had a feeling I was going about this wrong.

Is it possible to create the conference dynamically from an API, and then add channels (which dial users)? I’m trying to programmatically create a CONFBRIDGE and have 3 people answer their phones and end up in a conference.

Basically an automated CONFBRIDGE initiated by my app. I don’t care if I need to use AMI/ARI or mix of them.

If it’s possible, what’s the wright way to do this?

There is no explicit “creation” of a ConfBridge. The act of a channel going into it creates it. You can specify a bridge profile and/or user profile for that channel. AMI provides Originate[1] to make outgoing calls and direct them to a location upon answer, as does ARI[2].

[1] Originate - Asterisk Documentation
[2] Channels - Asterisk Documentation

I feel like my question is about to get a stupid slap…but…I’m missing something.

I THINK you are saying that I should originate a channel from the ARI, but instead of sending the channel back to my stasis app, I send it to a CONFBRIDGE (with a bridge profile and user profile, or if none dynamically created). And at that point my app/stasis has nothing more to do with the channel or conference as Asterisk owns the CONFBRIDGE.

If I got that right, ARI channel originate shows how to send the channel to an app (is that where I specify CONFBRIDGE?), or do I have to send the channel into context/extension/priority in the dialplan which runs the CONFBRIDGE command (not ideal)?

I just connect these dots :slight_smile:

You have to send it to a context/extension/priority.

Ah…ok. So I send it back into the dialplan, and then Asterisk owns the conference. (Nothing more for me to keep track of or destroy).

Therefor I can’t do it completely in ARI, I still need to use some dialplan.