# Recording stops when one channel leave the bridge (ARI)

**URL:** <https://community.asterisk.org/t/recording-stops-when-one-channel-leave-the-bridge-ari/101278>\
**Category:** Asterisk APIs\
**Created:** [March 1, 2024, 12:41am UTC](https://community.asterisk.org/t/recording-stops-when-one-channel-leave-the-bridge-ari/101278 "2024-03-01T00:41:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cyril.r](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@Cyril.r](https://community.asterisk.org/u/Cyril.r)\
**Post date:** [March 1, 2024, 12:41am UTC](https://community.asterisk.org/t/recording-stops-when-one-channel-leave-the-bridge-ari/101278/1 "2024-03-01T00:41:08Z")

</div>

Hello,

We are observing a weird behavior with asterisk, ARI and recordings.

It seems that is I start a record on a bridge that contains two channels, and a channel leave the bridge (I remove it via ARI), the record stops.

Anyone aware of this? why? can we prevent this from happening? (i will put a new channel on the bridge later, record should continue).

Some console output to try clarify :

```auto
[16:02:38] == Using SIP RTP Audio TOS bits 184
[16:02:38] == Using SIP RTP Audio TOS bits 184 in TCLASS field.
[16:02:38] -- Executing [760@flus:1] Stasis("PJSIP/trunk-00000021", "ari-app")
[16:02:41] -- Channel PJSIP/trunk-00000021 joined 'simple_bridge' stasis-bridge <d982336f1a554bfd9daf6577a00ad0a6>
[16:02:43] WARNING[1543][C-00000018]: mp3/interface.c:218 decodeMP3: Junk at the beginning of frame 49443304
[16:02:43] -- <PJSIP/trunk-00000021> Playing 'https://redacted/5902e30c-9140-4d46-94d4-WQu.mp3.slin' (language 'fr')
[16:02:49] -- Started music on hold, class '77c48f63c31b4a1993c9364c601ab303', on channel 'PJSIP/trunk-00000021'
[16:02:49] WARNING[1543][C-00000018]: mp3/interface.c:218 decodeMP3: Junk at the beginning of frame 49443303
[16:02:58] == Using SIP RTP Audio TOS bits 184
[16:02:58] == Using SIP RTP Audio CoS mark 5
[16:02:58] -- Executing [c50a5e873b45470ea179807b103ab68c_1@ari-app:1] Stasis("PJSIP/trunk2-00000022", "ari-app") in new stack
[16:03:00] -- Channel PJSIP/trunk2-00000022 joined 'simple_bridge' stasis-bridge <d982336f1a554bfd9daf6577a00ad0a6>
[16:03:01] -- Stopped music on hold on PJSIP/trunk-00000021
[16:03:02] -- Channel Recorder/ARI-00000009;2 joined 'simple_bridge' stasis-bridge <d982336f1a554bfd9daf6577a00ad0a6>
[16:03:02] -- x=0, open writing: /var/spool/asterisk/recording/6c453ad06ced49ff8f7e369627c305bf format: wav, 0x7faedc001a60
ip-172-17-1-1*CLI> bridge show all
Bridge-ID Chans Type Technology Duration
d982336f1a554bfd9daf6577a00ad0a6 3 stasis softmix 00:00:25
[16:03:33] -- Channel PJSIP/trunk2-00000022 left 'softmix' stasis-bridge <d982336f1a554bfd9daf6577a00ad0a6>
[16:03:33] -- Started music on hold, class 'default', on channel 'PJSIP/trunk-00000021'
[16:03:37] WARNING[1567][C-00000018]: app.c:1647 __ast_play_and_record: No audio available on Recorder/ARI-00000009;1??
[16:03:37] -- User hung up
[16:03:37] -- Channel Recorder/ARI-00000009;2 left 'simple_bridge' stasis-bridge <d982336f1a554bfd9daf6577a00ad0a6>
ip-172-17-1-1*CLI> bridge show all
Bridge-ID Chans Type Technology Duration
d982336f1a554bfd9daf6577a00ad0a6 1 stasis simple_bridge 00:01:01

```

---

<div class="post-metadata">

**Author:** ![penguinpbx](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/penguinpbx/32/8856_2.png) [@penguinpbx](https://community.asterisk.org/u/penguinpbx)\
**Post date:** [March 14, 2024, 2:47pm UTC](https://community.asterisk.org/t/recording-stops-when-one-channel-leave-the-bridge-ari/101278/2 "2024-03-14T14:47:39Z")

</div>

Maybe add a dummy place holder channel that does nothing but keep the bridge from, hmm, _collapsing_ ? Let it handle the MOH when needed ?

---

<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:** [April 13, 2024, 2:48pm UTC](https://community.asterisk.org/t/recording-stops-when-one-channel-leave-the-bridge-ari/101278/3 "2024-04-13T14:48:04Z")

</div>

Closed on April 13, 2024, 2:48pm UTC

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