Module: kamailio
Branch: 5.4
Commit: 740ecd3d54da2905142c3171292a00c3576a650f
URL:
https://github.com/kamailio/kamailio/commit/740ecd3d54da2905142c3171292a00c…
Author: Charles Chance <charles.chance(a)sipcentric.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2021-03-30T08:05:40Z
core: use third array element when generating totag suffix
(cherry picked from commit 895208ebb0f999365ded50a9ecfc0fb2ed2b1e01)
---
Modified: src/core/tags.h
---
Diff:
https://github.com/kamailio/kamailio/commit/740ecd3d54da2905142c3171292a00c…
Patch:
https://github.com/kamailio/kamailio/commit/740ecd3d54da2905142c3171292a00c…
---
diff --git a/src/core/tags.h b/src/core/tags.h
index fff879cfab..b134dd3b01 100644
--- a/src/core/tags.h
+++ b/src/core/tags.h
@@ -51,17 +51,18 @@ static inline void calc_crc_suffix( struct sip_msg *msg, char
*tag_suffix)
suffix_source[0]=msg->via1->host;
suffix_source[1]=msg->via1->port_str;
if (msg->via1->branch) {
- suffix_source[2]=msg->via1->branch->value;
+ suffix_source[ss_nr++]=msg->via1->branch->value;
} else {
suffix_source[2].s = NULL;
suffix_source[2].len = 0;
}
crcitt_string_array( tag_suffix, suffix_source, ss_nr );
+ ss_nr=2;
suffix_source[0]=msg->via1->port_str;
suffix_source[1]=msg->via1->host;
if (msg->callid) {
- suffix_source[2]=msg->callid->body;
+ suffix_source[ss_nr++]=msg->callid->body;
} else {
suffix_source[2].s = NULL;
suffix_source[2].len = 0;