Description:
I’m encountering an issue with Asterisk where attempting to play multiple audio files using the BackGround()
function fails if the first file in the list has 0 frames (i.e., contains no audio data). Specifically, I’m using a command like this:
BackGround(pbx/d9f5c6a48bfefddab36ca46559aaa670&pbx/e254c73d3624adfe66fed388b23577de&pbx/c0d2ee9f4d57991b7b19659f7c897745&pbx/a056b930631ea2d5a12fdf3833815c68&pbx/f5a9124facf001729ccedf2d57bab79d)
If the first file (pbx/d9f5c6a48bfefddab36ca46559aaa670
) has 0 frames, none of the subsequent files will play. The Asterisk log shows the following error:
pbx_builtins.c: ast_streamfile failed for pbx/d9f5c6a48bfefddab36ca46559aaa670
It appears that the presence of the 0-frame file causes Asterisk to stop processing the rest of the files in the list. This seems like a potential bug, as I would expect Asterisk to skip the empty file and continue playing the remaining valid files.
Has anyone else encountered this issue? Is this a known bug, or is there a workaround to ensure that the valid files still play even if one of them has 0 frames? Any advice or insights would be appreciated.