<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>in Python you can call exit() or os.exit(), this throws an
      exception which is caught by Kamailio and interpreted as the usual
      exit from kamailio.cfg.</p>
    <p>Probably we should add the KSR.x.exit() there as well, it was not
      added because python exit gave what was needed in this case</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 27.03.18 16:49, Enrico Bandiera
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGqwm+fyOH0LhN0x6barLK_X40LJHc+hA7+r4hvU=ng1tjCU8A@mail.gmail.com">
      <div dir="ltr">Hello, I'm trying to use the KSR.x.exit() function
        in a KEMI python script but at runtime i get this error:
        <div><br>
        </div>
        <div>
          <div>KSR.x.exit()</div>
          <div>AttributeError: 'module' object has no attribute 'exit'</div>
        </div>
        <div><br>
        </div>
        <div>It seems that the exit function is missing even though it
          is documented.</div>
        <div><br>
        </div>
        <div>My kamailio version is: kamailio 5.2.0-dev4 (x86_64/linux) 
          (it's a nightly)</div>
        <div><br>
        </div>
        <div>Any idea on what I can do?</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Enrico.</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - April 16-18, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>