[SR-Users] sanity_reply not available from sanity module
Patrick Karton
patrickarton at hotmail.com
Wed May 4 16:40:13 CEST 2022
Thanks!
________________________________
De : Daniel-Constantin Mierla <miconda at gmail.com>
Envoyé : mercredi 4 mai 2022 14:35
À : Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>; Patrick Karton <patrickarton at hotmail.com>
Objet : Re: [SR-Users] sanity_reply not available from sanity module
Hello,
indeed there was an error with the exported function name. I pushed a commit for it:
* https://github.com/kamailio/kamailio/commit/7c52c05b09abdf2cf754cc02f3a1ea0855cdedd0
It will be backported.
Cheers,
Daniel
On 04.05.22 15:55, Patrick Karton wrote:
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.
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
Kamailio Advanced Training - Online
* https://www.asipto.com/sw/kamailio-advanced-training-online/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220504/7b79d661/attachment.htm>
More information about the sr-users
mailing list