[SR-Users] json.parse transformation documentation

YAS0 CANER caner_yaso at hotmail.com
Wed Jan 9 09:08:38 CET 2019


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})");

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190109/bbcba018/attachment.html>

More information about the sr-users mailing list