<div dir="ltr">Hello,<div><br></div><div>In my follwing setup Sipml5 -> FS -> Cisco ->PSTN the codec is changed during the call. At the first glance the call evolution is:</div><div><br></div><div>1. Sipml5 Client codec pref is OPUS,ISAC, PCMU, PCMA , Cisco voice class codec PCMU, PCMA (g711u&a). After negociation the PCMU codec is set.</div>
<div><br></div><div><div>2014-08-25 19:03:05.412802 [DEBUG] switch_core_media.c:3475 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]</div><div>2014-08-25 19:03:05.412802 [DEBUG] switch_core_media.c:3530 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match</div>
</div><div><br></div><div>The call is set up, voice goes well in both ways. </div><div><br></div><div>2. After a while(after receiving the next SDP packet from WebRtc Client) it seems that it finds a new codec match in OPUS.</div>
<div><br></div><div><div>2014-08-25 19:04:11.292795 [DEBUG] switch_core_media.c:3475 Audio Codec Compare [opus:111:48000:60:0:1]/[opus:116:48000:20:0:1]</div><div>2014-08-25 19:04:11.292795 [DEBUG] switch_core_media.c:3530 Audio Codec Compare [opus:116:48000:20:0:1] ++++ is saved as a match</div>
</div><div><br></div><div>FS will change the codec and the call will end.</div><div><br></div><div><div>2014-08-25 19:04:11.292795 [DEBUG] switch_core_media.c:2260 Changing Codec from PCMU@20ms@8000hz to opus@20ms@48000hz</div>
<div>2014-08-25 19:04:11.332798 [DEBUG] switch_core_media.c:2352 Set Codec sofia/internal/<a href="mailto:xxxx@5.6.7.8">xxxx@5.6.7.8</a> opus/48000 20 ms 960 samples 0 bits 1 channels</div><div>2014-08-25 19:04:11.332798 [DEBUG] switch_core_codec.c:123 sofia/internal/<a href="mailto:xxxx@5.6.7.8">xxxx@5.6.7.8</a> Original read codec replaced with opus:116</div>
<div>2014-08-25 19:04:11.352807 [NOTICE] switch_core_io.c:1257 Activating write resampler</div><div>2014-08-25 19:04:11.752801 [NOTICE] switch_rtp.c:1144 Auto Changing stun/rtp/dtls port from <a href="http://1.2.3.4:50594">1.2.3.4:50594</a> to <a href="http://1.2.3.4:19602">1.2.3.4:19602</a></div>
<div>2014-08-25 19:04:12.072801 [ERR] mod_opus.c:402 Decoder Error: corrupted stream!</div></div><div><div>2014-08-25 19:04:12.072801 [ERR] switch_core_io.c:1310 Codec OPUS (STANDARD) decoder error!</div><div>2014-08-25 19:04:12.072801 [DEBUG] switch_ivr_bridge.c:579 sofia/external/<a href="mailto:5555555@9.9.9.9">5555555@9.9.9.9</a> ending bridge by request from write function</div>
</div><div><br></div><div>I tried to force codec on both legs by adding:</div><div> <action application="set" data="absolute_codec_string=PCMU,PCMA"/> but nothing change. Also inbound-late-negotiation is set to true in sofia-profiles.</div>
<div><br></div><div>Any ideea how to fix this issue?</div><div><br></div><div>Here is the full log: <a href="http://pastebin.freeswitch.org/23161">http://pastebin.freeswitch.org/23161</a></div><div><br></div><div>Thank you</div>
<div><br></div></div>