I’m encountering an issue with channel recordings in my Asterisk setup.
Here’s the scenario:
- I initiate a recording after adding the channel to a bridge.
- In most cases, the recording works as expected.
- However, when the recording duration is less than 10 seconds, I notice two problems after the recording ends:
- The recording file has no audio (it appears completely silent).
- The duration metadata is either missing or shows up as
NaN
(Not a Number) in the system that accesses or displays the recording.
This behavior is inconsistent and seems to occur only for very short recordings. For recordings longer than 10 seconds(mostly duration around 5 seconds), everything works fine — audio is present and the duration is correctly displayed.
Additional Info:
- The recording is started using the
record
function (via ARI or dialplan). - The media format is typically WAV or SLN (depending on the configuration).
- No errors are seen in the Asterisk logs at the time of the recording.
- The issue is not specific to a particular channel or bridge.