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@gmail.com>
Sent: Wednesday, July 28, 2021 10:16 AM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>; Ben Kaufman <bkaufman@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@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
www.twitter.com/miconda -- www.linkedin.com/in/miconda