<div dir="ltr"><div><div><div><div>Hello,<br><br></div>Isn&#39;t it the same issue as reported in <a href="https://freeswitch.org/jira/browse/FS-6994">https://freeswitch.org/jira/browse/FS-6994</a><br></div>If yes, could you please give your comments in that ticket?<br><br></div>Thanks,<br></div>  jalsot<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 20, 2014 at 9:23 AM, David Shemesh <span dir="ltr">&lt;<a href="mailto:david@kaymera.com" target="_blank">david@kaymera.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hope someone can help with this:<br>
I am experiencing a strange issue using Opus.<br>
The call is from a registered client to a landline through a sip Trunk.<br>
Freeswitch is transcoding From Opus to PCMU and after about ~1min the<br>
call drops with &quot;switch_core_io.c:1282 Codec OPUS (STANDARD) decoder<br>
error!&quot; and the call gets disconnected.<br>
It looks like this happens only when i enabling the jitterbuffer.<br>
I was able to reproduce this using various Clients (Csipsimple, Jitsi) &amp;<br>
Sip trunks. it seems like its has something to do with freeswitch&#39;s<br>
implementation of OPUS.<br>
<br>
FreeSWITCH Version 1.5.15b+git~20141112T004420Z~dd629c1516~64bit<br>
<br>
Dialplan:<br>
<br>
&lt;extension name=&quot;out&quot; &gt;<br>
    &lt;condition field=&quot;destination_number&quot; expression=&quot;^9(\d+)$&quot; &gt;<br>
        &lt;action application=&quot;set&quot;<br>
data=&quot;rtp_jitter_buffer_during_bridge=true&quot; /&gt;<br>
        &lt;action application=&quot;set&quot; data=&quot;rtp_jitter_buffer_plc=true&quot; /&gt;<br>
        &lt;action application=&quot;set&quot; data=&quot;jitterbuffer_msec=60:200:20&quot; /&gt;<br>
        &lt;action application=&quot;set&quot; data=&quot;call_direction=outbound&quot; /&gt;<br>
        &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot; /&gt;<br>
        &lt;action application=&quot;set&quot;<br>
data=&quot;effective_caller_id_name=${outbound_caller_id_name}&quot; /&gt;<br>
        &lt;action application=&quot;set&quot;<br>
data=&quot;effective_caller_id_number=${outbound_caller_id_number}&quot; /&gt;<br>
        &lt;action application=&quot;set&quot; data=&quot;inherit_codec=true&quot; /&gt;<br>
        &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot; /&gt;<br>
        &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/out01/$1&quot; /&gt;<br>
        &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/ou02/$1&quot; /&gt;<br>
    &lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
Freeswitch Log:<br>
<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:3389 Audio Codec<br>
Compare [PCMU:0:8000:10:64000]/[opus:116:48000:20:0]<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:3389 Audio Codec<br>
Compare [PCMU:0:8000:10:64000]/[PCMU:0:8000:20:64000]<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:3424 Audio Codec<br>
Compare [PCMU:0:8000:20:64000] is saved as a near-match<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:3389 Audio Codec<br>
Compare [PCMU:0:8000:10:64000]/[GSM:3:8000:20:13200]<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:3389 Audio Codec<br>
Compare [PCMU:0:8000:10:64000]/[PCMA:8:8000:20:64000]<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:3389 Audio Codec<br>
Compare [PCMU:0:8000:10:64000]/[G722:9:8000:20:64000]<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:3389 Audio Codec<br>
Compare [PCMU:0:8000:10:64000]/[AMR:96:8000:20:12200]<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:3389 Audio Codec<br>
Compare [PCMU:0:8000:10:64000]/[iLBC:97:8000:30:13330]<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:3389 Audio Codec<br>
Compare [PCMU:0:8000:10:64000]/[SPEEX:99:8000:20:24600]<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:3389 Audio Codec<br>
Compare [PCMU:0:8000:10:64000]/[SPEEX:99:16000:20:42200]<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:3389 Audio Codec<br>
Compare [PCMU:0:8000:10:64000]/[SPEEX:99:32000:20:44000]<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:3315 Set<br>
telephone-event payload to 101<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:3494 Substituting<br>
codec PCMU@10i@8000h<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:2343 Set Codec<br>
sofia/external/123456789 PCMU/8000 10 ms 80 samples 64000 bits<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_codec.c:111<br>
sofia/external/123456789 Original read codec set to PCMU:0<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:3623 Set 2833<br>
dtmf send payload to 101<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:4847 AUDIO RTP<br>
[sofia/external/123456789] 10.0.50.160 port 23644 -&gt; 212.179.176.54 port<br>
60036 codec: 0 ms: 10<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_rtp.c:3334 Starting timer<br>
[soft] 80 bytes per 10ms<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:5194 Set 2833<br>
dtmf send payload to 101<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:5200 Set 2833<br>
dtmf receive payload to 101<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_core_media.c:5228 Set comfort<br>
noise payload to 13<br>
2014-11-18 10:51:25.876680 [NOTICE] sofia_media.c:92 Pre-Answer<br>
sofia/external/123456789!<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_channel.c:3389 Send signal<br>
sofia/internal/<a href="mailto:1000@192.168.10.150">1000@192.168.10.150</a> [BREAK]<br>
2014-11-18 10:51:25.876680 [DEBUG] switch_channel.c:3393<br>
(sofia/external/123456789) Callstate Change RINGING -&gt; EARLY<br>
2014-11-18 10:51:25.896682 [DEBUG] switch_core_codec.c:246<br>
sofia/internal/<a href="mailto:1000@192.168.10.150">1000@192.168.10.150</a> Restore previous codec opus:116.<br>
2014-11-18 10:51:25.896682 [DEBUG] switch_ivr_originate.c:3551 Originate<br>
Resulted in Success: [sofia/external/123456789]<br>
2014-11-18 10:51:25.896682 [DEBUG] switch_core_session.c:907 Send signal<br>
sofia/external/123456789 [BREAK]<br>
2014-11-18 10:51:25.896682 [DEBUG] switch_core_session.c:907 Send signal<br>
sofia/internal/<a href="mailto:1000@192.168.10.150">1000@192.168.10.150</a> [BREAK]<br>
2014-11-18 10:51:25.896682 [DEBUG] switch_ivr_bridge.c:1460<br>
(sofia/external/123456789) State Change CS_CONSUME_MEDIA -&gt;<br>
CS_EXCHANGE_MEDIA<br>
2014-11-18 10:51:25.896682 [DEBUG] switch_core_session.c:1387 Send<br>
signal sofia/external/123456789 [BREAK]<br>
2014-11-18 10:51:25.896682 [DEBUG] switch_core_state_machine.c:467<br>
(sofia/external/123456789) Running State Change CS_EXCHANGE_MEDIA<br>
2014-11-18 10:51:25.896682 [DEBUG] switch_core_state_machine.c:533<br>
(sofia/external/123456789) State EXCHANGE_MEDIA<br>
2014-11-18 10:51:25.896682 [DEBUG] mod_sofia.c:592 SOFIA EXCHANGE_MEDIA<br>
2014-11-18 10:51:26.056685 [DEBUG] switch_rtp.c:5555 Correct ip/port<br>
confirmed.<br>
2014-11-18 10:51:26.056685 [NOTICE] switch_core_io.c:1230 Activating<br>
write resampler<br>
2014-11-18 10:51:26.056685 [DEBUG] switch_core_io.c:1458 Engaging Write<br>
Buffer at 160 bytes to accommodate 320-&gt;160<br>
2014-11-18 10:51:26.136684 [ERR] switch_core_io.c:1282 Codec OPUS<br>
(STANDARD) decoder error!<br>
2014-11-18 10:51:26.136684 [DEBUG] switch_ivr_bridge.c:578<br>
sofia/external/123456789 ending bridge by request from write function<br>
2014-11-18 10:51:26.136684 [DEBUG] switch_ivr_bridge.c:659 BRIDGE THREAD<br>
DONE [sofia/internal/<a href="mailto:1000@192.168.10.150">1000@192.168.10.150</a>]<br>
2014-11-18 10:51:26.136684 [DEBUG] switch_ivr_bridge.c:689 Send signal<br>
sofia/external/123456789 [BREAK]<br>
2014-11-18 10:51:26.136684 [DEBUG] switch_ivr_bridge.c:659 BRIDGE THREAD<br>
DONE [sofia/external/123456789]<br>
2014-11-18 10:51:26.136684 [DEBUG] switch_ivr_bridge.c:689 Send signal<br>
sofia/internal/<a href="mailto:1000@192.168.10.150">1000@192.168.10.150</a> [BREAK]<br>
2014-11-18 10:51:26.136684 [NOTICE] switch_ivr_bridge.c:751 Hangup<br>
sofia/external/123456789 [CS_EXCHANGE_MEDIA] [ORIGINATOR_CANCEL]<br>
2014-11-18 10:51:26.136684 [DEBUG] switch_channel.c:3215 Send signal<br>
sofia/external/123456789 [KILL]<br>
2014-11-18 10:51:26.136684 [DEBUG] switch_core_session.c:1387 Send<br>
signal sofia/external/123456789 [BREAK]<br>
2014-11-18 10:51:26.136684 [DEBUG] switch_core_state_machine.c:533<br>
(sofia/external/123456789) State EXCHANGE_MEDIA going to sleep<br>
2014-11-18 10:51:26.136684 [DEBUG] switch_core_state_machine.c:467<br>
(sofia/external/123456789) Running State Change CS_HANGUP<br>
2014-11-18 10:51:26.136684 [DEBUG] switch_core_state_machine.c:730<br>
(sofia/external/123456789) Callstate Change EARLY -&gt; HANGUP<br>
2014-11-18 10:51:26.136684 [DEBUG] switch_core_state_machine.c:732<br>
(sofia/external/123456789) State HANGUP<br>
2014-11-18 10:51:26.136684 [DEBUG] mod_sofia.c:413 Channel<br>
sofia/external/123456789 hanging up, cause: ORIGINATOR_CANCEL<br>
<br>
Anyone have any idea whats going on ?<br>
<br>
Thanks<br>
David<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>