Module: kamailio Branch: master Commit: d728b14bf2987b89ddfd131f66b62943424afa5f URL: https://github.com/kamailio/kamailio/commit/d728b14bf2987b89ddfd131f66b62943424afa5f
Author: Victor Seva <linuxman...@torreviejawireless.org> Committer: Victor Seva <linuxman...@torreviejawireless.org> Date: 2024-11-20T13:57:59+01:00 uid_domain: add fixup_free* to exported functions --- Modified: src/modules/uid_domain/uid_domain_mod.c --- Diff: https://github.com/kamailio/kamailio/commit/d728b14bf2987b89ddfd131f66b62943424afa5f.diff Patch: https://github.com/kamailio/kamailio/commit/d728b14bf2987b89ddfd131f66b62943424afa5f.patch --- diff --git a/src/modules/uid_domain/uid_domain_mod.c b/src/modules/uid_domain/uid_domain_mod.c index eed0a27122d..e140e003d95 100644 --- a/src/modules/uid_domain/uid_domain_mod.c +++ b/src/modules/uid_domain/uid_domain_mod.c @@ -56,6 +56,7 @@ static int lookup_domain(struct sip_msg *msg, char *s1, char *s2); static int get_did(str *did, str *domain); static int lookup_domain_fixup(void **param, int param_no); +static int lookup_domain_fixup_free(void **param, int param_no); MODULE_VERSION @@ -121,8 +122,8 @@ static domain_t dom_buf[2]; * Exported functions */ static cmd_export_t cmds[] = { - {"is_local", is_local, 1, fixup_var_str_1, 0, REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE}, - {"lookup_domain", lookup_domain, 2, lookup_domain_fixup, 0, REQUEST_ROUTE | FAILURE_ROUTE}, + {"is_local", is_local, 1, fixup_var_str_1, fixup_free_fparam_1, REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE}, + {"lookup_domain", lookup_domain, 2, lookup_domain_fixup, lookup_domain_fixup_free, REQUEST_ROUTE | FAILURE_ROUTE}, {"get_did", (cmd_function)get_did, 0, 0, 0, 0}, {"bind_domain", (cmd_function)bind_domain, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0} @@ -569,3 +570,11 @@ static int lookup_domain_fixup(void **param, int param_no) return 0; } + +static int lookup_domain_fixup_free(void **param, int param_no) +{ + if(param_no == 2) { + return fixup_free_fparam_all(param, 2); + } + return 0; +} _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!