osip-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

potential problem in _eXosip_find_last_invite ?


From: FEICHTER Christoph
Subject: potential problem in _eXosip_find_last_invite ?
Date: Wed, 25 Nov 2020 17:03:34 +0000

hi aymeric,

 

I have a questions regarding the function

_eXosip_find_last_invite (eXosip_call_t * jc, eXosip_dialog_t * jd)

 

the resolution of the birth_time is seconds.

Let’s assume, there are incoming and outgoing re-INVITE transactions.

I am wondering, what happens, if there are 2 re-INVITE transactions (1 in + 1 out) within the same second.

in that case, this function would always return the last outgoing INVITE transaction !

due to the following code-segment:

 

  if (inc_tr->birth_time > out_tr->birth_time)

    return inc_tr;

  return out_tr;

 

isn’t that a potential malfunction of eXosip ?

 

br,

christoph

 

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]