[sr-dev] git:master:2aefad22: pv: switch to long pvar field

Daniel-Constantin Mierla miconda at gmail.com
Wed Nov 16 16:49:51 CET 2022


Module: kamailio
Branch: master
Commit: 2aefad224788891f61b25e2ea683a9a6b35ac069
URL: https://github.com/kamailio/kamailio/commit/2aefad224788891f61b25e2ea683a9a6b35ac069

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-11-16T16:49:30+01:00

pv: switch to long pvar field

---

Modified: src/modules/pv/pv_trans.c

---

Diff:  https://github.com/kamailio/kamailio/commit/2aefad224788891f61b25e2ea683a9a6b35ac069.diff
Patch: https://github.com/kamailio/kamailio/commit/2aefad224788891f61b25e2ea683a9a6b35ac069.patch

---

diff --git a/src/modules/pv/pv_trans.c b/src/modules/pv/pv_trans.c
index a2b546d02a..2cedfc2416 100644
--- a/src/modules/pv/pv_trans.c
+++ b/src/modules/pv/pv_trans.c
@@ -216,7 +216,7 @@ int tr_eval_string(struct sip_msg *msg, tr_param_t *tp, int subtype,
 		case TR_S_INT:
 			if(!(val->flags&PV_VAL_INT))
 			{
-				if(str2sint(&val->rs, &val->ri)!=0)
+				if(str2slong(&val->rs, &val->ri)!=0)
 					return -1;
 			} else {
 				if(!(val->flags&PV_VAL_STR))




More information about the sr-dev mailing list