Module: sip-router
Branch: master
Commit: 0193489cca56f58b512f5379c078c98a366c17e2
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0193489…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Jun 5 22:44:13 2013 +0200
kamailio.cfg: few updates related to nat traversal
- added "co" flags to rtpproxy_manage() to change all IPs in sdp, many
phone get confused if only media ip is changed
- add nat=yes parameter only for in branch route to avoid multiple
occurences
---
etc/kamailio.cfg | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg
index 0645c83..c59c0f3 100644
--- a/etc/kamailio.cfg
+++ b/etc/kamailio.cfg
@@ -774,11 +774,13 @@ route[NATMANAGE] {
if (!(isflagset(FLT_NATS) || isbflagset(FLB_NATB)))
return;
- rtpproxy_manage();
+ rtpproxy_manage("co");
if (is_request()) {
if (!has_totag()) {
- add_rr_param(";nat=yes");
+ if(t_is_branch_route()) {
+ add_rr_param(";nat=yes");
+ }
}
}
if (is_reply()) {