[sr-dev] git:master: kamailio.cfg: few updates related to nat traversal
David | StyleFlare
david at styleflare.com
Wed Jun 5 23:32:47 CEST 2013
Thanks. This is great.
On 6/5/13 5:26 PM, Daniel-Constantin Mierla wrote:
> Module: sip-router
> Branch: master
> Commit: 0193489cca56f58b512f5379c078c98a366c17e2
> URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0193489cca56f58b512f5379c078c98a366c17e2
>
> Author: Daniel-Constantin Mierla <miconda at gmail.com>
> Committer: Daniel-Constantin Mierla <miconda at 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()) {
>
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
More information about the sr-dev
mailing list