Ver Fonte

kamailio.cfg: rebuilt the section for calling rtpengine_manage()

- fixes also missing ifdef check for WITH_RTPENGINE
Daniel-Constantin Mierla há 5 anos atrás
pai
commit
7c6ef434bd
1 ficheiros alterados com 6 adições e 5 exclusões
  1. 6 5
      etc/kamailio.cfg

+ 6 - 5
etc/kamailio.cfg

@@ -818,18 +818,19 @@ route[NATMANAGE] {
 	}
 	if (!(isflagset(FLT_NATS) || isbflagset(FLB_NATB))) return;
 
-	if(nat_uac_test("8")) {
 #!ifdef WITH_RTPENGINE
+	if(nat_uac_test("8")) {
 		rtpengine_manage("replace-origin replace-session-connection");
-#!else
-		rtpproxy_manage("co");
-#!endif
 	} else {
 		rtpengine_manage("trust-address replace-origin replace-session-connection");
+	}
 #!else
+	if(nat_uac_test("8")) {
+		rtpproxy_manage("co");
+	} else {
 		rtpproxy_manage("cor");
-#!endif
 	}
+#!endif
 
 	if (is_request()) {
 		if (!has_totag()) {