Module: kamailio
Branch: master
Commit: 51fc76737319f9b06ee4aa86e8c15c3fd5b62248
URL:
https://github.com/kamailio/kamailio/commit/51fc76737319f9b06ee4aa86e8c15c3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-10-25T09:53:26+02:00
pv: set str type for $hfl()
---
Modified: src/modules/pv/pv_core.c
---
Diff:
https://github.com/kamailio/kamailio/commit/51fc76737319f9b06ee4aa86e8c15c3…
Patch:
https://github.com/kamailio/kamailio/commit/51fc76737319f9b06ee4aa86e8c15c3…
---
diff --git a/src/modules/pv/pv_core.c b/src/modules/pv/pv_core.c
index 903389bf59..d279afccbf 100644
--- a/src/modules/pv/pv_core.c
+++ b/src/modules/pv/pv_core.c
@@ -2287,6 +2287,7 @@ int pv_get_hfl(sip_msg_t *msg, pv_param_t *param, pv_value_t *res)
return pv_get_null(msg, param, res);
}
+ res->flags = PV_VAL_STR;
if((tv.flags == 0) && (tv.ri==HDR_VIA_T)) {
if(msg->h_via1==NULL) {
LM_WARN("no Via header\n");