I’m trying to play an audio in format .opus but the background application of the dialplan shows an error. the file exists and the codec module seems to be fine, can you give me a hand in case something goes wrong?
; Dialplan Error
– Executing [19@clients:2] BackGround(“PJSIP/1002-00000020”, “/tmp/response2-1613985073.20921_out”) in new stack
> 0x7faf780116f0 – Strict RTP learning after remote address set to: 192.168.72.239:40046
> 0x7faf780116f0 – Strict RTP switching to RTP target address 192.168.72.239:40046 as source
[2021-02-22 15:35:16.669] WARNING[21048][C-0000001b]: file.c:475 fn_wrapper: Unable to open format ogg_opus
[2021-02-22 15:35:16.669] WARNING[21048][C-0000001b]: file.c:1262 ast_streamfile: Unable to open /tmp/response2-1613985073.20921_out (format (alaw)): No such file or directory
[2021-02-22 15:35:16.670] WARNING[21048][C-0000001b]: pbx_builtins.c:1175 pbx_builtin_background: ast_streamfile failed on PJSIP/1002-00000020 for /tmp/response2-1613985073.20921_out
– Executing [19@clients:3] NoOp(“PJSIP/1002-00000020”, “FAILED”) in new stack
– Executing [19@clients:4] GotoIf(“PJSIP/1002-00000020”, “1?:continue”) in new stack
; Codec
CLI> module show like codec_opus.so
Module Description Use Count Status Support Level
codec_opus.so OPUS Coder/Decoder 0 Running extended
1 modules loaded
core show translation
(upload://aqTbZhvdPV3Rd7H7fP3rQitR70t.png)
The codec module only provides translation, it does not provide playback or recording of files. The format_ogg_opus module, as provided using the Opus support from Sangoma, provides playback of ogg files using the opus codec.
Thank you very much for the answer, I have checked the format_ogg_opus.so module and it seems to be fine.
CLI> module show like format_ogg_opus.so
Module Description Use Count Status Support Level
format_ogg_opus.so OGG/Opus audio 0 Running core
1 modules loaded