<div dir="auto">3 to 6<div dir="auto"><br></div><div dir="auto">Except that you will also accept non 2xx on the BYEs.</div><div dir="auto"><br></div><div dir="auto"><span style="font-family:sans-serif">SIP accounting and hangup handling can be complicated sometimes.</span><br></div><div dir="auto"><br></div><div dir="auto">The accounting module for example will generate ACC events on transactions completion or missed.</div><div dir="auto"><br></div><div dir="auto">.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 30, 2019, 04:06 Duarte Rocha <<a href="mailto:duarterocha91@gmail.com">duarterocha91@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto">Greetings, </div><div dir="auto"><br></div><div dir="auto">How sould a call duration be calculated?</div><div dir="auto"><br></div><div dir="auto">Let's say the call creation on Kamailio as a proxy has those steps : </div><div dir="auto"><br></div><div dir="auto">1 - Invite is received</div><div dir="auto">2 - Provisional responses</div><div dir="auto">3 - 200 OK is received</div><div dir="auto">4 - ACK to 200 OK is received</div><div dir="auto">5 - BYE is received </div><div dir="auto">6 - 200 OK to BYE is received</div><div dir="auto"><br></div><div dir="auto">Should the duration begin to count on step 3 (200-Ok Received) or 4 (ACK received) ?</div><div dir="auto">Should it end on the step 5 or 6?</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">ACC module tells me that start time for CDR can either be on dialog creation or confirmation - <a href="https://www.kamailio.org/docs/modules/5.2.x/modules/acc.html#acc.p.cdr_start_on_confirmed" target="_blank" rel="noreferrer">https://www.kamailio.org/docs/modules/5.2.x/modules/acc.html#acc.p.cdr_start_on_confirmed</a></div><div dir="auto"><span style="white-space:pre-wrap">    </span>- What is the dialog creation ? Is it when the INVITE is received ? </div><div dir="auto"><span style="white-space:pre-wrap">       </span>- According to DIALOG module, a confirmed dialog can be "Waiting for ACK" or "Active Call". Which one is used by acc module?  </div><div dir="auto"><span style="white-space:pre-wrap">        </span></div><div dir="auto">Best Regards,</div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>