Module: kamailio
Branch: master
Commit: d6124b3d894b130e3ebeabb247230966a77c9ceb
URL:
https://github.com/kamailio/kamailio/commit/d6124b3d894b130e3ebeabb24723096…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-05-26T16:54:54+02:00
pv: signed int string representation for avps
---
Modified: modules/pv/pv_core.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d6124b3d894b130e3ebeabb24723096…
Patch:
https://github.com/kamailio/kamailio/commit/d6124b3d894b130e3ebeabb24723096…
---
diff --git a/modules/pv/pv_core.c b/modules/pv/pv_core.c
index d2ffa09..5836e23 100644
--- a/modules/pv/pv_core.c
+++ b/modules/pv/pv_core.c
@@ -1519,7 +1519,7 @@ int pv_get_avp(struct sip_msg *msg, pv_param_t *param, pv_value_t
*res)
{
res->rs = avp_value.s;
} else {
- res->rs.s = int2str(avp_value.n, &res->rs.len);
+ res->rs.s = sint2str(avp_value.n, &res->rs.len);
res->ri = avp_value.n;
res->flags |= PV_VAL_INT|PV_TYPE_INT;
}
@@ -1545,7 +1545,7 @@ int pv_get_avp(struct sip_msg *msg, pv_param_t *param, pv_value_t
*res)
{
res->rs = avp_value.s;
} else {
- res->rs.s = int2str(avp_value.n, &res->rs.len);
+ res->rs.s = sint2str(avp_value.n, &res->rs.len);
}
if(p-p_ini+res->rs.len+1>p_size)
@@ -1580,7 +1580,7 @@ int pv_get_avp(struct sip_msg *msg, pv_param_t *param, pv_value_t
*res)
{
res->rs = avp_value.s;
} else {
- res->rs.s = int2str(avp_value.n, &res->rs.len);
+ res->rs.s = sint2str(avp_value.n, &res->rs.len);
res->ri = avp_value.n;
res->flags |= PV_VAL_INT|PV_TYPE_INT;
}
@@ -1598,7 +1598,7 @@ int pv_get_avp(struct sip_msg *msg, pv_param_t *param, pv_value_t
*res)
{
res->rs = avp_value.s;
} else {
- res->rs.s = int2str(avp_value.n, &res->rs.len);
+ res->rs.s = sint2str(avp_value.n, &res->rs.len);
res->ri = avp_value.n;
res->flags |= PV_VAL_INT|PV_TYPE_INT;
}