<div dir="ltr">its ilbc@20i and it should set mode=20<div><br></div><div>/b</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 3, 2016 at 11:02 AM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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>
<div><div class="h5"><br>
<br>
&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;<br>
&gt; Hello,<br>
&gt;<br>
&gt; I have a call coming from FS and going via sip to a webrtc compliant client.<br>
&gt; Works fine as time the codec is not ILBC. If codec is ILBC is failing because<br>
&gt; Webrtc consider the codec as being invalid because of the ptime line.<br>
&gt;<br>
&gt; Inside their code:<br>
&gt;<br>
&gt; bool IsILBCRateValid(int rate, int frame_size_samples) {<br>
&gt;   if (((frame_size_samples == 240) || (frame_size_samples == 480)) &amp;&amp;<br>
&gt;       (rate == 13300)) {<br>
&gt;     return true;<br>
&gt;   } else if (((frame_size_samples == 160) || (frame_size_samples == 320)) &amp;&amp;<br>
&gt;       (rate == 15200)) {<br>
&gt;     return true;<br>
&gt;   } else {<br>
&gt;     return false;<br>
&gt;   }<br>
&gt; }<br>
&gt;<br>
&gt; This is failing because rate will be 13300 and frame_size_samples will be 160.<br>
&gt;<br>
&gt; frame_size_samples = (8000 / 1000) * 20 which is 160.<br>
&gt;<br>
&gt; How I can make fs to advertise correctly that the codec ILBC is 30 ms one and not 20 ?<br>
&gt;<br>
&gt; Here is the sdp that&#39;s generated:<br>
&gt;<br>
&gt; v=0<br>
&gt; o=FreeSWITCH 1475470534 1475470535 IN IP4 91.231.138.218<br>
&gt; s=FreeSWITCH<br>
&gt; c=IN IP4 91.XXX.XXX.XXX<br>
&gt; t=0 0<br>
&gt; a=msid-semantic: WMS 5K3pT3kGUXTisXNhdMYGtMP1VGBmzT<wbr>0v<br>
&gt; a=end-of-candidates<br>
&gt; m=audio 16430 RTP/SAVPF 102 0 103 101 104<br>
&gt; a=rtpmap:102 iLBC/8000<br>
&gt; a=fmtp:102 mode=30<br>
&gt; a=rtpmap:0 PCMU/8000<br>
&gt; a=rtpmap:103 isac/16000<br>
&gt; a=fmtp:103 ibitrate=32000;maxbitrate=<wbr>53400<br>
&gt; a=rtpmap:101 telephone-event/8000<br>
&gt; a=rtpmap:104 telephone-event/16000<br>
&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; a=setup:actpass<br>
&gt; a=rtcp-mux<br>
&gt; a=rtcp:16430 IN IP4 91.xxx.xxxx.xxx<br>
&gt; a=ssrc:4159978388 cname:tTLcMVJxIsF1gi8j<br>
&gt; a=ssrc:4159978388 msid:<wbr>5K3pT3kGUXTisXNhdMYGtMP1VGBmzT<wbr>0v a0<br>
&gt; a=ssrc:4159978388 mslabel:<wbr>5K3pT3kGUXTisXNhdMYGtMP1VGBmzT<wbr>0v<br>
&gt; a=ssrc:4159978388 label:<wbr>5K3pT3kGUXTisXNhdMYGtMP1VGBmzT<wbr>0va0<br>
&gt; a=ice-ufrag:VWQeyw6k2xxshnNB<br>
&gt; a=ice-pwd:<wbr>6oDJad6JwBACKzMvlsAKOwUH<br>
&gt; a=candidate:8788212768 1 udp 659136 91.XXX.XXX.XXX16430 typ host generation 0<br>
&gt; a=candidate:8788212768 2 udp 659136 91.XXX.XXX.XXX16430 typ host generation 0<br>
&gt; a=silenceSupp:off - - - -<br>
&gt; a=ptime:20<br>
&gt;<br>
&gt; Silviu<br>
</div></div>&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>
<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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font size="2" face="monospace, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a> (50% Discount using code FreeSwitch50)<br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a> </font><span style="font-family:monospace,monospace;font-size:small">(50% Discount using code FreeSwitch50)</span><font size="2" face="monospace, monospace"><br></font><a href="https://www.gofundme.com/freeswitch_ubuntu" style="font-size:12.8px" target="_blank"><font face="monospace, monospace">https://www.gofundme.com/freeswitch_ubuntu</font></a></p><p><font face="monospace, monospace">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank">here</a>! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank">/r/freeswitch</a></font></p>
<p><font size="2" face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>