<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <tt>Hi Federico,<br>
      <br>
      OK, prefect :)<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <br>
    On 12/11/2012 03:32 PM, Federico Cabiddu wrote:
    <blockquote
cite="mid:CAFOaF_j9FRaEgsat3Cje6opc-t7r4dG2CT6956onHuhgA3Laow@mail.gmail.com"
      type="cite">Thanks for your answer Bogdan. I tried your suggestion
      and, of course, it works. I should have thought this before.
      <div><br>
      </div>
      <div>Best regards,</div>
      <div><br>
      </div>
      <div>Federico Cabiddu</div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Tue, Dec 11, 2012 at 1:08 PM,
          Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:bogdan@opensips.org"
              target="_blank">bogdan@opensips.org</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            <div bgcolor="#ffffff" text="#000000"> <tt>Hi Federico,<br>
                <br>
                you can achieve the same by using the standard dialog
                timeout - when the dialog is created, you set a dialog
                timeout to reflect the timeout for ACK . When the ACK is
                received, you can set a new dialog timeout to reflect
                the dialog lifetime (as established).<br>
                <br>
                All these you can do from script, using the
                dialog_timeout avp.<br>
                <br>
                Regards,<br>
              </tt>
              <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
              <div>
                <div class="h5"> <br>
                  On 12/10/2012 01:05 PM, Federico Cabiddu wrote: </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">Hi all,
                    <div>recently I had the need to be able to terminate
                      a call if the ACK to the 200 OK of an INVITE was
                      not received after a short time. Since I was using
                      the dialog module the natural place where to
                      implement such kind of timer seemed to be the
                      dialog module. So I added to the module two new
                      parameters:</div>
                    <div><br>
                    </div>
                    <div>- default_ack_timeout (integer): default to 0 </div>
                    <div>- ack_timeout_avp (string)</div>
                    <div><br>
                    </div>
                    <div>The behavior is the following:</div>
                    <div><br>
                    </div>
                    <div>- upon the reception of the 200 OK, if
                      default_ack_timeout is &gt; 0 or if the
                      ack_timeout_avp is set, the timer is armed </div>
                    <div>- if the ACK message arrives before the timeout
                      is reached, the dialog lifetime is restored to the
                      value set by default_timeout or timeout_avp</div>
                    <div>- if the ACK message doesn't arrive before the
                      timeout is reached, the dialog is deleted (closed
                      with BYE if the B flag was used in the dialog
                      creation) </div>
                    <div><br>
                    </div>
                    <div>I admit that this goes against rfc 3261, but
                      for our current case (in which we cannot wait for
                      the retransmission timeout of the callee) it
                      works. If you think that it's a feature it's worth
                      having I can provide the patch I'm currently
                      using.</div>
                    <div><br>
                    </div>
                    <div>Best regards,</div>
                    <div><br>
                    </div>
                    <div>Federico Cabiddu</div>
                  </div>
                </div>
                <pre><fieldset></fieldset>
_______________________________________________
Devel mailing list
<a moz-do-not-send="true" href="mailto:Devel@lists.opensips.org" target="_blank">Devel@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
              </blockquote>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
  </body>
</html>