<p>Hello</p>

<p>I'm running Kamailio version: 4.2.5 (x86_64/linux).<br>
kamcmd is always exiting with exit status "0" even if the command failed.</p>

<p>root@lb:~# kamcmd willfail<br>
error: 500 - command willfail not found<br>
root@lb:~# echo $?<br>
0</p>

<p>[live] root@lb32:~# kamcmd permissions.trustedReload<br>
Reload OK<br>
root@lb:~# echo $?<br>
0</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/211">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZQH35mvvsT1uYfQrKPwd-i9dGMXXks5oUATkgaJpZM4FETIO.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/211"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>