Module: kamailio
Branch: 5.2
Commit: f17353dfbf7fc42b2d070bdc45a3b72278202a08
URL:
https://github.com/kamailio/kamailio/commit/f17353dfbf7fc42b2d070bdc45a3b72…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-01-23T15:53:22+01:00
pv: print missing types for xavp values
(cherry picked from commit 4b0b045a114591de6cc0655ae019029e337167d0)
---
Modified: src/modules/pv/pv_xavp.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f17353dfbf7fc42b2d070bdc45a3b72…
Patch:
https://github.com/kamailio/kamailio/commit/f17353dfbf7fc42b2d070bdc45a3b72…
---
diff --git a/src/modules/pv/pv_xavp.c b/src/modules/pv/pv_xavp.c
index c36a6c6f1f..7bad3be885 100644
--- a/src/modules/pv/pv_xavp.c
+++ b/src/modules/pv/pv_xavp.c
@@ -60,6 +60,14 @@ int pv_xavp_get_value(struct sip_msg *msg, pv_param_t *param,
if(snprintf(_pv_xavp_buf, 128, "<<xavp:%p>>",
avp->val.v.xavp)<0)
return pv_get_null(msg, param, res);
break;
+ case SR_XTYPE_VPTR:
+ if(snprintf(_pv_xavp_buf, 128, "<<vptr:%p>>",
avp->val.v.vptr)<0)
+ return pv_get_null(msg, param, res);
+ break;
+ case SR_XTYPE_SPTR:
+ if(snprintf(_pv_xavp_buf, 128, "<<sptr:%p>>",
avp->val.v.vptr)<0)
+ return pv_get_null(msg, param, res);
+ break;
case SR_XTYPE_DATA:
if(snprintf(_pv_xavp_buf, 128, "<<data:%p>>",
avp->val.v.data)<0)
return pv_get_null(msg, param, res);