[Asterisk-Dev] Retrieving variable set by SetVar()in extensions.conf

Alf Thomas Nilsen a-t-n at online.no
Thu Mar 31 03:30:03 MST 2005


Thanks for the reply!

I think I might not have been clear enough about what I want to do.

What I really want to do is to change a value here:

Line 1225 (Asterisk CVS-v1-0-01/17/05-21:16:14), rtp.c:

    case AST_FORMAT_G729A:
                if (!rtp->smoother) {
                        rtp->smoother = ast_smoother_new(20);
                        if (rtp->smoother)
                                ast_smoother_set_flags(rtp->smoother,
AST_SMOOTHER_FLAG_G729);
                }

I want to change ast_smoother_new(20) to for example
ast_smoother_new(payload_size).

I have tried setting a different value directly in the source, for example
40 and used tcpdump to see the results. While the clients still send
whatever sample sizes they want, the Asterisk server will collect samples
until it reaches the set size before sending them to the other client. This
is exactly what I want to do. I am aware that this is likely to be the
source of problems with delay or jitter, but in this case bandwidth is
scarce so I'll have to sacrifice something to minimize the overhead.

I hope this was more clear :)

Best regards,
Alf Thomas Nilsen





More information about the asterisk-dev mailing list