<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>no sure why it was developed like this, maybe just a bare
      translation from the mi old format.</p>
    <p>The proposed format is better and properly following structured
      responses for rpc. If you want to develop it, go ahead and then
      make a pull request, it will be merged.<br>
    </p>
    Thanks,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 24/08/16 09:47, Kelvin Chua wrote:<br>
    </div>
    <blockquote
cite="mid:CAMF97-cq8GiGttaR_StVh52QmNLFsAqHGLhk5P0Vz6KMf8oUGw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Is there any reason why the Pike RPC is not returning an
            array and instead using integer suffixes? ip_addr0,
            ip_addr1, etc</div>
          <div><br>
          </div>
          <div>If it will not break anything I would like to change this
            behavior.</div>
          <div><br>
          </div>
          <div>here is a sample:</div>
          <div><br>
          </div>
          <div>{  </div>
          <div>   "max_hits":16,</div>
          <div>   "ip_addr0":"XX0.5X.X3.1XX",</div>
          <div>   "leaf_hits_prev0":51,</div>
          <div>   "leaf_hits_curr0":9,</div>
          <div>   "expires0":4,</div>
          <div>   "status0":"HOT",</div>
          <div>   "ip_addr1":"XX8.1X9.8.X7",</div>
          <div>   "leaf_hits_prev1":17,</div>
          <div>   "leaf_hits_curr1":0,</div>
          <div>   "expires1":2,</div>
          <div>   "status1":"HOT",</div>
          <div>   "number_of_rows":2</div>
          <div>}</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>here is what i propose:</div>
        <div><br>
        </div>
        <div>
          <div>{</div>
          <div>  "max_hits":16,<br>
          </div>
          <div>   "number_of_rows":2,</div>
          <div>   "list" :<br>
          </div>
          <div>   [</div>
          <div>      {  </div>
          <div>         "ip_addr":"XX0.5X.X3.1XX",</div>
          <div>         "leaf_hits_prev":51,</div>
          <div>         "leaf_hits_curr":9,</div>
          <div>         "expires":4,</div>
          <div>         "status":"HOT"</div>
          <div>      },</div>
          <div>      {</div>
          <div>         "ip_addr":"XX8.1X9.8.X7",</div>
          <div>         "leaf_hits_prev":17,</div>
          <div>         "leaf_hits_curr":0,</div>
          <div>         "expires":2,</div>
          <div>         "status":"HOT"</div>
          <div>      }</div>
          <div>   ]</div>
        </div>
        <div>}</div>
        <br clear="all">
        <div>
          <div class="gmail_signature" data-smartmail="gmail_signature">Kelvin
            Chua</div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
sr-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> - <a class="moz-txt-link-freetext" href="http://www.kamailio.org">http://www.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>