Recording file not getting closed

Hi all,

We are using Asterisk 15.5, with ARI to place the calls, record on the bridge for recordings. We are using sipML5 library for out soft phone. We observed when the call was not properly hanged up on the soft phone side, bridge was not getting destroyed and the recording file kept growing. How can we rectify this issue ? If there is some issue in getting BYE request from one of the channels ? How to hangup and end the recordings.

Both chan_sip and chan_pjsip have configuration options and methods to determine if the call is hung up - such as RTP timeout or session timers. These will hang the channel up, and things will proceed accordingly - provided you have logic in your ARI application to stop the recording and destroy the bridge.

1 Like

Thanks jcolp, rtp_timeout solved our problem.