[SR-Users] Calculate call duration

Julien Chavanton jchavanton at gmail.com
Tue Dec 31 12:15:47 CET 2019


3 to 6

Except that you will also accept non 2xx on the BYEs.

SIP accounting and hangup handling can be complicated sometimes.

The accounting module for example will generate ACC events on transactions
completion or missed.

.

On Mon, Dec 30, 2019, 04:06 Duarte Rocha <duarterocha91 at gmail.com> wrote:

> Greetings,
>
> How sould a call duration be calculated?
>
> Let's say the call creation on Kamailio as a proxy has those steps :
>
> 1 - Invite is received
> 2 - Provisional responses
> 3 - 200 OK is received
> 4 - ACK to 200 OK is received
> 5 - BYE is received
> 6 - 200 OK to BYE is received
>
> Should the duration begin to count on step 3 (200-Ok Received) or 4 (ACK
> received) ?
> Should it end on the step 5 or 6?
>
>
> ACC module tells me that start time for CDR can either be on dialog
> creation or confirmation -
> https://www.kamailio.org/docs/modules/5.2.x/modules/acc.html#acc.p.cdr_start_on_confirmed
> - What is the dialog creation ? Is it when the INVITE is received ?
> - According to DIALOG module, a confirmed dialog can be "Waiting for ACK"
> or "Active Call". Which one is used by acc module?
> Best Regards,
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20191231/3e2e9140/attachment.html>


More information about the sr-users mailing list