Module: kamailio
Branch: 4.2
Commit: 00a36ae07c587992d6486277ce2e9ae6c009685f
URL:
https://github.com/kamailio/kamailio/commit/00a36ae07c587992d6486277ce2e9ae…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: 2015-06-29T17:57:28+03:00
modules/rtpengine: unset "don't fragment" ip header flag
- manual cherry-pick from master
---
Modified: modules/rtpengine/rtpengine.c
---
Diff:
https://github.com/kamailio/kamailio/commit/00a36ae07c587992d6486277ce2e9ae…
Patch:
https://github.com/kamailio/kamailio/commit/00a36ae07c587992d6486277ce2e9ae…
---
diff --git a/modules/rtpengine/rtpengine.c b/modules/rtpengine/rtpengine.c
index b5960b2..71a75a3 100644
--- a/modules/rtpengine/rtpengine.c
+++ b/modules/rtpengine/rtpengine.c
@@ -1002,6 +1002,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;
@@ -1064,6 +1067,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 (connect( rtpp_socks[pnode->idx], res->ai_addr, res->ai_addrlen) == -1) {
LM_ERR("can't connect to a RTP proxy\n");
close( rtpp_socks[pnode->idx] );