[SR-Users] json.parse transformation documentation

YAS0 CANER caner_yaso at hotmail.com
Wed Jan 9 10:12:15 CET 2019


Hello,

i added it to devel cookbook.

Cheers.

Yasin CANER
________________________________
From: Daniel-Constantin Mierla <miconda at gmail.com>
Sent: Wednesday, January 9, 2019 11:48 AM
To: Kamailio (SER) - Users Mailing List; YAS0 CANER
Subject: Re: [SR-Users] json.parse transformation documentation


Hello,


thanks for spotting it! You can make yourself an account on the wiki and add there. If not convenient for you, open a bug report to not forget about and someone else will pick it up from there.


Cheers,
Daniel


On 09.01.19 09:08, YAS0 CANER wrote:
Hello,

i saw a transformation on PUA_JSON module about json.parse transformation. i think it is missing on cookbook transformation.

Kind regards

...

        event_route[xhttp:request] {

                $var(call-id) = $(rb{json.parse,Call-ID});

                if ($(rb{json.parse,Event-Package}) == "dialog") {

                        xlog("L_INFO", "$var(call-id)|log|received $(rb{json.parse,Event

        -Package}) update for $(rb{json.parse,From})");

                        pua_json_publish($rb);

                }

        }

        ...


https://www.kamailio.org/wiki/cookbooks/devel/transformations
cookbooks:devel:transformations [Kamailio SIP Server Wiki]<https://www.kamailio.org/wiki/cookbooks/devel/transformations>
Main author: Daniel-Constantin Mierla <miconda (at) gmail.com> Transformation is basically a function that is applied to a pseudo-variable (PV) to get a property of it. The value of PV is not affected at all. Transformations are implemented by various modules, most of them being in pv module.. The transformations are intended to facilitate access to different attributes of PV (like strlen of ...
www.kamailio.org<http://www.kamailio.org>





_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
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>
Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com<http://www.kamailioworld.com>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com<http://www.asipto.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190109/82501f80/attachment.html>


More information about the sr-users mailing list