<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(38, 114, 236);">
Below is the JSON response received in an async rest post request (mod rest_client). </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(38, 114, 236);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(38, 114, 236);">
<span> </span><span style="font-family: "Courier New", monospace; font-size: 9pt; color: rgb(0, 0, 0);">xlog("L_INFO","[$fU $tU $ci $rm] PUSH Server responded with $var(rcode):$json(response)");</span><span><br>
</span><span> </span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(38, 114, 236);">
<span style="font-size: 9pt; font-family: "Courier New", monospace;">{</span><span><br>
</span>
<div><span style="font-size: 9pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">  "error": null,</span><br>
</div>
<div><span style="font-size: 9pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">  "payload": {</span><br>
</div>
<div><span style="font-size: 9pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">    "results": [</span><br>
</div>
<div><span style="font-size: 9pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">      {</span><br>
</div>
<div><span style="font-size: 9pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">        "error": {</span><br>
</div>
<div><span style="font-size: 9pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">          "code": "messaging/registration-token-not-registered",</span><br>
</div>
<div><span style="font-size: 9pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">          "message": "The provided registration token is not registered. A previously valid registration token can be unregistered for a variety of reasons. See the
 error documentation for more details. Remove this registration token and stop using it to send messages."</span><br>
</div>
<div><span style="font-size: 9pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">        }</span><br>
</div>
<div><span style="font-size: 9pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">      }</span><br>
</div>
<div><span style="font-size: 9pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">    ],</span><br>
</div>
<div><span style="font-size: 9pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">    "canonicalRegistrationTokenCount": 0,</span><br>
</div>
<div><span style="font-size: 9pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">    "failureCount": 1,</span><br>
</div>
<div><span style="font-size: 9pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">    "successCount": 0,</span><br>
</div>
<div><span style="font-size: 9pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">    "multicastId": 4814925980047675000</span><br>
</div>
<div><span style="font-size: 9pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">  }</span><br>
</div>
<span style="font-size: 9pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">}</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(38, 114, 236);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(38, 114, 236);">
But when I try to print the following line <br>
<br>
<span style="font-family: "Courier New", monospace; background-color: rgb(255, 255, 255); display: inline !important; font-size: 9pt; color: rgb(0, 0, 0);">xlog("L_INFO","[$fU $tU $ci $rm] PUSH Server responded with $var(rcode) with Failure Count: $json(response/</span><span style="margin: 0px; font-family: "Courier New", monospace; background-color: rgb(255, 255, 255); display: inline !important; font-size: 9pt; color: rgb(0, 0, 0);">payload/f</span><span style="margin: 0px; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important"><span style="margin: 0px; background-color: rgb(255, 255, 255); display: inline !important; font-size: 9pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">ailureCount</span></span><span style="font-family: "Courier New", monospace; background-color: rgb(255, 255, 255); display: inline !important; font-size: 9pt; color: rgb(0, 0, 0);">)");</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(38, 114, 236);">
<span style="font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(38, 114, 236);">
<span style="font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">it gives me a NULL Value. What am I doing wrong?</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(38, 114, 236);">
<span style="font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(38, 114, 236);">
<span style="font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important"><span style="font-size: 8pt; font-family: "Courier New", monospace; color: rgb(87, 6, 6);">version: opensips 2.4.6 (x86_64/linux)</span><span><br>
</span>
<div><span style="font-size: 8pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT</span><br>
</div>
<div><span style="font-size: 8pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535</span><br>
</div>
<div><span style="font-size: 8pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">poll method support: poll, epoll, sigio_rt, select.</span><br>
</div>
<div><span style="font-size: 8pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">git revision: edef893c5</span><br>
</div>
<span style="font-size: 8pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">main.c compiled on 11:29:33 Jul 29 2019 with gcc 4.8.5</span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(38, 114, 236);">
<span style="font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important"><span><br>
</span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(38, 114, 236);">
<span style="font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important"><span><span style="font-size: 8pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">[root@sip-3 opc]# rpm -qa | grep json</span><span><br>
</span>
<div><span style="font-size: 8pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">json-c-devel-0.11-4.el7_0.x86_64</span><br>
</div>
<div><span style="font-size: 8pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">libfastjson-0.99.4-3.el7.x86_64</span><br>
</div>
<div><span style="font-size: 8pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">python-jsonpatch-1.2-4.el7.noarch</span><br>
</div>
<div><span style="font-size: 8pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">json-c-0.11-4.el7_0.x86_64</span><br>
</div>
<div><span style="font-size: 8pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">json-glib-devel-1.4.2-2.el7.x86_64</span><br>
</div>
<div><span style="font-size: 8pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">python-jsonpointer-1.9-2.el7.noarch</span><br>
</div>
<span style="font-size: 8pt; font-family: "Courier New", monospace; color: rgb(0, 0, 0);">json-glib-1.4.2-2.el7.x86_64</span><br>
</span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(38, 114, 236);">
<br>
</div>
<div id="Signature">
<p class="ecxMsoNormal">Regards</p>
<p class="ecxMsoNormal"><br>
</p>
<p class="ecxMsoNormal"><a name="_MailAutoSig" target="_blank"><b><span style="font-size:8.0pt; font-family:"Verdana","sans-serif"; font-variant:small-caps; color:navy">Hamid R. Hashmi</span></b></a></p>
</div>
</body>
</html>