[sr-dev] git:master:6770afc5: pv: use fixup get int value to evaluate the index parameter

Daniel-Constantin Mierla miconda at gmail.com
Wed May 11 16:17:31 CEST 2022


Module: kamailio
Branch: master
Commit: 6770afc5329c18371fb5149eaf5ef2a95f286eff
URL: https://github.com/kamailio/kamailio/commit/6770afc5329c18371fb5149eaf5ef2a95f286eff

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/6770afc5329c18371fb5149eaf5ef2a95f286eff.diff
Patch: https://github.com/kamailio/kamailio/commit/6770afc5329c18371fb5149eaf5ef2a95f286eff.patch

---

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;
 	}




More information about the sr-dev mailing list