Przeglądaj źródła

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

- fixes also missing ifdef check for WITH_RTPENGINE
Daniel-Constantin Mierla 5 lat temu
rodzic
commit
7c6ef434bd
1 zmienionych plików z 6 dodań i 5 usunięć
  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 (!(isflagset(FLT_NATS) || isbflagset(FLB_NATB))) return;
 
 
-	if(nat_uac_test("8")) {
 #!ifdef WITH_RTPENGINE
 #!ifdef WITH_RTPENGINE
+	if(nat_uac_test("8")) {
 		rtpengine_manage("replace-origin replace-session-connection");
 		rtpengine_manage("replace-origin replace-session-connection");
-#!else
-		rtpproxy_manage("co");
-#!endif
 	} else {
 	} else {
 		rtpengine_manage("trust-address replace-origin replace-session-connection");
 		rtpengine_manage("trust-address replace-origin replace-session-connection");
+	}
 #!else
 #!else
+	if(nat_uac_test("8")) {
+		rtpproxy_manage("co");
+	} else {
 		rtpproxy_manage("cor");
 		rtpproxy_manage("cor");
-#!endif
 	}
 	}
+#!endif
 
 
 	if (is_request()) {
 	if (is_request()) {
 		if (!has_totag()) {
 		if (!has_totag()) {