Browse code

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.

Juha Heinanen authored on 20/05/2011 20:08:24
Showing 1 changed files
... ...
@@ -543,8 +543,8 @@ int forward_request(struct sip_msg* msg, str* dst, unsigned short port,
543 543
 	   value in there; better for performance
544 544
 	*/
545 545
 	if (syn_branch ) {
546
-		*msg->add_to_branch_s='0';
547
-		msg->add_to_branch_len=1;
546
+	        memcpy(msg->add_to_branch_s, "z9hG4bKcydzigwkX", 16);
547
+		msg->add_to_branch_len=16;
548 548
 	} else {
549 549
 		if (!char_msg_val( msg, md5 )) 	{ /* parses transaction key */
550 550
 			LOG(L_ERR, "ERROR: forward_request: char_msg_val failed\n");