Module: kamailio
Branch: 4.3
Commit: 5e9862c1b669a8d4d359ed73f47a008b1e8d7865
URL:
https://github.com/kamailio/kamailio/commit/5e9862c1b669a8d4d359ed73f47a008…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: 2015-06-29T17:38:02+03:00
modules/rtpengine: unset "don't fragment" ip header flag
(cherry picked from commit 5de00fa47bd3e9f0a05324463325dcaf891174a5)
---
Modified: modules/rtpengine/rtpengine.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5e9862c1b669a8d4d359ed73f47a008…
Patch:
https://github.com/kamailio/kamailio/commit/5e9862c1b669a8d4d359ed73f47a008…
---
diff --git a/modules/rtpengine/rtpengine.c b/modules/rtpengine/rtpengine.c
index 609ebc5..030763f 100644
--- a/modules/rtpengine/rtpengine.c
+++ b/modules/rtpengine/rtpengine.c
@@ -1059,6 +1059,9 @@ child_init(int rank)
struct addrinfo hints, *res;
struct rtpp_set *rtpp_list;
struct rtpp_node *pnode;
+#ifdef IP_MTU_DISCOVER
+ int ip_mtu_discover = IP_PMTUDISC_DONT;
+#endif
if(rtpp_set_list==NULL )
return 0;
@@ -1121,6 +1124,12 @@ child_init(int rank)
return -1;
}
+#ifdef IP_MTU_DISCOVER
+ setsockopt(rtpp_socks[pnode->idx], IPPROTO_IP,
+ IP_MTU_DISCOVER, &ip_mtu_discover,
+ sizeof(ip_mtu_discover));
+#endif
+
if (bind_force_send_ip(pnode->idx) == -1) {
LM_ERR("can't bind socket\n");
close(rtpp_socks[pnode->idx]);