# \[ARI\] No audio between channels in bridge

**URL:** <https://community.asterisk.org/t/ari-no-audio-between-channels-in-bridge/86272>\
**Category:** Asterisk APIs\
**Created:** [October 30, 2020, 5:34pm UTC](https://community.asterisk.org/t/ari-no-audio-between-channels-in-bridge/86272 "2020-10-30T17:34:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![edmty](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/edmty/32/4777_2.png) [@edmty](https://community.asterisk.org/u/edmty)\
**Post date:** [October 30, 2020, 5:34pm UTC](https://community.asterisk.org/t/ari-no-audio-between-channels-in-bridge/86272/1 "2020-10-30T17:34:25Z")

</div>

**What I’m doing:** creating two channels (using `originate` to PJSIP endpoints) and a bridge (‘mixing’) with `ARI`. Adding then both channels to the bridge.

**What I’m expecting:** once I answer on those 2 endpoints I should be able to talk between them.

**What I’m experiencing:** no conversational audio flows between the endpoints. I can start/stop `MOH` on the bridge and I will hear the music on both endpoints. If I call from one SIP phone to the other, then voice can be heard as expected, but not when started via `ARI`.

I’m testing my code in a REPL shell, and my flow is basically:

1. Create bridge with type ‘mixing’
2. Create channel 1 via originate to SIP endpoint
3. Answer phone 1
4. Create channel 2 via originate to SIP endpoint
5. Answer phone 2
6. Add both channel ids to the bridge with `addChannel`

I’m using Asterisk 17.7.0.

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [November 5, 2020, 9:33am UTC](https://community.asterisk.org/t/ari-no-audio-between-channels-in-bridge/86272/2 "2020-11-05T09:33:46Z")

</div>

Does ConfBridge work? It uses the same underlying technology and requires a working timing source to work, if that’s not working then no media would flow. You could also check this by looking to see if media is flowing out. Failing that you’d need to provide console output.

---

<div class="post-metadata">

**Author:** ![edmty](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/edmty/32/4777_2.png) [@edmty](https://community.asterisk.org/u/edmty)\
**Post date:** [November 5, 2020, 6:56pm UTC](https://community.asterisk.org/t/ari-no-audio-between-channels-in-bridge/86272/3 "2020-11-05T18:56:49Z")

</div>

Thank you for your answer. It was due to a media setting.

Sorry, its been a while (8years?) since I last worked with asterisk.

I do have to say that I the elegance of the new API. Congrats on that.

---

<div class="post-metadata">

**Author:** ![ahepp](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@ahepp](https://community.asterisk.org/u/ahepp)\
**Post date:** [November 9, 2020, 11:26pm UTC](https://community.asterisk.org/t/ari-no-audio-between-channels-in-bridge/86272/4 "2020-11-09T23:26:04Z")

</div>

Hi edmty,

Apologies for the bump. The problem you’re describing sounds similar to one I’m having (although I’m using an ALSA channel and SIP channel from another asterisk instance).

Could you explain a bit about what media settings you changed to get this to work?

Apologies if this is a silly question, I’m new to Asterisk.

---

<div class="post-metadata">

**Author:** ![edmty](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/edmty/32/4777_2.png) [@edmty](https://community.asterisk.org/u/edmty)\
**Post date:** [November 9, 2020, 11:36pm UTC](https://community.asterisk.org/t/ari-no-audio-between-channels-in-bridge/86272/5 "2020-11-09T23:36:10Z")

</div>

I explicitly set directmedia to false to the relevant endpoints.

The clue to this was in the console logs.

---

<div class="post-metadata">

**Author:** ![ahepp](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@ahepp](https://community.asterisk.org/u/ahepp)\
**Post date:** [November 10, 2020, 12:02am UTC](https://community.asterisk.org/t/ari-no-audio-between-channels-in-bridge/86272/6 "2020-11-10T00:02:55Z")

</div>

Thanks so much for the reply!

Based on my understanding, adding the value “proxy\_media” to the bridge creation request might achieve the same effect?

Unfortunately neither this change, nor uncommenting the “directmedia=no” line in sip.conf seem to have resolved my issue. So perhaps I am barking up the wrong tree. Although I notice the HTTP response for the bridge creation request lists the bridge type as “mixing” and doesn’t include the “proxy\_media” value as in my request. I assume that’s a red herring, and my problem lies somewhere else.

Thanks again!

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [November 10, 2020, 9:14am UTC](https://community.asterisk.org/t/ari-no-audio-between-channels-in-bridge/86272/7 "2020-11-10T09:14:02Z")

</div>

Your problem would be elsewhere. Direct media would only be possible between two SIP channels, otherwise it wouldn’t occur.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [December 10, 2020, 9:14am UTC](https://community.asterisk.org/t/ari-no-audio-between-channels-in-bridge/86272/8 "2020-12-10T09:14:09Z")

</div>

Closed on December 10, 2020, 9:14am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
