[SR-Users] Accessing Transformations in KEMI

Daniel-Constantin Mierla miconda at gmail.com
Wed Jul 28 17:16:03 CEST 2021


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
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210728/1a0eb470/attachment.htm>


More information about the sr-users mailing list