I think it is a relative point of view to be considered.
kamcmd itself didn't fail, because it is a tool to take the command line parameters and send a command to kamailio. Then it prints the output from kamailio. In that respect, kamcmd was successful.
I just tested with curl tool and if I request a page that doesn't exits on a web site, its return code is also 0.
Making kamcmd aware of the meaning of the response from kamailio might add complexity and duplicate lot of context, which can become hard to maintain.
I let the discussion here open for other opinions, to see what would be preferred to be done. I consider to be normal behaviour right now.
—
Reply to this email directly or view it on GitHub.