Browse code

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

- skip learning mode, advertised media ip is routable

Daniel-Constantin Mierla authored on 19/11/2015 13:58:50
Showing 1 changed files
... ...
@@ -784,7 +784,11 @@ route[NATMANAGE] {
784 784
 	if (!(isflagset(FLT_NATS) || isbflagset(FLB_NATB)))
785 785
 		return;
786 786
 
787
-	rtpproxy_manage("co");
787
+	if(nat_uac_test("8")) {
788
+		rtpproxy_manage("co");
789
+	} else {
790
+		rtpproxy_manage("cor");
791
+	}
788 792
 
789 793
 	if (is_request()) {
790 794
 		if (!has_totag()) {