execution continues after exit?

Benoit Panizzon via sr-users <[email protected]> Thu, 5 Mar 2026 14:58:39 +0100
Newsgroups gmane.comp.voip.ser
Organization ImproWare AG
Message-ID <[email protected]>
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 -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!