Re: Changing codec parameter dynamically

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



you can do it at your custom transport adapter.
for example I guess you have some application flag "without audio". when this flag enabled, drop some rtp frames and send only 200 ms. only things you need to do is
rewrite rtp seq and rtp timestamp correctly at your adapter if remote peer don't like big big packet loss.
VAD work for some codec, some wouldn't because some like "SID"  frames still sending out.

On Sat, Dec 3, 2016 at 7:12 AM, <301@xxxxxxx> wrote:
Hi,

In my project where I simulate some kind of push to talk, I need to be able to have no payload in the RTP packets when the PTT is off. I succeeded to do that by removing the payload in a custom transport adapter and the transport_send_rtp callback (but is it the best way to do that?).
Anyway my second need is to change the frequency of RTP packets when I remove the payload (PTT off). For example:
with audio: RTP frame every 20ms
without audio: RTP frame every 200ms
So I was thinking of dynamically changing the ptime of the codec in use, but I don't figure out how to do that (again this may not be the right way to do it, any other suggestion welcome then).
Could anybody give me an hint?

Thanks.
Thibault

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux