[SR-Users] First Invite

Julien Chavanton jchavanton at gmail.com
Tue Apr 10 11:52:35 CEST 2018


Hi Duarte, you can find an example in the default config.

Mainly t_check_trans() is taking care of retransmissions, t_precheck_trans
is handling more edge cases.


# handle retransmissions
if (!is_method("ACK")) {
        if(t_precheck_trans()) {
                t_check_trans();
                exit;
        }
        t_check_trans();
}

On Tue, Apr 10, 2018 at 2:40 AM, Duarte Rocha <duarterocha91 at gmail.com>
wrote:

> Greetings,
>
> How can i identify the first Invite received by Kamailio in a dialog. I'm
> checking for the To-Tag in order to identify the first one. However, if the
> UA retries the same INVITE (because of a timeout for example), it won't
> have To Tag and it won't be the first INVITE that i'm receiving in that
> dialog.
>
> Is there any flag or variable that i can use to identify the first Invite
> received?
>
> Thanks in advance
>
> _______________________________________________
> 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/20180410/5fb3c123/attachment.html>


More information about the sr-users mailing list