Hello George,

 

the existing function might just what the developer needed that time. Feel free to submit a feature request or (even better) a pull request to our tracker about these extensions.

 

Cheers,

 

Henning

 

--

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

Kamailio services – https://gilawa.com

 

From: George Diamantopoulos <georgediam@gmail.com>
Sent: Tuesday, December 3, 2019 8:39 PM
To: Henning Westerholt <hw@skalatan.de>
Cc: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] siputils: how does sip_p_charging_vector generate the header

 

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