static int rtpstart = 0;
static int rtpend = 0;
+static int checksums = 1;
/* The value of each payload format mapping: */
struct rtpPayloadType {
if (s > -1) {
flags = fcntl(s, F_GETFL);
fcntl(s, F_SETFL, flags | O_NONBLOCK);
+ if (checksums) {
+ setsockopt(s, SOL_SOCKET, SO_NO_CHECK, &checksums, sizeof(checksums));
+ }
}
return s;
}
char *s;
rtpstart = 5000;
rtpend = 31000;
+ checksums = 1;
cfg = ast_load("rtp.conf");
if (cfg) {
if ((s = ast_variable_retrieve(cfg, "general", "rtpstart"))) {
if (rtpend > 65535)
rtpend = 65535;
}
+ if ((s = ast_variable_retrieve(cfg, "general", "rtpchecksums"))) {
+ if (ast_true(s))
+ checksums = 1;
+ else
+ checksums = 0;
+ }
ast_destroy(cfg);
}
if (rtpstart >= rtpend) {