Module: kamailio
Branch: master
Commit: fbf2fef1ff0f3289cb4734f66b86f0a4f82f2407
URL: 
https://github.com/kamailio/kamailio/commit/fbf2fef1ff0f3289cb4734f66b86f0a4f82f2407

Author: Victor Seva <linuxman...@torreviejawireless.org>
Committer: Victor Seva <linuxman...@torreviejawireless.org>
Date: 2024-12-13T20:12:07+01:00

lwsc: add fixup_free* to exported functions

---

Modified: src/modules/lwsc/lwsc_mod.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/fbf2fef1ff0f3289cb4734f66b86f0a4f82f2407.diff
Patch: 
https://github.com/kamailio/kamailio/commit/fbf2fef1ff0f3289cb4734f66b86f0a4f82f2407.patch

---

diff --git a/src/modules/lwsc/lwsc_mod.c b/src/modules/lwsc/lwsc_mod.c
index b1645448276..c38779ad712 100644
--- a/src/modules/lwsc/lwsc_mod.c
+++ b/src/modules/lwsc/lwsc_mod.c
@@ -51,6 +51,8 @@ static int w_lwsc_request_proto(
 static int w_lwsc_notify(sip_msg_t *msg, char *pwsurl, char *pdata);
 static int w_lwsc_notify_proto(
                sip_msg_t *msg, char *pwsurl, char *pwsproto, char *pdata);
+static int lwsc_pv_get(sip_msg_t *msg, pv_param_t *param, pv_value_t *res);
+static int lwsc_pv_parse_name(pv_spec_t *sp, str *in);
 
 static int _lwsc_timeout_connect = 0;
 static int _lwsc_timeout_send = 0;
@@ -60,16 +62,17 @@ static str _lwsc_protocol = str_init("kmsg");
 static int _lwsc_verbosity = 0;
 
 /* clang-format off */
-static cmd_export_t cmds[] = {{"lwsc_request", (cmd_function)w_lwsc_request, 2,
-                                                                 
fixup_spve_all, 0, ANY_ROUTE},
+static cmd_export_t cmds[] = {
+       {"lwsc_request", (cmd_function)w_lwsc_request, 2,
+               fixup_spve_all, fixup_free_spve_all, ANY_ROUTE},
        {"lwsc_request_proto", (cmd_function)w_lwsc_request_proto, 3,
-                       fixup_spve_all, fixup_free_spve_all, ANY_ROUTE},
-       {"lwsc_notify", (cmd_function)w_lwsc_notify, 2, fixup_spve_all, 
fixup_free_spve_all,
-                       ANY_ROUTE},
+               fixup_spve_all, fixup_free_spve_all, ANY_ROUTE},
+       {"lwsc_notify", (cmd_function)w_lwsc_notify, 2,
+               fixup_spve_all, fixup_free_spve_all, ANY_ROUTE},
        {"lwsc_notify_proto", (cmd_function)w_lwsc_notify_proto, 3,
-                       fixup_spve_all, fixup_free_spve_all, ANY_ROUTE},
+               fixup_spve_all, fixup_free_spve_all, ANY_ROUTE},
        {"bind_lwsc", (cmd_function)bind_lwsc, 0, 0, 0, 0},
-    {0, 0, 0, 0, 0, 0}
+  {0, 0, 0, 0, 0, 0}
 };
 
 static param_export_t params[] = {
@@ -82,9 +85,6 @@ static param_export_t params[] = {
        {0, 0, 0}
 };
 
-static int lwsc_pv_get(sip_msg_t *msg, pv_param_t *param, pv_value_t *res);
-static int lwsc_pv_parse_name(pv_spec_t *sp, str *in);
-
 static pv_export_t mod_pvs[] = {
        {{"lwsc", sizeof("lwsc") - 1}, PVT_OTHER, lwsc_pv_get, 0,
                        lwsc_pv_parse_name, 0, 0, 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!

Reply via email to