Module: kamailio
Branch: master
Commit: ac31eb11cc4b194b2d7e9dddff63fd074f456005
URL:
https://github.com/kamailio/kamailio/commit/ac31eb11cc4b194b2d7e9dddff63fd0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-11-19T15:00:18+01:00
etc/kamailio.cfg: use flag 'r' for rtpproxy if ip in sdp is not private
- skip learning mode, advertised media ip is routable
---
Modified: etc/kamailio.cfg
---
Diff:
https://github.com/kamailio/kamailio/commit/ac31eb11cc4b194b2d7e9dddff63fd0…
Patch:
https://github.com/kamailio/kamailio/commit/ac31eb11cc4b194b2d7e9dddff63fd0…
---
diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg
index 7f5f3db..e48d729 100644
--- a/etc/kamailio.cfg
+++ b/etc/kamailio.cfg
@@ -784,7 +784,11 @@ route[NATMANAGE] {
if (!(isflagset(FLT_NATS) || isbflagset(FLB_NATB)))
return;
- rtpproxy_manage("co");
+ if(nat_uac_test("8")) {
+ rtpproxy_manage("co");
+ } else {
+ rtpproxy_manage("cor");
+ }
if (is_request()) {
if (!has_totag()) {