Re: execution continues after exit?
Daniel-Constantin Mierla via sr-users <[email protected]> Fri, 6 Mar 2026 08:56:01 +0100
| Newsgroups | gmane.comp.voip.ser |
|---|---|
| Message-ID | <[email protected]> |
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 -- [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!
--
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 -- [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!