[sr-dev] git:master:88f1a1a6: tmx: use trimmed call-id value for hashing
Daniel-Constantin Mierla
miconda at gmail.com
Wed Feb 16 12:48:35 CET 2022
Module: kamailio
Branch: master
Commit: 88f1a1a671c4486e5000415b3d52eb42e6ad4cbb
URL: https://github.com/kamailio/kamailio/commit/88f1a1a671c4486e5000415b3d52eb42e6ad4cbb
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-02-16T12:45:33+01:00
tmx: use trimmed call-id value for hashing
---
Modified: src/modules/tmx/tmx_pretran.c
---
Diff: https://github.com/kamailio/kamailio/commit/88f1a1a671c4486e5000415b3d52eb42e6ad4cbb.diff
Patch: https://github.com/kamailio/kamailio/commit/88f1a1a671c4486e5000415b3d52eb42e6ad4cbb.patch
---
diff --git a/src/modules/tmx/tmx_pretran.c b/src/modules/tmx/tmx_pretran.c
index 256c82bf16..7bb2315fd3 100644
--- a/src/modules/tmx/tmx_pretran.c
+++ b/src/modules/tmx/tmx_pretran.c
@@ -243,7 +243,7 @@ int tmx_check_pretran(sip_msg_t *msg)
sftag = get_from(msg)->tag_value;
trim(&sftag);
- chid = get_hash1_raw(msg->callid->body.s, msg->callid->body.len);
+ chid = get_hash1_raw(scallid.s, scallid.len);
slotid = chid & (_tmx_ptran_size-1);
if(unlikely(_tmx_proc_ptran == NULL)) {
More information about the sr-dev
mailing list