I recently installed Incredible PBX 13 on a Raspberry Pi 2 and noticed the opus codec is not working. I am not sure what I would need to do here as the documentation states opus is supported, and I would assume I do not need to recompile.
Any suggestion are appreciated. Below is some information and details to confirm my issue. Thanks!
- I enabled and moved up the opus codec in webgui: Settings > Asterisk SIP Settings > Audio Codecs (submit/apply config)
- I did the same on the phone (opus as priority)
- I called *60 from a Grandstream 2140 phone (which supports opus), it connected, then disconnects, all other "opus" calls fail, g722, g711, etc work fine. Also tried with soft clients as well.
- In Asterisk CLI debug on I receive:
and
- I check translation table (no opus):
- I check to see if the module codec_opus.so is loaded (no):
- I check to see if codec_resample is loaded (yes):
- I check to see if the opus module is installed (yes):
I attempt to manually load the opus module (fail):
I also check to see that xmlstrlet is on my machine (yes):
Some info about versions:
Any suggestion are appreciated. Below is some information and details to confirm my issue. Thanks!
- I enabled and moved up the opus codec in webgui: Settings > Asterisk SIP Settings > Audio Codecs (submit/apply config)
- I did the same on the phone (opus as priority)
- I called *60 from a Grandstream 2140 phone (which supports opus), it connected, then disconnects, all other "opus" calls fail, g722, g711, etc work fine. Also tried with soft clients as well.
- In Asterisk CLI debug on I receive:
Code:
[2017-09-11 18:09:16] WARNING[11793][C-00000014]: codec.c:397 ast_codec_samples_count: Unable to calculate samples for codec opus
Code:
[2017-09-11 18:09:17] WARNING[11793][C-00000014]: channel.c:5540 set_format: Unable to find a codec translation path: (gsm) -> (opus)
- I check translation table (no opus):
Code:
ipbx*CLI> core show translation
Translation times between formats (in microseconds) for one second of data
Source Format (Rows) Destination Format (Columns)
ulaw alaw gsm g726 g726aal2 adpcm slin slin slin slin slin slin slin slin slin lpc10 speex speex speex ilbc g722 testlaw
ulaw - 9150 15000 15000 15000 15000 9000 17000 17000 17000 17000 17000 17000 17000 17000 15000 15000 23000 23000 15000 17250 15000
alaw 9150 - 15000 15000 15000 15000 9000 17000 17000 17000 17000 17000 17000 17000 17000 15000 15000 23000 23000 15000 17250 15000
gsm 15000 15000 - 15000 15000 15000 9000 17000 17000 17000 17000 17000 17000 17000 17000 15000 15000 23000 23000 15000 17250 15000
g726 15000 15000 15000 - 15000 15000 9000 17000 17000 17000 17000 17000 17000 17000 17000 15000 15000 23000 23000 15000 17250 15000
g726aal2 15000 15000 15000 15000 - 15000 9000 17000 17000 17000 17000 17000 17000 17000 17000 15000 15000 23000 23000 15000 17250 15000
adpcm 15000 15000 15000 15000 15000 - 9000 17000 17000 17000 17000 17000 17000 17000 17000 15000 15000 23000 23000 15000 17250 15000
slin 6000 6000 6000 6000 6000 6000 - 8000 8000 8000 8000 8000 8000 8000 8000 6000 6000 14000 14000 6000 8250 6000
slin 14500 14500 14500 14500 14500 14500 8500 - 8000 8000 8000 8000 8000 8000 8000 14500 14500 14000 14000 14500 14000 14500
slin 14500 14500 14500 14500 14500 14500 8500 8500 - 8000 8000 8000 8000 8000 8000 14500 14500 6000 14000 14500 6000 14500
slin 14500 14500 14500 14500 14500 14500 8500 8500 8500 - 8000 8000 8000 8000 8000 14500 14500 14500 14000 14500 14500 14500
slin 14500 14500 14500 14500 14500 14500 8500 8500 8500 8500 - 8000 8000 8000 8000 14500 14500 14500 6000 14500 14500 14500
slin 14500 14500 14500 14500 14500 14500 8500 8500 8500 8500 8500 - 8000 8000 8000 14500 14500 14500 14500 14500 14500 14500
slin 14500 14500 14500 14500 14500 14500 8500 8500 8500 8500 8500 8500 - 8000 8000 14500 14500 14500 14500 14500 14500 14500
slin 14500 14500 14500 14500 14500 14500 8500 8500 8500 8500 8500 8500 8500 - 8000 14500 14500 14500 14500 14500 14500 14500
slin 14500 14500 14500 14500 14500 14500 8500 8500 8500 8500 8500 8500 8500 8500 - 14500 14500 14500 14500 14500 14500 14500
lpc10 15000 15000 15000 15000 15000 15000 9000 17000 17000 17000 17000 17000 17000 17000 17000 - 15000 23000 23000 15000 17250 15000
speex 15000 15000 15000 15000 15000 15000 9000 17000 17000 17000 17000 17000 17000 17000 17000 15000 - 23000 23000 15000 17250 15000
speex 23500 23500 23500 23500 23500 23500 17500 17500 9000 17000 17000 17000 17000 17000 17000 23500 23500 - 23000 23500 15000 23500
speex 23500 23500 23500 23500 23500 23500 17500 17500 17500 17500 9000 17000 17000 17000 17000 23500 23500 23500 - 23500 23500 23500
ilbc 15000 15000 15000 15000 15000 15000 9000 17000 17000 17000 17000 17000 17000 17000 17000 15000 15000 23000 23000 - 17250 15000
g722 15600 15600 15600 15600 15600 15600 9600 17500 9000 17000 17000 17000 17000 17000 17000 15600 15600 15000 23000 15600 - 15600
testlaw 15000 15000 15000 15000 15000 15000 9000 17000 17000 17000 17000 17000 17000 17000 17000 15000 15000 23000 23000 15000 17250 -
- I check to see if the module codec_opus.so is loaded (no):
Code:
ipbx*CLI> module show like opus
Module Description Use Count Status Support Level
res_format_attr_opus.so Opus Format Attribute Module 1 Running core
1 modules loaded
- I check to see if codec_resample is loaded (yes):
Code:
ipbx*CLI> module show like codec_resample
Module Description Use Count Status Support Level
codec_resample.so SLIN Resampling Codec 0 Running core
1 modules loaded
- I check to see if the opus module is installed (yes):
Code:
root@ipbx:~ $ ls /usr/lib/asterisk/modules/ | grep opus
codec_opus.manifest.xml
codec_opus.so
format_ogg_opus.so
res_format_attr_opus.so
I attempt to manually load the opus module (fail):
Code:
ipbx*CLI> module load codec_opus.so
Unable to load module codec_opus.so
Command 'module load codec_opus.so ' failed.
[2017-09-11 18:25:20] WARNING[12419]: loader.c:556 load_dynamic_module: Error loading module 'codec_opus.so': /usr/lib/asterisk/modules/codec_opus.so: cannot open shared object file: No such file or directory
[2017-09-11 18:25:20] WARNING[12419]: loader.c:1087 load_resource: Module 'codec_opus.so' could not be loaded.
I also check to see that xmlstrlet is on my machine (yes):
Code:
root@ipbx:~ $ which xmlstarlet
/usr/bin/xmlstarlet
Some info about versions:
Code:
root@ipbx:~ $ uname -a
Linux ipbx 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux
Code:
ipbx*CLI> core show version
Asterisk 13.12.2 built by root @ raspberrypi on a armv7l running Linux on 2017-02-02 18:13:04 UTC