You can use jsonrpc or xmlrpc for more standard formatted output. It should be easier to parse the result returned by kamailio.
Look at kamcli (https://github.com/asipto/kamcli) -- it can send jsonrpc commands via a local fifo file, if you prefer to avoid network communication.
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.
—
Reply to this email directly or view it on GitHub.