[Freeswitch-users] issue with ilbc and ptime between a call between webrtc client and freeswitch

Brian West brian at freeswitch.org
Mon Oct 3 20:14:16 MSD 2016


its ilbc at 20i and it should set mode=20

/b


On Mon, Oct 3, 2016 at 11:02 AM, Michael Jerris <mike at jerris.com> wrote:

> libc at 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.
>
>
> > On Oct 3, 2016, at 5:40 AM, Caragea Silviu <silviu.cpp at gmail.com> wrote:
> >
> > Hello,
> >
> > I have a call coming from FS and going via sip to a webrtc compliant
> client.
> > Works fine as time the codec is not ILBC. If codec is ILBC is failing
> because
> > Webrtc consider the codec as being invalid because of the ptime line.
> >
> > Inside their code:
> >
> > bool IsILBCRateValid(int rate, int frame_size_samples) {
> >   if (((frame_size_samples == 240) || (frame_size_samples == 480)) &&
> >       (rate == 13300)) {
> >     return true;
> >   } else if (((frame_size_samples == 160) || (frame_size_samples ==
> 320)) &&
> >       (rate == 15200)) {
> >     return true;
> >   } else {
> >     return false;
> >   }
> > }
> >
> > This is failing because rate will be 13300 and frame_size_samples will
> be 160.
> >
> > frame_size_samples = (8000 / 1000) * 20 which is 160.
> >
> > How I can make fs to advertise correctly that the codec ILBC is 30 ms
> one and not 20 ?
> >
> > Here is the sdp that's generated:
> >
> > v=0
> > o=FreeSWITCH 1475470534 1475470535 IN IP4 91.231.138.218
> > s=FreeSWITCH
> > c=IN IP4 91.XXX.XXX.XXX
> > t=0 0
> > a=msid-semantic: WMS 5K3pT3kGUXTisXNhdMYGtMP1VGBmzT0v
> > a=end-of-candidates
> > m=audio 16430 RTP/SAVPF 102 0 103 101 104
> > a=rtpmap:102 iLBC/8000
> > a=fmtp:102 mode=30
> > a=rtpmap:0 PCMU/8000
> > a=rtpmap:103 isac/16000
> > a=fmtp:103 ibitrate=32000;maxbitrate=53400
> > a=rtpmap:101 telephone-event/8000
> > a=rtpmap:104 telephone-event/16000
> > a=fingerprint:sha-256 B9:24:01:90:AD:E6:43:60:10:F9:
> CA:3A:85:86:26:91:A6:41:A8:77:3B:F0:39:20:3C:50:0F:A3:5E:1F:48:03
> > a=setup:actpass
> > a=rtcp-mux
> > a=rtcp:16430 IN IP4 91.xxx.xxxx.xxx
> > a=ssrc:4159978388 cname:tTLcMVJxIsF1gi8j
> > a=ssrc:4159978388 msid:5K3pT3kGUXTisXNhdMYGtMP1VGBmzT0v a0
> > a=ssrc:4159978388 mslabel:5K3pT3kGUXTisXNhdMYGtMP1VGBmzT0v
> > a=ssrc:4159978388 label:5K3pT3kGUXTisXNhdMYGtMP1VGBmzT0va0
> > a=ice-ufrag:VWQeyw6k2xxshnNB
> > a=ice-pwd:6oDJad6JwBACKzMvlsAKOwUH
> > a=candidate:8788212768 1 udp 659136 91.XXX.XXX.XXX16430 typ host
> generation 0
> > a=candidate:8788212768 2 udp 659136 91.XXX.XXX.XXX16430 typ host
> generation 0
> > a=silenceSupp:off - - - -
> > a=ptime:20
> >
> > Silviu
> > ____________________________________________________________
> _____________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org
> > http://www.freeswitchsolutions.com
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://confluence.freeswitch.org
> > http://www.cluecon.com
> >
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 

*Brian West*
brian at freeswitch.org


*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com (50% Discount using code FreeSwitch50)
http://www.freeswitchcookbook.com (50% Discount using code FreeSwitch50)
https://www.gofundme.com/freeswitch_ubuntu

Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
/r/freeswitch <https://www.reddit.com/r/freeswitch>

*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20161003/b47879d7/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list