Module: kamailio
Branch: master
Commit: 0364383549f69241037a96a5e5e20179b2ac6efe
URL:
https://github.com/kamailio/kamailio/commit/0364383549f69241037a96a5e5e2017…
Author: Mikko Lehto <mslehto(a)iki.fi>
Committer: Mikko Lehto <mslehto(a)iki.fi>
Date: 2016-11-07T01:48:49+02:00
modules/siputils: populate $pcv(all) after succesful parse
---
Modified: modules/siputils/chargingvector.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0364383549f69241037a96a5e5e2017…
Patch:
https://github.com/kamailio/kamailio/commit/0364383549f69241037a96a5e5e2017…
---
diff --git a/modules/siputils/chargingvector.c b/modules/siputils/chargingvector.c
index 48bc125..ab9f275 100644
--- a/modules/siputils/chargingvector.c
+++ b/modules/siputils/chargingvector.c
@@ -237,10 +237,15 @@ static int sip_get_charging_vector(struct sip_msg *msg, struct
hdr_field ** hf_p
if ( sip_parse_charging_vector( pcv_body, hf->body.len ) == 0)
{
LM_ERR("P-Charging-Vector header found but failed to parse value [%s].\n",
pcv_body);
+ pcv_status = PCV_NONE;
+ pcv.s = NULL;
+ pcv.len = 0;
}
else
{
pcv_status = PCV_PARSED;
+ pcv.s = hf->body.s;
+ pcv.len = hf->body.len;
}
return 2;
}