kamailio.cfg: rebuilt the section for calling rtpengine_manage()
authorDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 29 Oct 2019 09:26:12 +0000 (10:26 +0100)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 29 Oct 2019 09:26:12 +0000 (10:26 +0100)
- fixes also missing ifdef check for WITH_RTPENGINE

etc/kamailio.cfg

index 21470ce..f37c7ee 100644 (file)
@@ -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()) {