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