Hello, We encounter sometimes reinvite from some provider really quickly after 200 OK ACK so sometime there a race conditions where the re-invite exits Kamailio before the ACK leading to some Freeswitch “500 Overlapping Requests”.
[cid:image001.png@01D798FA.6F5B9D80]
I tried to catch the 500 on failure-route unsuccessfully as transaction is already established.
Do you have any idea on how I could deal with this behavour ?
Running 5.3.6 with 8 childs modules used :(tm + dialog) No costly action performed on ack that can explain slowliness.
Regards, David
Hello,
this should give you some ideas, e.g. just adding a sight delay to the Re-INVITE In Kamailio.
https://datatracker.ietf.org/doc/html/rfc5407#section-3.1.4
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.comhttps://gilawa.com/
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of David VILLAUME Sent: Tuesday, August 24, 2021 3:12 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: [SR-Users] Race conditions upon quick reinvite
Hello, We encounter sometimes reinvite from some provider really quickly after 200 OK ACK so sometime there a race conditions where the re-invite exits Kamailio before the ACK leading to some Freeswitch “500 Overlapping Requests”.
[cid:image001.png@01D798FD.2A666360]
I tried to catch the 500 on failure-route unsuccessfully as transaction is already established.
Do you have any idea on how I could deal with this behavour ?
Running 5.3.6 with 8 childs modules used :(tm + dialog) No costly action performed on ack that can explain slowliness.
Regards, David
Hello,
see if setting this core parameter helps:
* https://www.kamailio.org/wiki/cookbooks/5.5.x/core#route_locks_size
An alternative would be to use htable to store the time when the 200ok (or ACK) is processed and if the re-INVITE comes very fast, do a sleep()/usleep().
Cheers, Daniel
On 24.08.21 15:12, David VILLAUME wrote:
Hello,
We encounter sometimes reinvite from some provider really quickly after 200 OK ACK so sometime there a race conditions where the re-invite exits Kamailio before the ACK leading to some Freeswitch “500 Overlapping Requests”.
I tried to catch the 500 on failure-route unsuccessfully as transaction is already established.
Do you have any idea on how I could deal with this behavour ?
Running 5.3.6 with 8 childs
modules used :(tm + dialog)
No costly action performed on ack that can explain slowliness.
Regards,
David
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
Thanks you very much, this seems exactly what I need.
Regards, David
From: Daniel-Constantin Mierla miconda@gmail.com Sent: Tuesday, August 24, 2021 4:24 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org; David VILLAUME david.villaume@sewan.fr Subject: Re: [SR-Users] Race conditions upon quick reinvite
Hello,
see if setting this core parameter helps:
* https://www.kamailio.org/wiki/cookbooks/5.5.x/core#route_locks_size
An alternative would be to use htable to store the time when the 200ok (or ACK) is processed and if the re-INVITE comes very fast, do a sleep()/usleep().
Cheers, Daniel On 24.08.21 15:12, David VILLAUME wrote:
Hello, We encounter sometimes reinvite from some provider really quickly after 200 OK ACK so sometime there a race conditions where the re-invite exits Kamailio before the ACK leading to some Freeswitch “500 Overlapping Requests”.
[cid:image001.png@01D79906.F7DC6A70]
I tried to catch the 500 on failure-route unsuccessfully as transaction is already established.
Do you have any idea on how I could deal with this behavour ?
Running 5.3.6 with 8 childs modules used :(tm + dialog) No costly action performed on ack that can explain slowliness.
Regards, David
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla -- www.asipto.comhttp://www.asipto.com
www.twitter.com/micondahttp://www.twitter.com/miconda -- www.linkedin.com/in/micondahttp://www.linkedin.com/in/miconda