Hello again,

Following some tests, it only seems to generate two params:
P-Charging-Vector: icid-value=495653AC1E9A01FD150000DE00000000; icid-generated-at=172.30.154.1

I'm guessing one can manipulate the header afterwards, but not before running msg_apply_changes() (I'm assuming, I haven't actually tested this), which is kind of unfortunate. Also the function's usefulness remains limited if there's no way to provide a custom string for the icid-generated-at parameter's value...

BR,
George

On Fri, 29 Nov 2019 at 17:34, Henning Westerholt <hw@skalatan.de> wrote:

Hello,

 

haven’t tried it myself, but have you tried this function already:

https://kamailio.org/docs/modules/5.1.x/modules/siputils.html#siputils.f.sip_p_charging_vector

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of George Diamantopoulos
Sent: Thursday, November 28, 2019 10:09 PM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: [SR-Users] siputils: how does sip_p_charging_vector generate the header

 

Hello,

 

I've been looking at the sip_p_charging_vector() function of siputils. From the documentation it is not evident how the PCV header is generated. Are the exported $pcv pseudovariables writable, so that the function canl use those when generating the header? Thanks!

 

BR,

George