<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>print the jsonrpcs variables to see the code and result:</p>
    <p>  -
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/wiki/cookbooks/5.1.x/pseudovariables#jsonrpcs_variables">https://www.kamailio.org/wiki/cookbooks/5.1.x/pseudovariables#jsonrpcs_variables</a></p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 23.02.18 15:46, José Seabra wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEVZRWvQO-feUH3L8fDbw1sTQ9bY0s+PwZcULagCLMSYUm6-aw@mail.gmail.com">
      <div dir="ltr">Hello there,<br>
        I'm using xHTTP and json_rpc module to receive http instructions
        to reload htable's from database to memory.<br>
        <br>
        The way i'm calling the json_rpc in kamailio script is the
        following:<br>
        <br>
                        $var(json_rpc)='{"jsonrpc": "2.0", "method":
        "htable.reload", "id":"htable"}';<br>
                        jsonrpc_exec($var(json_rpc));<br>
        <br>
        The execution of this command doesn't give any errors, but the
        changes made on htable database  weren't transmitted to the
        memory.<br>
        <br>
        I have attached the kamailio log where you can see that there
        isn't any erros on json_rpc execution  during reload
        instructions, the strange thing here is that the htable module
        only says:<br>
        <br>
        2018-02-23 14:33:44.968  DEBUG: htable [ht_db.c:96]:
        ht_db_open_con(): database connection opened successfully<br>
        <br>
        doesn't report if the reload was success or not.<br>
        <br>
        Those logs attached were printed with kamailio debug set to
        level 4.<br>
        <br>
        The kamailio version is 4.4.2.<br>
        <br>
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>Thank you<br>
                    <br>
                  </div>
                  <div>-- <br>
                    <div class="gmail_signature">Best Regards<br>
                      <div>José Seabra</div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="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>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 5-7, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>