[Asterisk-Users] RTP frame size location?
Andres
andres at telesip.net
Tue Mar 28 22:06:37 MST 2006
John Todd wrote:
>
> Google has given me too many responses, so I'll ask the list:
>
> Where in the Asterisk rtp source code can I find the default
> millisecond frame size? I've looked around for obvious pointers, but
> it's not clear. I'd like to "force" my Asterisk server to use a
> certain frame size all the time. (Of course, ideally I'd like to
> prefer or even force that frame size in a peer-by-peer or user-by-user
> fashion, but I'm just looking for a quick hack right now.)
>
> Anyone know where this is in rtp.c or other RTP-associated files?
You can force that by codec in rtp.c. For example for G729 find the
following part of the code:
case AST_FORMAT_G729A:
if (!rtp->smoother) {
rtp->smoother = ast_smoother_new(20); <====
This 20 is the fame size in milliseconds, just change it to something else.
It works perfectly with other values we have tested of 40 and 60. We
currently use 60 on all our servers. It cuts down on bandwidth for a
G279 call to about 15Kbps.
--
Andres
Technical Support
http://www.telesip.net
More information about the asterisk-users
mailing list