[Asterisk-Dev] Re: rtpchecksums=no enables rtp checksums?

Sergio mlists at c-net.it
Thu Mar 31 06:23:30 MST 2005


 > To enable udp checksums in rtp packages I have to use "rtpchecksums=no"

you are right wrong use of the function ast_true
                if ((s = ast_variable_retrieve(cfg, "general", 
"rtpchecksums"))) {
#ifdef SO_NO_CHECK
                        if (ast_true(s))
                                checksums = 1;
                        else
                                checksums = 0;

and then when checksums=1 sesockopt set the NO_CHECK

#ifdef SO_NO_CHECK
                if (checksums) {
                        setsockopt(s, SOL_SOCKET, SO_NO_CHECK, 
&checksums, sizeof(checksums));
                }
#endif




More information about the asterisk-dev mailing list