[sr-dev] [kamailio/kamailio] core: add support for custom log function (PR #3902)