<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><tt>Hi Ping,</tt></p>
    <p><tt>I have yet to hear about such behavior.  Since 2.4.1, there
        have been several fixes in rest_client, including<br>
        one related to memory management, which may be related to your
        experience.  I suggest you install the 2.4 nightly<br>
        package [1] and see if the issue persists.  We can put more
        effort in reproducing it if doesn't go away by upgrading.<br>
      </tt></p>
    <p><tt>Regards,<br>
      </tt></p>
    <p><tt>[1]: </tt><tt><a
          href="http://apt.opensips.org/packages.php?v=2.4">http://apt.opensips.org/packages.php?v=2.4</a></tt></p>
    <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 27.08.2019 10:46, Ping Han wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAOooq9C1O97=CrVm=96221ywSwCGtveztVqZ23b=NWQXEVOucQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi,<br>
        <br>
        I am using rest_get function in the rest_client module to do
        https request in the Opensips config. My opensips version is
        2.4.1.<br>
        <br>
        I found that intermittently Opensips fails to run the rest_get
        function. I did a packet trace and saw that the request was not
        made to the remote server. 
        <div><br>
        </div>
        <div>Interestingly, I found:</div>
        <div>1. this happens intermittently. Even within the same
          second, I can see successful requests and also failed
          requests; </div>
        <div>2. this seems to only happens for https requests, and I
          have never seen this happens in http requests;</div>
        <div>3. I can fix this by restarting the opensips instance.
          However, after a few days, it starts happening again. <br>
          <div><br>
          </div>
          <div>In the Opensip config, I have the following: <br>
            ---------------------------------<br>
            $var(url) = "<a
              href="https://example1234-dummy.com//api/v1/upload/callid/"
              moz-do-not-send="true">https://example1234-dummy.com//api/v1/upload/callid/</a>"
            + $ci;<br>
            <br>
            $var(rc) = rest_get("$var(url)", "$var(bye_info)",
            "$var(ct)", "$var(rcode)");
            <div>---------------------------------  <br>
            </div>
          </div>
        </div>
        <div><br>
        </div>
        <div>Has anyone also seen this?</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Ping</div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>