<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Denis,<br>
    <br>
    I can tell it works for sure, as I'm using this kind of dirty trick
    to cope with some buggy clients.<br>
    <br>
    Best regards,<br>
    Bogdan<br>
    <br>
    On 05/10/2011 06:42 AM, Denis Putyato wrote:
    <blockquote cite="mid:008a01cc0ec4$5084c880$f18e5980$@ru"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Стандартный HTML Знак";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTML
        {mso-style-name:"Стандартный HTML Знак";
        mso-style-priority:99;
        mso-style-link:"Стандартный HTML";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Courier New";
        color:#1F497D;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;; color: rgb(31, 73, 125);" lang="EN-US">Hello!<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;; color: rgb(31, 73, 125);" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;; color: rgb(31, 73, 125);" lang="EN-US">Thank you
            Bogdan, I will try you decision<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;; color: rgb(31, 73, 125);" lang="EN-US"><o:p> </o:p></span></p>
        <div>
          <div style="border-right: medium none; border-width: 1pt
            medium medium; border-style: solid none none; border-color:
            rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;
            padding: 3pt 0cm 0cm;">
            <p class="MsoNormal"><b><span style="font-size: 10pt;
                  font-family:
                  &quot;Tahoma&quot;,&quot;sans-serif&quot;; color:
                  windowtext;">From:</span></b><span style="font-size:
                10pt; font-family:
                &quot;Tahoma&quot;,&quot;sans-serif&quot;; color:
                windowtext;"> Bogdan-Andrei Iancu
                [<a class="moz-txt-link-freetext" href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>] <br>
                <b>Sent:</b> Friday, May 06, 2011 9:25 PM<br>
                <b>To:</b> OpenSIPS users mailling list<br>
                <b>Cc:</b> Denis Putyato<br>
                <b>Subject:</b> Re: [OpenSIPS-Users] dialog and acc<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Hi Denis,<br>
          <br>
          From a proxy point of view, a 200OK means the dialog was
          establish. A proxy cannot interfere with the ACK part - the
          acknowledgment is done between end parties.<br>
          <br>
          If the ACK is missing (in an established dialog), the callee
          party (according to RFC) must send a BYE (when finishing the
          200 OK retransmission) to the caller.  This is something your
          callee doesn't do.<br>
          <br>
          A simple work around is to use the dialog timeout in opensips:<br>
              1) at INVITE time, when dialog is created, set a 5 seconds
          timeout (dialog will be terminated by opensips, with BYE, in 5
          secs after being established - do not forget to set the
          BYE_ON_TIMEOUT flag)<br>
              2) at ACK, before loose_route() set a new timeout to some
          long, long (3 hours?) value.<br>
          <br>
          So, if the ACK will mis, the 5 sec timeout will kick in and
          terminate the dialog; otherwise, opensips will prelong the
          dialog on ACK time.<br>
          <br>
          Regards,<br>
          Bogdan<br>
          <br>
          On 04/28/2011 03:06 PM, Denis Putyato wrote: <o:p></o:p></p>
        <p class="MsoNormal"><span lang="EN-US">Hello!</span><o:p></o:p></p>
        <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
        <p class="MsoNormal"><span lang="EN-US">I noticed that cdr_flag
            in acc modules marks dialog for accounting as answered even
            there was no ACK on 200 OK.</span><o:p></o:p></p>
        <p class="MsoNormal"><span lang="EN-US">As a result, I have acc
            record which has a big duration and status 200 OK.</span><o:p></o:p></p>
        <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
        <p class="MsoNormal"><span lang="EN-US">Thank you for any help.</span><o:p></o:p></p>
        <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
        <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
        <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
        <pre><o:p> </o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>_______________________________________________<o:p></o:p></pre>
        <pre>Users mailing list<o:p></o:p></pre>
        <pre><a moz-do-not-send="true" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><o:p></o:p></pre>
        <pre><a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Times New Roman&quot;,&quot;serif&quot;;"><br>
            <br>
            <br>
            <o:p></o:p></span></p>
        <pre>-- <o:p></o:p></pre>
        <pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
        <pre>OpenSIPS eBootcamp - 2nd of May 2011<o:p></o:p></pre>
        <pre>OpenSIPS solutions and "know-how"<o:p></o:p></pre>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 2nd of May 2011
OpenSIPS solutions and "know-how"</pre>
  </body>
</html>