<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    no longer need for debug messages, I know the reason now. Suspending
    a 'terminated' transaction exposes the risk of either crash or
    memory leak. A transaction in this state has either a short life
    (few seconds) or lives forever, because the transaction in
    terminated state can be cleaned up by the wait timer, or if
    reference counter is incremented, is unlikely to be decremented
    because no new branch transmission will be done on a transaction
    that has a final response sent out. If you did the processing very
    shortly after the sending of response, then you were within the
    cleanup interval, but at any time can risk a crash, if there is some
    delay in processing the async task.<br>
    <br>
    Therefore, if the final response was sent out, the  best is to send
    needed data to another process via mqueue. The consumer processes of
    mqueue task can be created with rtimer module. See sipweet slides in
    the next presentation for a sample of mqueue+rtimer usage:<br>
    <br>
    -
<a class="moz-txt-link-freetext" href="http://www.kamailio.org/events/2014-KamailioWorld/day2/26-Daniel-Constantin.Mierla-Kamailio.cfg-Async.pdf">http://www.kamailio.org/events/2014-KamailioWorld/day2/26-Daniel-Constantin.Mierla-Kamailio.cfg-Async.pdf</a><br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 05/10/15 16:59, M S wrote:<br>
    </div>
    <blockquote
cite="mid:CAFZQphywG+WXrhPjGqPTUNp=TMGvT-xY-WiT8YCfkseYrhrGSw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Hi,<br>
            <br>
          </div>
          Yes, i send final response before calling the method. The data
          returned by SQL is processed by method to send new sip
          requests using uac modules. I will send you debug level 3 logs
          shortly.<br>
          <br>
        </div>
        Thank you.<br>
        <br>
        <br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Oct 5, 2015 at 3:32 PM,
          Daniel-Constantin Mierla <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:miconda@gmail.com"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></a>></span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
              <br>
              was there a final response sent to the caller?<br>
              <br>
              Can you run with debug=3 and send the log messages to me?<br>
              <br>
              Cheers,<br>
              Daniel
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 05/10/15 12:46, M S wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">
                      <div>
                        <div>
                          <div>Hi,<br>
                            <br>
                          </div>
                          I have upgraded to Kamailio v4.3.3 rev. e275bc
                          on my test server running debian wheezy 32 bit
                          and getting this error,<br>
                          <br>
                          --<br>
                          ERROR: async [async_sleep.c:248]:
                          async_send_task(): failed to suspend the
                          processing<br>
                          --<br>
                          <br>
                        </div>
                        Basically, I am running a sql query in script
                        which if returns any records then i suspend the
                        transaction with "async_task_route" to process
                        data returned by query later on. The problem
                        happens when this "async_task_route" method is
                        executed. This is old code which was working
                        perfectly fine with Kamailio v4.3.2 and it only
                        gives error after the upgrade to v4.3.3.<br>
                        <br>
                      </div>
                      <div>Please help.<br>
                        <br>
                      </div>
                      <div>Thank you.<br>
                        <br>
                        <br>
                      </div>
                      <div><br>
                      </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
sr-dev mailing list
<a moz-do-not-send="true" href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</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 cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - <a moz-do-not-send="true" href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a></pre>
                </font></span></div>
            <br>
            _______________________________________________<br>
            sr-dev mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev"
              rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<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>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a></pre>
  </body>
</html>