This is probably due to changes in perl.
The docs for app_perl use sl_send_reply() and xlog() as examples for the
explicit and implicit Kamailio::moduleFunction() methods.
Neither work.
For sl_send_reply, one gets errors of the form:
ERROR: app_perl [kamailioxs.xs:255]: moduleFunc(): function 'sl_send_reply' \
called, but not available.
ERROR: app_perl [kamailioxs.xs:978]: XS_Kamailio__Message_moduleFunction(): \
calling module function 'sl_send_reply' failed. Missing loadmodule?
even though the modules is loaded and sl_send_reply works fine in the .cfg.
Xlog, OTOH, generates:
ERROR: app_perl [kamailioxs.xs:280]: moduleFunc (): Module function 'xlog' \
is unsafe. Call is refused.
ERROR: app_perl [kamailioxs.xs:978]: XS_Kamailio__Message_moduleFunction(): \
calling module function 'xlog' failed. Missing loadmodule?
Removing «use strict» from the script does not prevent the «is unsafe» error.
Using Kamailio::log() works, albeit with superfluous verbosity.
-JimC
--
James Cloos <cloos(a)jhcloos.com> OpenPGP: 0x997A9F17ED7DAEA6
Show replies by date