Hi Team
I'm just noticed that this code is not terminating with the exit on Kamailio 5.8:
$var(enabled) is 'no'
This is run as part of authentication on INVITE and REGISTER method.
if ($var(enabled) != "yes") { xlog("L_ERROR", "$cfg(route): $aU enabled is $var(enabled), rejecting\n"); send_reply("403","Account disabled"); exit; } xlog("L_ERROR", "$cfg(route): If enabled was no, I should not be run\n");
Why is code after exit still being executed? What am I missing?
Mit freundlichen Grüssen
-Benoît Panizzon-
Hello,
I tested with the latest 5.8 branch and I cannot reproduce it - exit works as expected.
Print the variable value in the xlog after the if to see its value.
Cheers, Daniel
On 05.03.26 14:58, Benoit Panizzon via sr-users wrote:
Hi Team
I'm just noticed that this code is not terminating with the exit on Kamailio 5.8:
$var(enabled) is 'no'
This is run as part of authentication on INVITE and REGISTER method.
if ($var(enabled) != "yes") { xlog("L_ERROR", "$cfg(route): $aU enabled is $var(enabled), rejecting\n"); send_reply("403","Account disabled"); exit; } xlog("L_ERROR", "$cfg(route): If enabled was no, I should not be run\n");
Why is code after exit still being executed? What am I missing?
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 -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Hi Benoit,
are you doing some sort of "while loop" where that code is being used?
Atenciosamente / Kind Regards / Cordialement / Un saludo,
*Sérgio Charrua*
*www.kahea.ai http://www.kahea.ai / www.voip.pt http://www.voip.pt*
*OpenTelecom* - Consulting for Telecoms, Lda Tel.: +351 callto:+351+91+104+12+6691 631 11 44
Email : *sergio.charrua@voip.pt sergio.charrua@voip.pt*
This message and any files or documents attached are strictly confidential or otherwise legally protected.
It is intended only for the individual or entity named. If you are not the named addressee or have received this email in error, please inform the sender immediately, delete it from your system and do not copy or disclose it or its contents or use it for any purpose. Please also note that transmission cannot be guaranteed to be secure or error-free.
On Fri, Mar 6, 2026 at 9:09 AM Daniel-Constantin Mierla via sr-users < sr-users@lists.kamailio.org> wrote:
Hello,
I tested with the latest 5.8 branch and I cannot reproduce it - exit works as expected.
Print the variable value in the xlog after the if to see its value.
Cheers, Daniel On 05.03.26 14:58, Benoit Panizzon via sr-users wrote:
Hi Team
I'm just noticed that this code is not terminating with the exit on Kamailio 5.8:
$var(enabled) is 'no'
This is run as part of authentication on INVITE and REGISTER method.
if ($var(enabled) != "yes") { xlog("L_ERROR", "$cfg(route): $aU enabled is $var(enabled), rejecting\n"); send_reply("403","Account disabled"); exit; } xlog("L_ERROR", "$cfg(route): If enabled was no, I should not be run\n");
Why is code after exit still being executed? What am I missing?
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 -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
-- Daniel-Constantin Mierla (@ asipto.com)twitter.com/miconda -- linkedin.com/in/miconda Kamailio Consultancy, Training and Development Services -- asipto.com Kamailio World Conference, May 7-8, 2026 - Berlin, Germany -- kamailioworld.com
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Hi Sergio
are you doing some sort of "while loop" where that code is being used?
Thank you for replying.
No the issue was another, complete stupid 'human' mistake, for each role we have two nodes. While testing something I must have accidentally deleted the 'exit' statement on one machine and when I noticed call not ending, I checked the code on the wrong machine where the 'exit' was present.
Mit freundlichen Grüssen
-Benoît Panizzon-