[SR-Users] Accessing Transformations in KEMI

Ben Kaufman bkaufman at nexvortex.com
Wed Jul 28 17:41:29 CEST 2021


Thank you.  What's the process for submitting changes to the KEMI documentation system?  If the search box had returned results for "transformation" it would have been helpful.  I think I also saw a small type-o somewhere in their recently.

Ben Kaufman

From: Daniel-Constantin Mierla <miconda at gmail.com>
Sent: Wednesday, July 28, 2021 10:16 AM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>; Ben Kaufman <bkaufman at nexvortex.com>
Subject: Re: [SR-Users] Accessing Transformations in KEMI


Hello,

transformations are bound to variables, you have to use KSR.pv.get("$(hdr(P-Asserted-Identity){tobody.user})") or the other variants to get the value of variables from KSR.pv group of functions:

  * http://kamailio.org/docs/tutorials/devel/kamailio-kemi-framework/core/#ksrpvget

Cheers,
Daniel
On 28.07.21 16:47, Ben Kaufman wrote:
Sorry to bother on this, but is it possible to access Kamailio transformations in KEMI, and if so, how?

In Kamailio's native scripting language I could do:

    $var(pai_user) = $(hdr(P-Asserted-Identity){tobody.user});


In KEMI, I can easily get the full header like this:

    KSR.hdr.get("P-Asserted-Identity")


But I don't see how to access the transformations.  Am I missing it?

Ben Kaufman




__________________________________________________________

Kamailio - Users Mailing List - Non Commercial Discussions

  * sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>

Important: keep the mailing list in the recipients, do not reply only to the sender!

Edit mailing list options or unsubscribe:

  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

--

Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>

www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210728/5a3c54ac/attachment.htm>


More information about the sr-users mailing list