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