Module: kamailio
Branch: 5.4
Commit: a24dc3a4e64671d3428c629b2d12a0d6ca1a93ca
URL:
https://github.com/kamailio/kamailio/commit/a24dc3a4e64671d3428c629b2d12a0d…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-10-03T17:00:59Z
dialog: fix error in dlg.list_match for callid parameter (reported from Ilie Soltanici)
(cherry picked from commit 360e012d9d93c80b62b6e75bfac6e3340407ee98)
---
Modified: src/modules/dialog/dialog.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a24dc3a4e64671d3428c629b2d12a0d…
Patch:
https://github.com/kamailio/kamailio/commit/a24dc3a4e64671d3428c629b2d12a0d…
---
diff --git a/src/modules/dialog/dialog.c b/src/modules/dialog/dialog.c
index 61e4b0cbcf..7e5b00425b 100644
--- a/src/modules/dialog/dialog.c
+++ b/src/modules/dialog/dialog.c
@@ -2942,7 +2942,7 @@ static void rpc_dlg_list_match_ex(rpc_t *rpc, void *c, int
with_context)
vkey = 1;
} else if(mkey.len==4 && strncmp(mkey.s, "turi", mkey.len)==0) {
vkey = 2;
- } else if(mkey.len==5 && strncmp(mkey.s, "callid", mkey.len)==0) {
+ } else if(mkey.len==6 && strncmp(mkey.s, "callid", mkey.len)==0) {
vkey = 3;
} else {
LM_ERR("invalid key %.*s\n", mkey.len, mkey.s);