Re: execution continues after exit?

Sergio Charrua via sr-users <[email protected]> Fri, 6 Mar 2026 19:10:01 +0100
Newsgroups gmane.comp.voip.ser
Message-ID <CALZWR5xO0HwFLVhLPe2BFZJWh6jzEQD8h8rL7OKPwonLCxpy3A@mail.gmail.com>
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+66>91 631 11 44

Email : *[email protected] <[email protected]>*

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 <
[email protected]> 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 -- [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!
>

__________________________________________________________
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!