<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">I'll update the version and see if that
      helps before reporting.<br>
    </div>
    <blockquote
      cite="mid:499C5CB9-6A55-43F2-B1F2-0392F0252D75@jerris.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      a crash is always a bug,&nbsp;<a moz-do-not-send="true"
        href="https://wiki.freeswitch.org/wiki/Reporting_Bugs">https://wiki.freeswitch.org/wiki/Reporting_Bugs</a>
      <div><br>
      </div>
      <div><br>
        <div style="">
          <div>On May 14, 2014, at 4:17 PM, Alex Lake &lt;<a
              moz-do-not-send="true" href="mailto:alex@digitalmail.com">alex@digitalmail.com</a>&gt;
            wrote:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">Got a script that uses Lua to hit a
            webserver while in the middle of a <br>
            call to get instructions on what to do next.<br>
            <br>
            It usually works very well.<br>
            <br>
            However, it seems that sometimes (possibly a slow response?)
            this can <br>
            cause freeswitch to fall over.<br>
            Any suggestions on ways to deal with this?<br>
            <br>
            This is FreeSWITCH Version
            1.2.15+git~20131210T171529Z~fa43a37a82~64bit <br>
            (git fa43a37 2013-12-10 17:15:29Z 64bit)<br>
            <br>
            Thinks: From that version, I'm wondering if an update to
            latest stable <br>
            release might be in order!<br>
            <br>
            But I'll post this anyway...<br>
            <br>
            I'm using luacurl with the following bit of Lua:<br>
            <br>
            &nbsp;&nbsp;&nbsp;&nbsp;c = curl.new()<br>
            &nbsp;&nbsp;&nbsp;&nbsp;text = {}<br>
            &nbsp;&nbsp;&nbsp;&nbsp;c:setopt(curl.OPT_URL,cc_url)<br>
            &nbsp;&nbsp;&nbsp;&nbsp;c:setopt(curl.OPT_USERAGENT, "luacurl-agent/1.0")<br>
            &nbsp;&nbsp;&nbsp;&nbsp;c:setopt(curl.OPT_HTTPGET, true)<br>
            &nbsp;&nbsp;&nbsp;&nbsp;c:setopt(curl.OPT_CONNECTTIMEOUT, 1)<br>
            &nbsp;&nbsp;&nbsp;&nbsp;c:setopt(curl.OPT_TIMEOUT, 1)<br>
            &nbsp;&nbsp;&nbsp;&nbsp;c:setopt(curl.OPT_ENCODING, "utf8")<br>
            &nbsp;&nbsp;&nbsp;&nbsp;c:setopt(curl.OPT_WRITEFUNCTION, WriteMemoryCallback)<br>
            &nbsp;&nbsp;&nbsp;&nbsp;c:perform()<br>
            &nbsp;&nbsp;&nbsp;&nbsp;c:close()<br>
            &nbsp;&nbsp;&nbsp;&nbsp;Rsp = table.concat(text,'')<br>
            <br>
            <br>
            with....<br>
            <br>
            function WriteMemoryCallback(userparam,s)<br>
            &nbsp;&nbsp;&nbsp;&nbsp;if s then<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text[#text+1] = s<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return string.len(s)<br>
            &nbsp;&nbsp;&nbsp;&nbsp;else<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 0<br>
            &nbsp;&nbsp;&nbsp;&nbsp;end<br>
            end<br>
            <br>
            So any suggestions on further diagnostics that I should post
            (is there a <br>
            stacktrace or anything similar available?)<br>
            <br>
            Or just observations on whether getting Lua to do such
            tricks is <br>
            inadvisable and there is a better way!<br>
            <br>
_________________________________________________________________________<br>
            Professional FreeSWITCH Consulting Services:<br>
            <a moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
            <a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br>
            <br>
            FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
            <a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
            <a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><br>
            <a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a><br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <p class="" avgcert""="" color="#000000" align="left">No virus
        found in this message.<br>
        Checked by AVG - <a moz-do-not-send="true"
          href="http://www.avg.com">www.avg.com</a><br>
        Version: 2014.0.4570 / Virus Database: 3950/7494 - Release Date:
        05/14/14</p>
    </blockquote>
    <br>
  </body>
</html>