Author Topic: Transcoding and ptime  (Read 12067 times)

looserouting

  • Newbie
  • *
  • Posts: 23
    • View Profile
Transcoding and ptime
« on: May 24, 2013, 07:17:56 AM »
when i transcode can I "offer" ilbc30 and g711 with ptime:20 ?
afaik yate sets the ptime equal to ilbc mode.
Where can I set the default ptime for other codecs then ilbc (or codecs with its own ptime settings like ilbc)?

another thing i saw: if I just enable ilbc (not ilbc20 or ilbc30) in ysipchan.conf then ilbc will not be used at all.
« Last Edit: June 03, 2013, 04:24:54 AM by looserouting »

looserouting

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Transcoding and ptime
« Reply #1 on: June 21, 2013, 05:51:36 AM »
The RTP Payload Format says:

Quote
The offer contains the preferred mode of the offerer.  The answerer
   may agree to that mode by including the same mode in the answer, or
   may include a different mode.  The resulting mode used by both
   parties SHALL be the lower of the bandwidth modes in the offer and
   answer.

   That is, an offer of "mode=20" receiving an answer of "mode=30" will
   result in "mode=30" being used by both participants.  Similarly, an
   offer of "mode=30" and an answer of "mode=20" will result in
   "mode=30" being used by both participants.

and:

Quote
Parameter ptime can not be used for the purpose of specifying iLBC
   operating mode, due to fact that for the certain values it will be
   impossible to distinguish which mode is about to be used (e.g. when
   ptime=60, it would be impossible to distinguish if packet is
   carrying 2 frames of 30 ms or 3 frames of 20 ms etc.).
"

So setting "ptime = mode = 20" or somthing like that is wrong

I see al lot of  UAs using ptime = 20 and mode = 30 in SDP.
maybe it's why in case that ilbc(mode 30) will be negotiated ptime 30 will be automatically used.

looserouting

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Transcoding and ptime
« Reply #2 on: August 22, 2013, 08:58:58 AM »
thank you for the fix :)