[sr-dev] [kamailio/kamailio] core: fix compilation error (#1934)