<div dir="ltr"><div><div>Hello,<br><br></div>In webrtc project there is no code that's handling the mode=x. I fixed this for myself but it's not working with the official webrtc branch that's looking only for ptime attribute which in my case it'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"><<a href="mailto:dragos.oancea@athonet.com" target="_blank">dragos.oancea@athonet.com</a>></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 "a=fmtp:102 mode=30" - which means 30 ms ptime for ILBC ,<br>
but you also have the line "a=ptime:20". As you said, perhaps that's<br>
what'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>
> 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>
><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>
>> ______________________________<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>
><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>