[pjsip] Changing codec parameter dynamically

Bill Gardner billg at wavearts.com
Fri Dec 2 18:45:46 EST 2016


Hi,

You can enable VAD (voice activity detection) and when you stop talking 
the stream will stop sending packets, except for periodic keepalive 
packets whose rate can be controlled by some compile time constant, or 
you can disable keepalive altogether.

Regards,

Bill

On 12/2/2016 6:12 PM, 301 at free.fr 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 at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20161202/daf00b23/attachment.html>


More information about the pjsip mailing list