[sr-dev] git:master:ac31eb11: etc/kamailio.cfg: use flag 'r' for rtpproxy if ip in sdp is not private

Daniel-Constantin Mierla miconda at gmail.com
Thu Nov 19 15:00:42 CET 2015


Module: kamailio
Branch: master
Commit: ac31eb11cc4b194b2d7e9dddff63fd074f456005
URL: https://github.com/kamailio/kamailio/commit/ac31eb11cc4b194b2d7e9dddff63fd074f456005

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-11-19T15:00:18+01:00

etc/kamailio.cfg: use flag 'r' for rtpproxy if ip in sdp is not private

- skip learning mode, advertised media ip is routable

---

Modified: etc/kamailio.cfg

---

Diff:  https://github.com/kamailio/kamailio/commit/ac31eb11cc4b194b2d7e9dddff63fd074f456005.diff
Patch: https://github.com/kamailio/kamailio/commit/ac31eb11cc4b194b2d7e9dddff63fd074f456005.patch

---

diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg
index 7f5f3db..e48d729 100644
--- a/etc/kamailio.cfg
+++ b/etc/kamailio.cfg
@@ -784,7 +784,11 @@ route[NATMANAGE] {
 	if (!(isflagset(FLT_NATS) || isbflagset(FLB_NATB)))
 		return;
 
-	rtpproxy_manage("co");
+	if(nat_uac_test("8")) {
+		rtpproxy_manage("co");
+	} else {
+		rtpproxy_manage("cor");
+	}
 
 	if (is_request()) {
 		if (!has_totag()) {




More information about the sr-dev mailing list