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

George Diamantopoulos georgediam at gmail.com
Tue Dec 3 20:39:18 CET 2019


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> 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 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>
> *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/20191203/1c33b317/attachment.html>


More information about the sr-users mailing list