Module: kamailio
Branch: master
Commit: 6770afc5329c18371fb5149eaf5ef2a95f286eff
URL:
https://github.com/kamailio/kamailio/commit/6770afc5329c18371fb5149eaf5ef2a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-05-11T16:16:47+02:00
pv: use fixup get int value to evaluate the index parameter
---
Modified: src/modules/pv/pv.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6770afc5329c18371fb5149eaf5ef2a…
Patch:
https://github.com/kamailio/kamailio/commit/6770afc5329c18371fb5149eaf5ef2a…
---
diff --git a/src/modules/pv/pv.c b/src/modules/pv/pv.c
index 2113115a15..db832d7419 100644
--- a/src/modules/pv/pv.c
+++ b/src/modules/pv/pv.c
@@ -935,7 +935,7 @@ static int w_xavp_lshift(sip_msg_t *msg, char *pxname, char *pidx)
LM_ERR("failed to get the xavp name\n");
return -1;
}
- if(fixup_get_svalue(msg, (gparam_t*)pidx, &idx)<0) {
+ if(fixup_get_ivalue(msg, (gparam_t*)pidx, &idx)<0) {
LM_ERR("failed to get the xavp index\n");
return -1;
}