<p>You can use jsonrpc or xmlrpc for more standard formatted output. It should be easier to parse the result returned by kamailio.</p>

<p>Look at kamcli (<a href="https://github.com/asipto/kamcli">https://github.com/asipto/kamcli</a>) -- it can send jsonrpc commands via a local fifo file, if you prefer to avoid network communication.</p>

<p>I will close this as not being an issue. Eventually you can start a discussion on sr-dev mailing list for enhancing kamcmd in being more flexible in such situations.</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#issuecomment-113508510">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZcPT8mi6aZuFhw_JNL_BhdpaZb5tks5oVApMgaJpZM4FETIO.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#issuecomment-113508510"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>