Module: kamailio
Branch: 5.5
Commit: 11e7c173f2974c2174d1ccaca717eb63c5608a84
URL:
https://github.com/kamailio/kamailio/commit/11e7c173f2974c2174d1ccaca717eb6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-03-02T10:13:19+01:00
tmx: use trimmed call-id value for hashing
(cherry picked from commit 88f1a1a671c4486e5000415b3d52eb42e6ad4cbb)
---
Modified: src/modules/tmx/tmx_pretran.c
---
Diff:
https://github.com/kamailio/kamailio/commit/11e7c173f2974c2174d1ccaca717eb6…
Patch:
https://github.com/kamailio/kamailio/commit/11e7c173f2974c2174d1ccaca717eb6…
---
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)) {