<div dir="ltr"><div><div>Hello,<br><br></div>In webrtc project there is no code that&#39;s handling the mode=x. I fixed this for myself but it&#39;s not working with the official webrtc branch that&#39;s looking only for ptime attribute which in my case it&#39;s set by FS to 20 but ilbc mode is 30.<br><br></div>Silviu<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 3, 2016 at 7:22 PM, Dragos Oancea <span dir="ltr">&lt;<a href="mailto:dragos.oancea@athonet.com" target="_blank">dragos.oancea@athonet.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I see in SDP &quot;a=fmtp:102 mode=30&quot; - which means 30 ms ptime for ILBC ,<br>
but you also have the line &quot;a=ptime:20&quot;. As you said, perhaps that&#39;s<br>
what&#39;s confusing. Not sure which setting should prevail . Try iLBC@30i<br>
in the codec_string .<br>
<span class="HOEnZb"><font color="#888888"><br>
Dragos<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On 03/10/2016 18:02, Michael Jerris wrote:<br>
&gt; libc@20 is a totally valid rate for libc.  If they are rejecting that, you should file a bug with them.  Depending on how you are negotiating codecs you could force it by our normal codec negotiation settings.<br>
&gt;<br>
&gt;<br>
&gt;&gt; On Oct 3, 2016, at 5:40 AM, Caragea Silviu &lt;<a href="mailto:silviu.cpp@gmail.com">silviu.cpp@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; I have a call coming from FS and going via sip to a webrtc compliant client.<br>
&gt;&gt; Works fine as time the codec is not ILBC. If codec is ILBC is failing because<br>
&gt;&gt; Webrtc consider the codec as being invalid because of the ptime line.<br>
&gt;&gt;<br>
&gt;&gt; Inside their code:<br>
&gt;&gt;<br>
&gt;&gt; bool IsILBCRateValid(int rate, int frame_size_samples) {<br>
&gt;&gt;   if (((frame_size_samples == 240) || (frame_size_samples == 480)) &amp;&amp;<br>
&gt;&gt;       (rate == 13300)) {<br>
&gt;&gt;     return true;<br>
&gt;&gt;   } else if (((frame_size_samples == 160) || (frame_size_samples == 320)) &amp;&amp;<br>
&gt;&gt;       (rate == 15200)) {<br>
&gt;&gt;     return true;<br>
&gt;&gt;   } else {<br>
&gt;&gt;     return false;<br>
&gt;&gt;   }<br>
&gt;&gt; }<br>
&gt;&gt;<br>
&gt;&gt; This is failing because rate will be 13300 and frame_size_samples will be 160.<br>
&gt;&gt;<br>
&gt;&gt; frame_size_samples = (8000 / 1000) * 20 which is 160.<br>
&gt;&gt;<br>
&gt;&gt; How I can make fs to advertise correctly that the codec ILBC is 30 ms one and not 20 ?<br>
&gt;&gt;<br>
&gt;&gt; Here is the sdp that&#39;s generated:<br>
&gt;&gt;<br>
&gt;&gt; v=0<br>
&gt;&gt; o=FreeSWITCH 1475470534 1475470535 IN IP4 91.231.138.218<br>
&gt;&gt; s=FreeSWITCH<br>
&gt;&gt; c=IN IP4 91.XXX.XXX.XXX<br>
&gt;&gt; t=0 0<br>
&gt;&gt; a=msid-semantic: WMS 5K3pT3kGUXTisXNhdMYGtMP1VGBmzT<wbr>0v<br>
&gt;&gt; a=end-of-candidates<br>
&gt;&gt; m=audio 16430 RTP/SAVPF 102 0 103 101 104<br>
&gt;&gt; a=rtpmap:102 iLBC/8000<br>
&gt;&gt; a=fmtp:102 mode=30<br>
&gt;&gt; a=rtpmap:0 PCMU/8000<br>
&gt;&gt; a=rtpmap:103 isac/16000<br>
&gt;&gt; a=fmtp:103 ibitrate=32000;maxbitrate=<wbr>53400<br>
&gt;&gt; a=rtpmap:101 telephone-event/8000<br>
&gt;&gt; a=rtpmap:104 telephone-event/16000<br>
&gt;&gt; a=fingerprint:sha-256 B9:24:01:90:AD:E6:43:60:10:F9:<wbr>CA:3A:85:86:26:91:A6:41:A8:77:<wbr>3B:F0:39:20:3C:50:0F:A3:5E:1F:<wbr>48:03<br>
&gt;&gt; a=setup:actpass<br>
&gt;&gt; a=rtcp-mux<br>
&gt;&gt; a=rtcp:16430 IN IP4 91.xxx.xxxx.xxx<br>
&gt;&gt; a=ssrc:4159978388 cname:tTLcMVJxIsF1gi8j<br>
&gt;&gt; a=ssrc:4159978388 msid:<wbr>5K3pT3kGUXTisXNhdMYGtMP1VGBmzT<wbr>0v a0<br>
&gt;&gt; a=ssrc:4159978388 mslabel:<wbr>5K3pT3kGUXTisXNhdMYGtMP1VGBmzT<wbr>0v<br>
&gt;&gt; a=ssrc:4159978388 label:<wbr>5K3pT3kGUXTisXNhdMYGtMP1VGBmzT<wbr>0va0<br>
&gt;&gt; a=ice-ufrag:VWQeyw6k2xxshnNB<br>
&gt;&gt; a=ice-pwd:<wbr>6oDJad6JwBACKzMvlsAKOwUH<br>
&gt;&gt; a=candidate:8788212768 1 udp 659136 91.XXX.XXX.XXX16430 typ host generation 0<br>
&gt;&gt; a=candidate:8788212768 2 udp 659136 91.XXX.XXX.XXX16430 typ host generation 0<br>
&gt;&gt; a=silenceSupp:off - - - -<br>
&gt;&gt; a=ptime:20<br>
&gt;&gt;<br>
&gt;&gt; Silviu<br>
&gt;&gt; ______________________________<wbr>______________________________<wbr>_____________<br>
&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt;&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
&gt;&gt;<br>
&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
&gt;&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt; ______________________________<wbr>______________________________<wbr>_____________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>