[SR-Users] sanity_reply not available from sanity module

Patrick Karton patrickarton at hotmail.com
Wed May 4 15:55:05 CEST 2022


Hello ,

the sanity_reply function from sanity is not available in kamailio script so i get an error when i want to use it.


in the module source i see this

static cmd_export_t cmds[] = {
{"sanity_check", (cmd_function)w_sanity_check, 0, 0, 0,
REQUEST_ROUTE|ONREPLY_ROUTE},
{"sanity_check", (cmd_function)w_sanity_check, 1, fixup_igp_null, 0,
REQUEST_ROUTE|ONREPLY_ROUTE},
{"sanity_check", (cmd_function)w_sanity_check, 2, fixup_igp_igp, 0,
REQUEST_ROUTE|ONREPLY_ROUTE},
{"sanity_check", (cmd_function)w_sanity_reply, 0, 0, 0,
REQUEST_ROUTE|ONREPLY_ROUTE},
{"bind_sanity",  (cmd_function)bind_sanity,    0, 0, 0, 0 },
{0, 0, 0, 0, 0, 0}
};


why is sanity_check linked again in w_sanity_reply ?

is this an error ?

i want to setup specific responses for some errors and let the default ones from module work as usual.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220504/03ef7bd5/attachment.htm>


More information about the sr-users mailing list