SOLVED Opus codec

Status
Not open for further replies.
Jul 15, 2021
102
9
18
34
I have two internal extensions and I am trying to use Opus when those extensions call each other. As you can see below the SDP sends Opus as first preference.

In the global-codec-preference I have set OPUS & PCMA - I also tried the other absolute strings as per this link, the result is the same, i.e the codec OPUS is not supported, how do I find whether the module opus has been loaded?

When I set global-codec-preference to just OPUS - the call fails saying unsupported codec. Can you let me know what needs to be done to enable Opus


2021-07-30 21:10:44.501949 [DEBUG] sofia.c:2544 Re-attaching to session 80c45490-f14c-11eb-a628-e3089d299779
2021-07-30 21:10:44.501949 [DEBUG] sofia.c:10279 sofia/internal/11@192.168.1.2 receiving invite from 192.168.1.10:54209 version: 1.10.3 -release 32bit
2021-07-30 21:10:44.501949 [DEBUG] sofia.c:10373 verifying acl "domains" for ip/port 192.168.1.10:0.
2021-07-30 21:10:44.541836 [DEBUG] sofia.c:11476 Setting NAT mode based on via port
2021-07-30 21:10:44.541836 [DEBUG] sofia.c:7325 Channel sofia/internal/11@192.168.1.2 entering state [received][100]
2021-07-30 21:10:44.541836 [DEBUG] sofia.c:7335 Remote SDP:
v=0
o=- 1728713327 1728713327 IN IP4 192.168.1.10
s=-
c=IN IP4 192.168.1.10
t=0 0
m=audio 25276 RTP/AVP 96 8 101
a=rtpmap:96 opus/48000/2
a=fmtp:96 useinbandfec=1
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtcp-mux

2021-07-30 21:10:44.541836 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [opus:96:48000:20:0:2]/[PCMA:8:8000:20:64000:1]
2021-07-30 21:10:44.541836 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2021-07-30 21:10:44.541836 [DEBUG] switch_core_media.c:5647 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2021-07-30 21:10:44.541836 [DEBUG] switch_core_media.c:5508 Set telephone-event payload to 101@8000
2021-07-30 21:10:44.541836 [DEBUG] switch_core_media.c:3837 Set Codec sofia/internal/11@192.168.1.2 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
2021-07-30 21:10:44.541836 [DEBUG] switch_core_codec.c:111 sofia/internal/11@192.168.1.2 Original read codec set to PCMA:8
 
Jul 15, 2021
102
9
18
34
Configuring after sleep deprivation makes you miss the obvious - the option is under Advance-> modules, yes Opus was disabled
 
Jul 15, 2021
102
9
18
34
Just to update, when I tried to start Opus module - it went to back to stopped for some reason. I had to press start few times to get it working. On the console I continue to get this error - I mark this as solved as this error doesn't seem to be related to Opus codec


2021-07-30 23:26:44.580232 [ERR] mod_avmd.c:966 AVMD config parameter 'debug' missing or invalid - using default 2021-07-30 23:26:44.580232 [ERR] mod_avmd.c:972 AVMD config parameter 'report_status' missing or invalid - using default 2021-07-30 23:26:44.580232 [ERR] mod_avmd.c:978 AVMD config parameter 'fast_math' missing or invalid - using default 2021-07-30 23:26:44.580232 [ERR] mod_avmd.c:984 AVMD config parameter 'require_continuous_streak' missing or invalid - using default 2021-07-30 23:26:44.580232 [ERR] mod_avmd.c:990 AVMD config parameter 'sample_n_continuous_streak' missing or invalid - using default 2021-07-30 23:26:44.580232 [ERR] mod_avmd.c:996 AVMD config parameter 'sample_n_to_skip' missing or invalid - using default 2021-07-30 23:26:44.580232 [ERR] mod_avmd.c:1002 AVMD config parameter 'require_continuous_streak_amp' missing or invalid - using default 2021-07-30 23:26:44.580232 [ERR] mod_avmd.c:1008 AVMD config parameter 'sample_n_continuous_streak_amp' missing or invalid - using default 2021-07-30 23:26:44.580232 [ERR] mod_avmd.c:1014 AVMD config parameter 'simplified_estimation' missing or invalid - using default 2021-07-30 23:26:44.580232 [ERR] mod_avmd.c:1020 AVMD config parameter 'inbound_channel' missing or invalid - using default 2021-07-30 23:26:44.580232 [ERR] mod_avmd.c:1026 AVMD config parameter 'outbound_channel' missing or invalid - using default 2021-07-30 23:26:44.580232 [ERR] mod_avmd.c:1032 AVMD config parameter 'detection_mode' missing or invalid - using default 2021-07-30 23:26:44.580232 [ERR] mod_avmd.c:1038 AVMD config parameter 'detectors_n' missing or invalid - using default 2021-07-30 23:26:44.580232 [ERR] mod_avmd.c:1044 AVMD config parameter 'detectors_lagged_n' missing or invalid - using default 2021-07-30 23:26:44.580232 [INFO] mod_avmd.c:1052 Type 'avmd show' to display default settings. Type 'avmd ' + TAB for autocompletion. 2021-07-30 23:26:44.600235 [INFO] mod_enum.c:884 ENUM Reloaded 2021-07-30 23:26:44.600235 [INFO] switch_time.c:1430 Timezone reloaded 530 definitions
 
Last edited:
Status
Not open for further replies.