kamailio.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
List overview
Download
sr-dev
November 2024
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
sr-dev@lists.kamailio.org
20 participants
369 discussions
Start a n
N
ew thread
git:master:c5bdc923: sanity: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: c5bdc9237b661859b635e8dc7fcfea9526ec9def URL:
https://github.com/kamailio/kamailio/commit/c5bdc9237b661859b635e8dc7fcfea9…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-22T10:21:30+01:00 sanity: reformat exported structures --- Modified: src/modules/sanity/sanity_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/c5bdc9237b661859b635e8dc7fcfea9…
Patch:
https://github.com/kamailio/kamailio/commit/c5bdc9237b661859b635e8dc7fcfea9…
--- diff --git a/src/modules/sanity/sanity_mod.c b/src/modules/sanity/sanity_mod.c index 99f64fbf082..09dcdb23d43 100644 --- a/src/modules/sanity/sanity_mod.c +++ b/src/modules/sanity/sanity_mod.c @@ -50,45 +50,51 @@ static int w_sanity_check(sip_msg_t *_msg, char *_msg_check, char *_uri_check); static int w_sanity_reply(sip_msg_t *_msg, char *_p1, char *_p2); static int bind_sanity(sanity_api_t *api); +/* clang-format off */ /* * Exported functions */ -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_reply", (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}}; +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_reply", (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} +}; /* * Exported parameters */ static param_export_t params[] = { - {"default_checks", PARAM_INT, &default_msg_checks}, - {"uri_checks", PARAM_INT, &default_uri_checks}, - {"proxy_require", PARAM_STR, &_sanity_prval}, - {"autodrop", PARAM_INT, &_sanity_drop}, - {"noreply", PARAM_INT, &ksr_sanity_noreply}, {0, 0, 0}}; + {"default_checks", PARAM_INT, &default_msg_checks}, + {"uri_checks", PARAM_INT, &default_uri_checks}, + {"proxy_require", PARAM_STR, &_sanity_prval}, + {"autodrop", PARAM_INT, &_sanity_drop}, + {"noreply", PARAM_INT, &ksr_sanity_noreply}, + {0, 0, 0} +}; /* * Module description */ struct module_exports exports = { - "sanity", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* cmd exports */ - params, /* exported parameters */ - 0, /* RPC methods */ - 0, /* pseudo-variables exports */ - 0, /* response handling function */ - mod_init, /* module initialization function */ - 0, /* per-child init function */ - 0 /* module destroy function */ + "sanity", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + 0, /* RPC method exports */ + 0, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module initialization function */ + 0, /* per-child init function */ + 0 /* module destroy function */ }; +/* clang-format on */ /* * initialize module
2 months, 3 weeks
1
0
0
0
git:master:94e29db0: sca: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: 94e29db032546ccfaa085e1b19ecd11ba6bb922d URL:
https://github.com/kamailio/kamailio/commit/94e29db032546ccfaa085e1b19ecd11…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-22T10:18:16+01:00 sca: reformat exported structures --- Modified: src/modules/sca/sca.c --- Diff:
https://github.com/kamailio/kamailio/commit/94e29db032546ccfaa085e1b19ecd11…
Patch:
https://github.com/kamailio/kamailio/commit/94e29db032546ccfaa085e1b19ecd11…
2 months, 3 weeks
1
0
0
0
git:master:bbd0f09e: sctp: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: bbd0f09e6bef06403a3e28a42abb07043d8857b5 URL:
https://github.com/kamailio/kamailio/commit/bbd0f09e6bef06403a3e28a42abb070…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-22T10:15:05+01:00 sctp: reformat exported structures --- Modified: src/modules/sctp/sctp_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/bbd0f09e6bef06403a3e28a42abb070…
Patch:
https://github.com/kamailio/kamailio/commit/bbd0f09e6bef06403a3e28a42abb070…
--- diff --git a/src/modules/sctp/sctp_mod.c b/src/modules/sctp/sctp_mod.c index f5d287902ce..7717fc60829 100644 --- a/src/modules/sctp/sctp_mod.c +++ b/src/modules/sctp/sctp_mod.c @@ -39,45 +39,47 @@ static int mod_init(void); static int sctp_mod_pre_init(void); #endif - -static cmd_export_t cmds[] = {{0, 0, 0, 0, 0, 0}}; +/* clang-format off */ +static cmd_export_t cmds[] = { + {0, 0, 0, 0, 0, 0} +}; static param_export_t params[] = { - {"sctp_socket_rcvbuf", PARAM_INT, &sctp_default_cfg.so_rcvbuf}, - {"sctp_socket_sndbuf", PARAM_INT, &sctp_default_cfg.so_sndbuf}, - {"sctp_autoclose", PARAM_INT, &sctp_default_cfg.autoclose}, - {"sctp_send_ttl", PARAM_INT, &sctp_default_cfg.send_ttl}, - {"sctp_send_retries", PARAM_INT, &sctp_default_cfg.send_retries}, - {"sctp_assoc_tracking", PARAM_INT, &sctp_default_cfg.assoc_tracking}, - {"sctp_assoc_reuse", PARAM_INT, &sctp_default_cfg.assoc_reuse}, - {"sctp_max_assocs", PARAM_INT, &sctp_default_cfg.max_assocs}, - {"sctp_srto_initial", PARAM_INT, &sctp_default_cfg.srto_initial}, - {"sctp_srto_max", PARAM_INT, &sctp_default_cfg.srto_max}, - {"sctp_srto_min", PARAM_INT, &sctp_default_cfg.srto_min}, - {"sctp_asocmaxrxt", PARAM_INT, &sctp_default_cfg.asocmaxrxt}, - {"sctp_init_max_attempts", PARAM_INT, - &sctp_default_cfg.init_max_attempts}, - {"sctp_init_max_timeo", PARAM_INT, &sctp_default_cfg.init_max_timeo}, - {"sctp_hbinterval", PARAM_INT, &sctp_default_cfg.hbinterval}, - {"sctp_pathmaxrxt", PARAM_INT, &sctp_default_cfg.pathmaxrxt}, - {"sctp_sack_delay", PARAM_INT, &sctp_default_cfg.sack_delay}, - {"sctp_sack_freq", PARAM_INT, &sctp_default_cfg.sack_freq}, - {"sctp_max_burst", PARAM_INT, &sctp_default_cfg.max_burst}, - - {0, 0, 0}}; + {"sctp_socket_rcvbuf", PARAM_INT, &sctp_default_cfg.so_rcvbuf}, + {"sctp_socket_sndbuf", PARAM_INT, &sctp_default_cfg.so_sndbuf}, + {"sctp_autoclose", PARAM_INT, &sctp_default_cfg.autoclose}, + {"sctp_send_ttl", PARAM_INT, &sctp_default_cfg.send_ttl}, + {"sctp_send_retries", PARAM_INT, &sctp_default_cfg.send_retries}, + {"sctp_assoc_tracking", PARAM_INT, &sctp_default_cfg.assoc_tracking}, + {"sctp_assoc_reuse", PARAM_INT, &sctp_default_cfg.assoc_reuse}, + {"sctp_max_assocs", PARAM_INT, &sctp_default_cfg.max_assocs}, + {"sctp_srto_initial", PARAM_INT, &sctp_default_cfg.srto_initial}, + {"sctp_srto_max", PARAM_INT, &sctp_default_cfg.srto_max}, + {"sctp_srto_min", PARAM_INT, &sctp_default_cfg.srto_min}, + {"sctp_asocmaxrxt", PARAM_INT, &sctp_default_cfg.asocmaxrxt}, + {"sctp_init_max_attempts", PARAM_INT, &sctp_default_cfg.init_max_attempts}, + {"sctp_init_max_timeo", PARAM_INT, &sctp_default_cfg.init_max_timeo}, + {"sctp_hbinterval", PARAM_INT, &sctp_default_cfg.hbinterval}, + {"sctp_pathmaxrxt", PARAM_INT, &sctp_default_cfg.pathmaxrxt}, + {"sctp_sack_delay", PARAM_INT, &sctp_default_cfg.sack_delay}, + {"sctp_sack_freq", PARAM_INT, &sctp_default_cfg.sack_freq}, + {"sctp_max_burst", PARAM_INT, &sctp_default_cfg.max_burst}, + {0, 0, 0} +}; struct module_exports exports = { - "sctp", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* cmd exports */ - params, /* param exports */ - 0, /* exported RPC functions */ - 0, /* exported pseudo-variables */ - 0, /* response handling function */ - mod_init, /* module initialization function */ - 0, /* per child init function */ - 0 /* destroy function */ + "sctp", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + 0, /* RPC method exports */ + 0, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module initialization function */ + 0, /* per-child init function */ + 0 /* module destroy function */ }; +/* clang-format on */ int mod_register(char *path, int *dlflags, void *p1, void *p2) {
2 months, 3 weeks
1
0
0
0
git:master:fb7263a3: sdpops: add fixup_free* to exported functions
by Victor Seva
Module: kamailio Branch: master Commit: fb7263a39a91e32dd39ef3548425ed3d43e7f9f9 URL:
https://github.com/kamailio/kamailio/commit/fb7263a39a91e32dd39ef3548425ed3…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-22T10:13:20+01:00 sdpops: add fixup_free* to exported functions --- Modified: src/modules/sdpops/sdpops_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/fb7263a39a91e32dd39ef3548425ed3…
Patch:
https://github.com/kamailio/kamailio/commit/fb7263a39a91e32dd39ef3548425ed3…
--- diff --git a/src/modules/sdpops/sdpops_mod.c b/src/modules/sdpops/sdpops_mod.c index 34a11697361..e88dcf89ee7 100644 --- a/src/modules/sdpops/sdpops_mod.c +++ b/src/modules/sdpops/sdpops_mod.c @@ -95,42 +95,42 @@ static int mod_init(void); /* clang-format off */ static cmd_export_t cmds[] = { {"sdp_remove_line_by_prefix", (cmd_function)w_sdp_remove_line_by_prefix, - 1, fixup_spve_null, 0, ANY_ROUTE}, + 1, fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"sdp_remove_line_by_prefix", (cmd_function)w_sdp_remove_line_by_prefix, - 2, fixup_spve_spve, 0, ANY_ROUTE}, + 2, fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE}, {"sdp_remove_codecs_by_id", (cmd_function)w_sdp_remove_codecs_by_id, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"sdp_remove_codecs_by_id", (cmd_function)w_sdp_remove_codecs_by_id, 2, - fixup_spve_spve, 0, ANY_ROUTE}, + fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE}, {"sdp_remove_codecs_by_name", (cmd_function)w_sdp_remove_codecs_by_name, - 1, fixup_spve_null, 0, ANY_ROUTE}, + 1, fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"sdp_remove_codecs_by_name", (cmd_function)w_sdp_remove_codecs_by_name, - 2, fixup_spve_spve, 0, ANY_ROUTE}, + 2, fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE}, {"sdp_keep_codecs_by_id", (cmd_function)w_sdp_keep_codecs_by_id, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"sdp_keep_codecs_by_id", (cmd_function)w_sdp_keep_codecs_by_id, 2, - fixup_spve_spve, 0, ANY_ROUTE}, + fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE}, {"sdp_keep_codecs_by_name", (cmd_function)w_sdp_keep_codecs_by_name, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"sdp_keep_codecs_by_name", (cmd_function)w_sdp_keep_codecs_by_name, 2, - fixup_spve_spve, 0, ANY_ROUTE}, + fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE}, {"sdp_with_media", (cmd_function)w_sdp_with_media, 1, fixup_spve_null, 0, ANY_ROUTE}, {"sdp_with_active_media", (cmd_function)w_sdp_with_active_media, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"sdp_remove_media", (cmd_function)w_sdp_remove_media, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"sdp_with_transport", (cmd_function)w_sdp_with_transport, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"sdp_with_transport_like", (cmd_function)w_sdp_with_transport_like, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"sdp_remove_transport", (cmd_function)w_sdp_remove_transport, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"sdp_transport", (cmd_function)w_sdp_transport, 1, 0, 0, ANY_ROUTE}, {"sdp_with_codecs_by_id", (cmd_function)w_sdp_with_codecs_by_id, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"sdp_with_codecs_by_name", (cmd_function)w_sdp_with_codecs_by_name, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"sdp_print", (cmd_function)w_sdp_print, 1, fixup_igp_null, 0, ANY_ROUTE}, {"sdp_get", (cmd_function)w_sdp_get, 1, 0, 0, ANY_ROUTE}, @@ -138,7 +138,7 @@ static cmd_export_t cmds[] = { {"sdp_content", (cmd_function)w_sdp_content_sloppy, 1, 0, 0, ANY_ROUTE}, {"sdp_with_ice", (cmd_function)w_sdp_with_ice, 0, 0, 0, ANY_ROUTE}, {"sdp_get_line_startswith", (cmd_function)w_sdp_get_line_startswith, 2, - fixup_none_spve, 0, ANY_ROUTE}, + fixup_none_spve, fixup_free_none_spve, ANY_ROUTE}, {"sdp_get_address_family", (cmd_function)w_sdp_get_address_family, 0, 0, 0, ANY_ROUTE},
2 months, 3 weeks
1
0
0
0
git:master:2a35ef29: seas: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: 2a35ef2966bca64f759c435e248e3b9118a90fc4 URL:
https://github.com/kamailio/kamailio/commit/2a35ef2966bca64f759c435e248e3b9…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-22T10:09:41+01:00 seas: reformat exported structures --- Modified: src/modules/seas/seas.c --- Diff:
https://github.com/kamailio/kamailio/commit/2a35ef2966bca64f759c435e248e3b9…
Patch:
https://github.com/kamailio/kamailio/commit/2a35ef2966bca64f759c435e248e3b9…
--- diff --git a/src/modules/seas/seas.c b/src/modules/seas/seas.c index 3c8e17c2673..63ad58b0335 100644 --- a/src/modules/seas/seas.c +++ b/src/modules/seas/seas.c @@ -85,29 +85,35 @@ int read_pipe = 0; struct seas_functions seas_f; -static cmd_export_t cmds[] = {{"as_relay_t", (cmd_function)w_as_relay_t, 1, - fixup_as_relay, 0, REQUEST_ROUTE}, - {"as_relay_sl", (cmd_function)w_as_relay_sl, 1, fixup_as_relay, 0, - REQUEST_ROUTE}, - {0, 0, 0, 0, 0, 0}}; +/* clang-format off */ +static cmd_export_t cmds[] = { + {"as_relay_t", (cmd_function)w_as_relay_t, 1, fixup_as_relay, 0, REQUEST_ROUTE}, + {"as_relay_sl", (cmd_function)w_as_relay_sl, 1, fixup_as_relay, 0, REQUEST_ROUTE}, + {0, 0, 0, 0, 0, 0} +}; static param_export_t params[] = { - {"listen_sockets", PARAM_STRING, &seas_listen_socket}, - {"stats_socket", PARAM_STRING, &seas_stats_socket}, - {"jain_ping", PARAM_STRING, &jain_ping_config}, - {"servlet_ping", PARAM_STRING, &servlet_ping_config}, - {"clusters", PARAM_STRING, &cluster_cfg}, {0, 0, 0}}; + {"listen_sockets", PARAM_STRING, &seas_listen_socket}, + {"stats_socket", PARAM_STRING, &seas_stats_socket}, + {"jain_ping", PARAM_STRING, &jain_ping_config}, + {"servlet_ping", PARAM_STRING, &servlet_ping_config}, + {"clusters", PARAM_STRING, &cluster_cfg}, + {0, 0, 0} +}; struct module_exports exports = { - "seas", DEFAULT_DLFLAGS, cmds, /* exported commands */ - params, /* exported parameters */ - 0, /* exported RPC methods */ - 0, /* exported module-items (pseudo variables) */ - 0, /* response function */ - seas_init, /* module initialization function */ - seas_child_init, /* per-child init function */ - seas_exit /* module exit function */ + "seas", + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + 0, /* RPC method exports */ + 0, /* exported pseudo-variables */ + 0, /* response handling function */ + seas_init, /* module initialization function */ + seas_child_init, /* per-child init function */ + seas_exit /* module destroy function */ }; +/* clang-format on */ static int fixup_as_relay(void **param, int param_no) {
2 months, 3 weeks
1
0
0
0
git:master:fa6192c1: secfilter: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: fa6192c1431186f395cf35e270916c2e7756455b URL:
https://github.com/kamailio/kamailio/commit/fa6192c1431186f395cf35e270916c2…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-22T10:05:26+01:00 secfilter: reformat exported structures --- Modified: src/modules/secfilter/secfilter.c --- Diff:
https://github.com/kamailio/kamailio/commit/fa6192c1431186f395cf35e270916c2…
Patch:
https://github.com/kamailio/kamailio/commit/fa6192c1431186f395cf35e270916c2…
2 months, 3 weeks
1
0
0
0
git:master:612f5d10: sipcapture: add fixup_free* to exported functions
by Victor Seva
Module: kamailio Branch: master Commit: 612f5d10f0d191b0c66e8ef907c09a00239bfcf4 URL:
https://github.com/kamailio/kamailio/commit/612f5d10f0d191b0c66e8ef907c09a0…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-22T10:01:43+01:00 sipcapture: add fixup_free* to exported functions --- Modified: src/modules/sipcapture/sipcapture.c --- Diff:
https://github.com/kamailio/kamailio/commit/612f5d10f0d191b0c66e8ef907c09a0…
Patch:
https://github.com/kamailio/kamailio/commit/612f5d10f0d191b0c66e8ef907c09a0…
--- diff --git a/src/modules/sipcapture/sipcapture.c b/src/modules/sipcapture/sipcapture.c index 82c916dd3bc..9ae34fa9658 100644 --- a/src/modules/sipcapture/sipcapture.c +++ b/src/modules/sipcapture/sipcapture.c @@ -140,8 +140,11 @@ static int sipcapture_init_rpc(void); static int child_init(int rank); static void destroy(void); static int sipcapture_fixup(void **param, int param_no); +static int sipcapture_fixup_free(void **param, int param_no); static int reportcapture_fixup(void **param, int param_no); +static int reportcapture_fixup_free(void **param, int param_no); static int float2int_fixup(void **param, int param_no); +static int float2int_fixup_free(void **param, int param_no); static int pv_get_hep(sip_msg_t *msg, pv_param_t *param, pv_value_t *res); static int pv_parse_hep_name(pv_spec_p sp, str *in); @@ -310,14 +313,22 @@ struct hep_timeinfo *heptime = NULL; * Exported functions */ static cmd_export_t cmds[] = { - {"sip_capture", (cmd_function)w_sip_capture0, 0, 0, 0, ANY_ROUTE}, - {"sip_capture", (cmd_function)w_sip_capture1, 1, sipcapture_fixup, 0, ANY_ROUTE}, - {"sip_capture", (cmd_function)w_sip_capture2, 2, sipcapture_fixup, 0, ANY_ROUTE}, - {"report_capture", (cmd_function)w_report_capture1, 1, reportcapture_fixup, 0, ANY_ROUTE}, - {"report_capture", (cmd_function)w_report_capture2, 2, reportcapture_fixup, 0, ANY_ROUTE}, - {"report_capture", (cmd_function)w_report_capture3, 3, reportcapture_fixup, 0, ANY_ROUTE}, - {"float2int", (cmd_function)w_float2int, 2, float2int_fixup, 0, ANY_ROUTE}, - {"sip_capture_forward", (cmd_function)w_sip_capture_forward, 1, fixup_spve_null, 0, ANY_ROUTE}, + {"sip_capture", (cmd_function)w_sip_capture0, 0, + 0, 0, ANY_ROUTE}, + {"sip_capture", (cmd_function)w_sip_capture1, 1, + sipcapture_fixup, sipcapture_fixup_free, ANY_ROUTE}, + {"sip_capture", (cmd_function)w_sip_capture2, 2, + sipcapture_fixup, sipcapture_fixup_free, ANY_ROUTE}, + {"report_capture", (cmd_function)w_report_capture1, 1, + reportcapture_fixup, reportcapture_fixup_free, ANY_ROUTE}, + {"report_capture", (cmd_function)w_report_capture2, 2, + reportcapture_fixup, reportcapture_fixup_free, ANY_ROUTE}, + {"report_capture", (cmd_function)w_report_capture3, 3, + reportcapture_fixup, reportcapture_fixup_free, ANY_ROUTE}, + {"float2int", (cmd_function)w_float2int, 2, + float2int_fixup, float2int_fixup_free, ANY_ROUTE}, + {"sip_capture_forward", (cmd_function)w_sip_capture_forward, 1, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {0, 0, 0, 0, 0, 0} }; @@ -1108,6 +1119,15 @@ static int sipcapture_fixup(void **param, int param_no) return 0; } +static int sipcapture_fixup_free(void **param, int param_no) +{ + if(param_no == 1) { + return fixup_free_fparam_all(param, 1); + } + + return 0; +} + static int reportcapture_fixup(void **param, int param_no) { @@ -1124,6 +1144,16 @@ static int reportcapture_fixup(void **param, int param_no) return 0; } +static int reportcapture_fixup_free(void **param, int param_no) +{ + + if(param_no >= 1 && param_no <= 3) { + return fixup_free_fparam_all(param, 1); + } + + return 0; +} + static int float2int_fixup(void **param, int param_no) { @@ -1137,6 +1167,14 @@ static int float2int_fixup(void **param, int param_no) return 0; } +static int float2int_fixup_free(void **param, int param_no) +{ + if(param_no == 1 || param_no == 2) { + return fixup_free_fparam_all(param, 1); + } + + return 0; +} static int w_float2int(sip_msg_t *_m, char *_val, char *_coof) {
2 months, 3 weeks
1
0
0
0
git:master:b0531ca5: sipcapture: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: b0531ca55d8d918f58057b393ba13a22e95813b6 URL:
https://github.com/kamailio/kamailio/commit/b0531ca55d8d918f58057b393ba13a2…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-22T09:52:39+01:00 sipcapture: reformat exported structures --- Modified: src/modules/sipcapture/sipcapture.c --- Diff:
https://github.com/kamailio/kamailio/commit/b0531ca55d8d918f58057b393ba13a2…
Patch:
https://github.com/kamailio/kamailio/commit/b0531ca55d8d918f58057b393ba13a2…
2 months, 3 weeks
1
0
0
0
git:master:e915258d: sipdump: add fixup_free* to exported functions
by Victor Seva
Module: kamailio Branch: master Commit: e915258d8a76f811c8e9a7607248cf7149719541 URL:
https://github.com/kamailio/kamailio/commit/e915258d8a76f811c8e9a7607248cf7…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-22T09:47:05+01:00 sipdump: add fixup_free* to exported functions --- Modified: src/modules/sipdump/sipdump_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/e915258d8a76f811c8e9a7607248cf7…
Patch:
https://github.com/kamailio/kamailio/commit/e915258d8a76f811c8e9a7607248cf7…
--- diff --git a/src/modules/sipdump/sipdump_mod.c b/src/modules/sipdump/sipdump_mod.c index 8201ab11e47..cdac1a32ccf 100644 --- a/src/modules/sipdump/sipdump_mod.c +++ b/src/modules/sipdump/sipdump_mod.c @@ -74,7 +74,7 @@ int pv_get_sipdump(sip_msg_t *msg, pv_param_t *param, pv_value_t *res); /* clang-format off */ static cmd_export_t cmds[]={ {"sipdump_send", (cmd_function)w_sipdump_send, 1, fixup_spve_null, - 0, ANY_ROUTE}, + fixup_free_spve_null, ANY_ROUTE}, {0, 0, 0, 0, 0, 0} };
2 months, 3 weeks
1
0
0
0
git:master:3cce2ac7: sipjson: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: 3cce2ac7f9f8ef2ab10a9c228b9bbaddde3c7d03 URL:
https://github.com/kamailio/kamailio/commit/3cce2ac7f9f8ef2ab10a9c228b9bbad…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-22T09:45:05+01:00 sipjson: reformat exported structures --- Modified: src/modules/sipjson/sipjson_mod.c Modified: src/modules/siprepo/siprepo_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/3cce2ac7f9f8ef2ab10a9c228b9bbad…
Patch:
https://github.com/kamailio/kamailio/commit/3cce2ac7f9f8ef2ab10a9c228b9bbad…
--- diff --git a/src/modules/sipjson/sipjson_mod.c b/src/modules/sipjson/sipjson_mod.c index 06e0d2eeb4c..83564225aa0 100644 --- a/src/modules/sipjson/sipjson_mod.c +++ b/src/modules/sipjson/sipjson_mod.c @@ -41,26 +41,30 @@ static int sj_serialize_data(sip_msg_t *msg, srjson_doc_t *jdoc, str *smode); static int w_sj_serialize(sip_msg_t *msg, char *mode, char *vout); +/* clang-format off */ static cmd_export_t cmds[] = { - {"sj_serialize", (cmd_function)w_sj_serialize, 2, fixup_spve_pvar, - fixup_free_spve_pvar, ANY_ROUTE}, - {0, 0, 0, 0, 0, 0}}; - -static param_export_t params[] = {{0, 0, 0}}; + {"sj_serialize", (cmd_function)w_sj_serialize, 2, fixup_spve_pvar, + fixup_free_spve_pvar, ANY_ROUTE}, + {0, 0, 0, 0, 0, 0} +}; +static param_export_t params[] = { + {0, 0, 0} +}; struct module_exports exports = { - "sipjson", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* exported functions */ - params, /* exported parameters */ - 0, /* exported rpc functions */ - 0, /* exported pseudo-variables */ - 0, /* module init function */ - 0, /* response function */ - 0, /* per child init function */ - 0 /* destroy function */ + "sipjson", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + 0, /* exported rpc functions */ + 0, /* exported pseudo-variables */ + 0, /* response handling function */ + 0, /* module init function */ + 0, /* per-child init function */ + 0 /* module destroy function */ }; +/* clang-format on */ /** * diff --git a/src/modules/siprepo/siprepo_mod.c b/src/modules/siprepo/siprepo_mod.c index e8cd28d10d7..0ce005774e2 100644 --- a/src/modules/siprepo/siprepo_mod.c +++ b/src/modules/siprepo/siprepo_mod.c @@ -75,7 +75,7 @@ static cmd_export_t cmds[]={ {"sr_msg_pull", (cmd_function)w_sr_msg_pull, 4, fixup_sssi, fixup_free_sssi, REQUEST_ROUTE|CORE_ONREPLY_ROUTE}, {"sr_msg_async_pull", (cmd_function)w_sr_msg_async_pull, 5, fixup_sr_msg_async_pull, - 0, ANY_ROUTE}, + fixup_free_sr_msg_async_pull, ANY_ROUTE}, {"sr_msg_rm", (cmd_function)w_sr_msg_rm, 2, fixup_spve_spve, fixup_free_spve_spve, REQUEST_ROUTE|CORE_ONREPLY_ROUTE}, {"sr_msg_check", (cmd_function)w_sr_msg_check, 0, 0,
2 months, 3 weeks
1
0
0
0
← Newer
1
...
11
12
13
14
15
16
17
...
37
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Results per page:
10
25
50
100
200