[SR-Users] siputils: how does sip_p_charging_vector generate the header

Henning Westerholt hw at skalatan.de
Thu Dec 5 09:33:44 CET 2019


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<https://gilawa.com/>

From: George Diamantopoulos <georgediam at gmail.com>
Sent: Tuesday, December 3, 2019 8:39 PM
To: Henning Westerholt <hw at skalatan.de>
Cc: Kamailio (SER) - Users Mailing List <sr-users at 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 at skalatan.de<mailto:hw at 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<https://gilawa.com/>

From: sr-users <sr-users-bounces at lists.kamailio.org<mailto:sr-users-bounces at lists.kamailio.org>> On Behalf Of George Diamantopoulos
Sent: Thursday, November 28, 2019 10:09 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org<mailto:sr-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20191205/187f4511/attachment.html>


More information about the sr-users mailing list