Hello Benoit,
yes, there have been multiple reports of setflag together with dialog does not working
correctly over the years, and dlg_manage needs to be used.
We probably should remove the setflag for dialog to prevent confusion.
Cheers,
Henning
-----Original Message-----
From: Benoit Panizzon via sr-users <sr-users(a)lists.kamailio.org>
Sent: Montag, 8. April 2024 16:17
To: Benoît Panizzon via sr-users <sr-users(a)lists.kamailio.org>
Cc: Benoit Panizzon <benoit.panizzon(a)imp.ch>
Subject: [SR-Users] Solution found: Race condition in dialog on 422 reply
deletes variables.
Hi all
I have found another solution:
Don't use: setflag(FLT_DLG);
call dlg_manage() on every message entering request_route before trying to
set dlg_vars.
On a 422 reply I now get two CDR, but that is OK as long as I have correct
dlg_vars on the second almost identical call (endpoint immediately re-sending
the invite with smaller session timer) which is then connected and which I
need for billing.
Mit freundlichen Grüssen
-Benoît Panizzon-
--
I m p r o W a r e A G - Leiter Commerce Kunden
______________________________________________________
Zurlindenstrasse 29 Tel +41 61 826 93 00
CH-4133 Pratteln Fax +41 61 826 93 01
Schweiz Web
http://www.imp.ch
______________________________________________________
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe
send an email to sr-users-leave(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the
sender!
Edit mailing list options or unsubscribe: