Module: sip-router Branch: master Commit: d4796d9a04562e3bc9d45acd68393eb418828e98 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d4796d9a...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Thu Jul 2 11:44:58 2009 +0200
nathelper (k): fix for flag 'l'
- fix SF: #2814137 - handle re-invite with force_rtp_proxy("l"); - patch by Marcus Hunger
---
modules_k/nathelper/nathelper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/nathelper/nathelper.c b/modules_k/nathelper/nathelper.c index b9c59a6..01ae520 100644 --- a/modules_k/nathelper/nathelper.c +++ b/modules_k/nathelper/nathelper.c @@ -2608,7 +2608,7 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int offer) if (to_tag.len == 0) return -1; create = 0; - if (swap != 0) { + if (swap != 0 || (msg->first_line.type == SIP_REPLY && offer != 0)) { tmp = from_tag; from_tag = to_tag; to_tag = tmp;