Module: kamailio
Branch: master
Commit: 4b0b045a114591de6cc0655ae019029e337167d0
URL:
https://github.com/kamailio/kamailio/commit/4b0b045a114591de6cc0655ae019029…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-11-14T17:28:09+01:00
pv: print missing types for xavp values
---
Modified: src/modules/pv/pv_xavp.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4b0b045a114591de6cc0655ae019029…
Patch:
https://github.com/kamailio/kamailio/commit/4b0b045a114591de6cc0655ae019029…
---
diff --git a/src/modules/pv/pv_xavp.c b/src/modules/pv/pv_xavp.c
index a627f2ae1b..9dca116a42 100644
--- a/src/modules/pv/pv_xavp.c
+++ b/src/modules/pv/pv_xavp.c
@@ -58,6 +58,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);