<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
i added it to devel cookbook.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Cheers.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Yasin CANER</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Daniel-Constantin Mierla <miconda@gmail.com><br>
<b>Sent:</b> Wednesday, January 9, 2019 11:48 AM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List; YAS0 CANER<br>
<b>Subject:</b> Re: [SR-Users] json.parse transformation documentation</font>
<div> </div>
</div>
<div style="background-color:#FFFFFF">
<p style="margin-top: 0px; margin-bottom: 0px;">Hello,</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">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.</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Cheers,<br>
Daniel</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<div class="x_moz-cite-prefix">On 09.01.19 09:08, YAS0 CANER wrote:<br>
</div>
<blockquote type="cite">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello, </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
i saw a transformation on PUA_JSON module about json.parse transformation. i think it is missing on cookbook transformation.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Kind regards</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<table style="">
<tbody style="box-sizing:border-box">
<tr style="box-sizing:border-box">
<td style="box-sizing:border-box; padding:0px 10px; line-height:20px; vertical-align:top; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; font-size:12px">
...</td>
</tr>
<tr style="box-sizing:border-box">
<td style=""><br>
</td>
<td style="box-sizing:border-box; padding:0px 10px; line-height:20px; vertical-align:top; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; font-size:12px">
event_route[xhttp:request] {</td>
</tr>
<tr style="box-sizing:border-box">
<td style=""><br>
</td>
<td style="box-sizing:border-box; padding:0px 10px; line-height:20px; vertical-align:top; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; font-size:12px">
        $var(call-id) = $(rb{<u><b>json.parse,Call-ID</b></u>});</td>
</tr>
<tr style="box-sizing:border-box">
<td style=""><br>
</td>
<td style="box-sizing:border-box; padding:0px 10px; line-height:20px; vertical-align:top; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; font-size:12px">
        if ($(rb{json.parse,Event-Package}) == "dialog") {</td>
</tr>
<tr style="box-sizing:border-box">
<td style=""><br>
</td>
<td style="box-sizing:border-box; padding:0px 10px; line-height:20px; vertical-align:top; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; font-size:12px">
                xlog("L_INFO", "$var(call-id)|log|received $(rb{json.parse,Event</td>
</tr>
<tr style="box-sizing:border-box">
<td style=""><br>
</td>
<td style="box-sizing:border-box; padding:0px 10px; line-height:20px; vertical-align:top; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; font-size:12px">
-Package}) update for $(rb{json.parse,From})");</td>
</tr>
<tr style="box-sizing:border-box">
<td style=""><br>
</td>
<td style="box-sizing:border-box; padding:0px 10px; line-height:20px; vertical-align:top; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; font-size:12px">
                pua_json_publish($rb);</td>
</tr>
<tr style="box-sizing:border-box">
<td style=""><br>
</td>
<td style="box-sizing:border-box; padding:0px 10px; line-height:20px; vertical-align:top; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; font-size:12px">
        }</td>
</tr>
<tr style="box-sizing:border-box">
<td style=""><br>
</td>
<td style="box-sizing:border-box; padding:0px 10px; line-height:20px; vertical-align:top; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; font-size:12px">
}</td>
</tr>
<tr style="box-sizing:border-box">
<td style=""><br>
</td>
<td style="box-sizing:border-box; padding:0px 10px; line-height:20px; vertical-align:top; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; font-size:12px">
...</td>
</tr>
</tbody>
</table>
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<a href="https://www.kamailio.org/wiki/cookbooks/devel/transformations" id="LPlnk645955">https://www.kamailio.org/wiki/cookbooks/devel/transformations</a><br>
</div>
<div id="LPBorder_GTaHR0cHM6Ly93d3cua2FtYWlsaW8ub3JnL3dpa2kvY29va2Jvb2tzL2RldmVsL3RyYW5zZm9ybWF0aW9ucw.." class="x_LPBorder565181" style="width: 100%; margin-top: 16px; margin-bottom: 16px; max-width: 800px; min-width: 424px; position: relative;">
<table id="LPContainer565181" role="presentation" style="padding:12px 36px 12px 12px; width:100%; border-width:1px; border-style:solid; border-color:rgb(200,200,200); border-radius:2px">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td style="width:100%">
<div id="LPTitle565181" style="font-size:21px; font-weight:300; margin-right:8px; font-family:wf_segoe-ui_light,"Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; margin-bottom:12px">
<a target="_blank" id="LPUrlAnchor565181" href="https://www.kamailio.org/wiki/cookbooks/devel/transformations" style="text-decoration:none">cookbooks:devel:transformations [Kamailio SIP Server Wiki]</a></div>
<div id="LPDescription565181" style="font-size:14px; max-height:100px; color:rgb(102,102,102); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; margin-bottom:12px; margin-right:8px; overflow:hidden">
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 ...</div>
<div id="LPMetadata565181" style="font-size:14px; font-weight:400; color:rgb(166,166,166); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif">
<a class="x_moz-txt-link-abbreviated" href="http://www.kamailio.org">www.kamailio.org</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<fieldset class="x_mimeAttachmentHeader"></fieldset>
<pre class="x_moz-quote-pre">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="x_moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="x_moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="x_moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="x_moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="x_moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="x_moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 6-8, 2019 -- <a class="x_moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- <a class="x_moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a></pre>
</div>
</body>
</html>