Module: kamailio
Branch: master
Commit: 7c6ef434bdbd0747adfad31172efbc5e50477370
URL:
https://github.com/kamailio/kamailio/commit/7c6ef434bdbd0747adfad31172efbc5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-10-29T10:26:12+01:00
kamailio.cfg: rebuilt the section for calling rtpengine_manage()
- fixes also missing ifdef check for WITH_RTPENGINE
---
Modified: etc/kamailio.cfg
---
Diff:
https://github.com/kamailio/kamailio/commit/7c6ef434bdbd0747adfad31172efbc5…
Patch:
https://github.com/kamailio/kamailio/commit/7c6ef434bdbd0747adfad31172efbc5…
---
diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg
index 21470ce47c..f37c7ee34e 100644
--- a/etc/kamailio.cfg
+++ b/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()) {