Module: kamailio
Branch: master
Commit: f5f7c913d4f008b9937677ae2c2d66baa01dcf0e
URL:
https://github.com/kamailio/kamailio/commit/f5f7c913d4f008b9937677ae2c2d66b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-08-16T18:03:46+02:00
uac: added fixup free functions to exports structure
---
Modified: src/modules/uac/uac.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f5f7c913d4f008b9937677ae2c2d66b…
Patch:
https://github.com/kamailio/kamailio/commit/f5f7c913d4f008b9937677ae2c2d66b…
---
diff --git a/src/modules/uac/uac.c b/src/modules/uac/uac.c
index 90d434ac64d..aabd6c753ed 100644
--- a/src/modules/uac/uac.c
+++ b/src/modules/uac/uac.c
@@ -128,15 +128,15 @@ static pv_export_t mod_pvs[] = {
/* Exported functions */
static cmd_export_t cmds[] = {
{"uac_replace_from", (cmd_function)w_replace_from, 2, fixup_spve_spve,
- 0, REQUEST_ROUTE | BRANCH_ROUTE},
+ fixup_free_spve_spve, REQUEST_ROUTE | BRANCH_ROUTE},
{"uac_replace_from", (cmd_function)w_replace_from, 1, fixup_spve_spve,
- 0, REQUEST_ROUTE | BRANCH_ROUTE},
+ fixup_free_spve_spve, REQUEST_ROUTE | BRANCH_ROUTE},
{"uac_restore_from", (cmd_function)w_restore_from, 0, 0, 0,
REQUEST_ROUTE},
- {"uac_replace_to", (cmd_function)w_replace_to, 2, fixup_spve_spve, 0,
- REQUEST_ROUTE | BRANCH_ROUTE},
- {"uac_replace_to", (cmd_function)w_replace_to, 1, fixup_spve_spve, 0,
- REQUEST_ROUTE | BRANCH_ROUTE},
+ {"uac_replace_to", (cmd_function)w_replace_to, 2, fixup_spve_spve,
+ fixup_free_spve_spve, REQUEST_ROUTE | BRANCH_ROUTE},
+ {"uac_replace_to", (cmd_function)w_replace_to, 1, fixup_spve_spve,
+ fixup_free_spve_spve, REQUEST_ROUTE | BRANCH_ROUTE},
{"uac_restore_to", (cmd_function)w_restore_to, 0, 0, 0, REQUEST_ROUTE},
{"uac_auth", (cmd_function)w_uac_auth, 0, 0, 0,
FAILURE_ROUTE | BRANCH_FAILURE_ROUTE | EVENT_ROUTE},
@@ -152,7 +152,7 @@ static cmd_export_t cmds[] = {
{"uac_reg_lookup_uri", (cmd_function)w_uac_reg_lookup_uri, 2,
fixup_spve_pvar, fixup_free_spve_pvar, ANY_ROUTE},
{"uac_reg_status", (cmd_function)w_uac_reg_status, 1, fixup_spve_null,
- 0, ANY_ROUTE},
+ fixup_free_spve_null, ANY_ROUTE},
{"uac_reg_request_to", (cmd_function)w_uac_reg_request_to, 2,
fixup_spve_igp, fixup_free_spve_igp,
REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE},