<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Welcome!<br>
      <br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 26.02.18 11:06, José Seabra wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEVZRWvMnSzygHx2pyQS0hZqn2vR_O_i3Rxqw4mx_wPQmSx55w@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>Hi Daniel,<br>
                      <br>
                    </div>
                    Thank you for your hint, it took me to the right
                    solution :)<br>
                    basically  the json doc was wrongly specified<br>
                  </div>
                  <br>
                </div>
                before:<br>
                <div style="margin-left:40px">'{"jsonrpc": "2.0",
                  "method": "htable.reload", "id":"htable"}'<br>
                </div>
              </div>
              now:<br>
              <div style="margin-left:40px">'{"jsonrpc": "2.0",
                "method": "htable.reload", "params" : {"htable":
                "htable"}, "id": 1}'<br>
              </div>
              <br>
              <br>
            </div>
            Thank you for you help.<br>
            <br>
          </div>
          Regards<br>
        </div>
        José<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2018-02-26 8:15 GMT+00:00
          Daniel-Constantin Mierla <span dir="ltr"><<a
              href="mailto:miconda@gmail.com" target="_blank"
              moz-do-not-send="true">miconda@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <p>Hello,</p>
              <p>print the jsonrpcs variables to see the code and
                result:</p>
              <p>  -
                <a class="m_-5631418452315479792moz-txt-link-freetext"
href="https://www.kamailio.org/wiki/cookbooks/5.1.x/pseudovariables#jsonrpcs_variables"
                  target="_blank" moz-do-not-send="true">https://www.kamailio.org/wiki/<wbr>cookbooks/5.1.x/<wbr>pseudovariables#jsonrpcs_<wbr>variables</a></p>
              <p>Cheers,<br>
                Daniel<br>
              </p>
              <div>
                <div class="h5"> <br>
                  <div class="m_-5631418452315479792moz-cite-prefix">On
                    23.02.18 15:46, José Seabra wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <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="m_-5631418452315479792gmail_signature">Best
                                    Regards<br>
                                    <div>José Seabra</div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br>
                    <fieldset
                      class="m_-5631418452315479792mimeAttachmentHeader"></fieldset>
                    <br>
                  </div>
                </div>
                <pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_-5631418452315479792moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="m_-5631418452315479792moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre>
                <span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
              <span class="HOEnZb"><font color="#888888"> <br>
                  <pre class="m_-5631418452315479792moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="m_-5631418452315479792moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="m_-5631418452315479792moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 5-7, 2018, Berlin - <a class="m_-5631418452315479792moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="m_-5631418452315479792moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank" moz-do-not-send="true">www.kamailioworld.com</a></pre>
                </font></span></div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        <div class="gmail_signature" data-smartmail="gmail_signature">Cumprimentos
          <div>José Seabra</div>
        </div>
      </div>
    </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>