Module: kamailio
Branch: master
Commit: 5de00fa47bd3e9f0a05324463325dcaf891174a5
URL:
https://github.com/kamailio/kamailio/commit/5de00fa47bd3e9f0a05324463325dca…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: 2015-06-29T17:29:35+03:00
modules/rtpengine: unset "don't fragment" ip header flag
---
Modified: modules/rtpengine/rtpengine.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5de00fa47bd3e9f0a05324463325dca…
Patch:
https://github.com/kamailio/kamailio/commit/5de00fa47bd3e9f0a05324463325dca…
---
diff --git a/modules/rtpengine/rtpengine.c b/modules/rtpengine/rtpengine.c
index 0c4e807..c67ac5a 100644
--- a/modules/rtpengine/rtpengine.c
+++ b/modules/rtpengine/rtpengine.c
@@ -1438,6 +1438,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;
@@ -1500,6 +1503,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]);