Switch OTS_WARNING to use message callback