Module: sip-router
Branch: 3.1
Commit: 13703fac521feb3662cbce921a8ba0f299d001e2
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=13703fa…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri May 20 23:08:24 2011 +0300
core: fixed via branch value in ack to 200 ok
- By default, sr was using non-rfc3261 compliant via branch value when
it generated ack to 200 ok.
(cherry picked from commit ebb3b085c15b398192cd8e242d46914252278448)
---
forward.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/forward.c b/forward.c
index aa71780..36092d8 100644
--- a/forward.c
+++ b/forward.c
@@ -545,8 +545,8 @@ int forward_request(struct sip_msg* msg, str* dst, unsigned short
port,
value in there; better for performance
*/
if (syn_branch ) {
- *msg->add_to_branch_s='0';
- msg->add_to_branch_len=1;
+ memcpy(msg->add_to_branch_s, "z9hG4bKcydzigwkX", 16);
+ msg->add_to_branch_len=16;
} else {
if (!char_msg_val( msg, md5 )) { /* parses transaction key */
LOG(L_ERR, "ERROR: forward_request: char_msg_val failed\n");