On Ubuntu, `/bin/sh` defaults to `dash` whose built-in `echo` command does not support the `-e` flag. `printf`, on the other hand, supports backslash escapes by default so we use that instead.
In passing, also clean up some messy ANSI escape codes.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3671
-- Commit Summary --
* utils: Prefer `printf` over `echo -e`.
-- File Changes --
M pkg/kamailio/obs/kamailio.init (2) M utils/kamctl/kamctl (2) M utils/kamctl/kamctl.base (10) M utils/kamctl/kamdbctl (6) M utils/kamctl/kamdbctl.base (10)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3671.patch https://github.com/kamailio/kamailio/pull/3671.diff
Here's a before-and-after. This is on a default install of Ubuntu 22.04:

Merged #3671 into master.
Thanks