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
2024
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
----- 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
17 participants
307 discussions
Start a n
N
ew thread
git:master:fa142bbe: rtpengine: add fixup_free* to exported functions
by Victor Seva
Module: kamailio Branch: master Commit: fa142bbe6327df2cc6c2cf8e942b9207cb6fe62b URL:
https://github.com/kamailio/kamailio/commit/fa142bbe6327df2cc6c2cf8e942b920…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-22T10:47:17+01:00 rtpengine: add fixup_free* to exported functions --- Modified: src/modules/rtpengine/rtpengine.c --- Diff:
https://github.com/kamailio/kamailio/commit/fa142bbe6327df2cc6c2cf8e942b920…
Patch:
https://github.com/kamailio/kamailio/commit/fa142bbe6327df2cc6c2cf8e942b920…
2 days, 23 hours
1
0
0
0
git:master:907f213c: rtpproxy: add fixup_free* to exported functions
by Victor Seva
Module: kamailio Branch: master Commit: 907f213cfc93d860a30b839ab4f1ce1690b358ac URL:
https://github.com/kamailio/kamailio/commit/907f213cfc93d860a30b839ab4f1ce1…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-22T10:36:06+01:00 rtpproxy: add fixup_free* to exported functions --- Modified: src/modules/rtpproxy/rtpproxy.c Modified: src/modules/rtpproxy/rtpproxy_stream.c Modified: src/modules/rtpproxy/rtpproxy_stream.h --- Diff:
https://github.com/kamailio/kamailio/commit/907f213cfc93d860a30b839ab4f1ce1…
Patch:
https://github.com/kamailio/kamailio/commit/907f213cfc93d860a30b839ab4f1ce1…
--- diff --git a/src/modules/rtpproxy/rtpproxy.c b/src/modules/rtpproxy/rtpproxy.c index 57f4f4b05e5..6d358d73d46 100644 --- a/src/modules/rtpproxy/rtpproxy.c +++ b/src/modules/rtpproxy/rtpproxy.c @@ -134,6 +134,7 @@ static int rtpproxy_manage2(struct sip_msg *msg, char *flags, char *ip); static int add_rtpproxy_socks(struct rtpp_set *rtpp_list, char *rtpproxy); static int fixup_set_id(void **param, int param_no); +static int fixup_free_set_id(void **param, int param_no); static int set_rtp_proxy_set_f(struct sip_msg *msg, char *str1, char *str2); static struct rtpp_set *select_rtpp_set(int id_set); @@ -194,28 +195,28 @@ static pv_elem_t *extra_id_pv = NULL; /* clang-format off */ static cmd_export_t cmds[] = { {"set_rtp_proxy_set", (cmd_function)set_rtp_proxy_set_f, 1, - fixup_set_id, 0, ANY_ROUTE}, + fixup_set_id, fixup_free_set_id, ANY_ROUTE}, {"unforce_rtp_proxy", (cmd_function)unforce_rtp_proxy1_f, 0, 0, 0, ANY_ROUTE}, {"rtpproxy_destroy", (cmd_function)unforce_rtp_proxy1_f, 0, 0, 0, ANY_ROUTE}, {"unforce_rtp_proxy", (cmd_function)unforce_rtp_proxy1_f, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"rtpproxy_destroy", (cmd_function)unforce_rtp_proxy1_f, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"start_recording", (cmd_function)start_recording_f, 0, 0, 0, ANY_ROUTE}, {"rtpproxy_offer", (cmd_function)rtpproxy_offer1_f, 0, 0, 0, ANY_ROUTE}, {"rtpproxy_offer", (cmd_function)rtpproxy_offer1_f, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"rtpproxy_offer", (cmd_function)rtpproxy_offer2_f, 2, - fixup_spve_spve, 0, ANY_ROUTE}, + fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE}, {"rtpproxy_answer", (cmd_function)rtpproxy_answer1_f, 0, 0, 0, ANY_ROUTE}, {"rtpproxy_answer", (cmd_function)rtpproxy_answer1_f, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"rtpproxy_answer", (cmd_function)rtpproxy_answer2_f, 2, - fixup_spve_spve, 0, ANY_ROUTE}, + fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE}, {"rtpproxy_stream2uac", (cmd_function)rtpproxy_stream2uac2_f, 2, - fixup_var_str_int, 0, ANY_ROUTE}, + fixup_var_str_int, fixup_free_var_str_int, ANY_ROUTE}, {"rtpproxy_stream2uas", (cmd_function)rtpproxy_stream2uas2_f, 2, - fixup_var_str_int, 0, ANY_ROUTE}, + fixup_var_str_int, fixup_free_var_str_int, ANY_ROUTE}, {"rtpproxy_stop_stream2uac", (cmd_function)rtpproxy_stop_stream2uac2_f, 0, 0, 0, ANY_ROUTE}, {"rtpproxy_stop_stream2uas", (cmd_function)rtpproxy_stop_stream2uas2_f, 0, 0, 0, ANY_ROUTE}, {"rtpproxy_manage", (cmd_function)rtpproxy_manage0, 0, 0, 0, ANY_ROUTE}, @@ -553,6 +554,12 @@ static int fixup_set_id(void **param, int param_no) return 0; } +static int fixup_free_set_id(void **param, int param_no) +{ + pkg_free(*param); + return 0; +} + static void rtpproxy_rpc_enable(rpc_t *rpc, void *ctx) { str rtpp_url; diff --git a/src/modules/rtpproxy/rtpproxy_stream.c b/src/modules/rtpproxy/rtpproxy_stream.c index 625a8e7f368..da02d00e3fc 100644 --- a/src/modules/rtpproxy/rtpproxy_stream.c +++ b/src/modules/rtpproxy/rtpproxy_stream.c @@ -70,6 +70,14 @@ int fixup_var_str_int(void **param, int param_no) return 0; } +int fixup_free_var_str_int(void **param, int param_no) +{ + if(param_no == 1) { + pv_elem_free_all(*param); + } + return 0; +} + int rtpproxy_stream(struct sip_msg *msg, str *pname, int count, int stream2uac) { int nitems; diff --git a/src/modules/rtpproxy/rtpproxy_stream.h b/src/modules/rtpproxy/rtpproxy_stream.h index 377cac4279e..b5fd6bb9a4d 100644 --- a/src/modules/rtpproxy/rtpproxy_stream.h +++ b/src/modules/rtpproxy/rtpproxy_stream.h @@ -29,6 +29,7 @@ #define _RTPPROXY_STREAM_H int fixup_var_str_int(void **, int); +int fixup_free_var_str_int(void **, int); int rtpproxy_stream(struct sip_msg *msg, str *pname, int count, int stream2uac); int rtpproxy_stream2uac2_f(struct sip_msg *, char *, char *); int rtpproxy_stream2uas2_f(struct sip_msg *, char *, char *);
2 days, 23 hours
1
0
0
0
git:master:d5d19c6f: rtpproxy: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: d5d19c6f0ca1f032d29c851a5c6054b32ff218a5 URL:
https://github.com/kamailio/kamailio/commit/d5d19c6f0ca1f032d29c851a5c6054b…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-22T10:27:22+01:00 rtpproxy: reformat exported structures --- Modified: src/modules/rtpproxy/rtpproxy.c --- Diff:
https://github.com/kamailio/kamailio/commit/d5d19c6f0ca1f032d29c851a5c6054b…
Patch:
https://github.com/kamailio/kamailio/commit/d5d19c6f0ca1f032d29c851a5c6054b…
2 days, 23 hours
1
0
0
0
git:master:1723be18: sanity: add fixup_free* to exported functions
by Victor Seva
Module: kamailio Branch: master Commit: 1723be183f21fd3225153367a75ed9ab824ad7ec URL:
https://github.com/kamailio/kamailio/commit/1723be183f21fd3225153367a75ed9a…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-22T10:22:04+01:00 sanity: add fixup_free* to exported functions --- Modified: src/modules/sanity/sanity_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/1723be183f21fd3225153367a75ed9a…
Patch:
https://github.com/kamailio/kamailio/commit/1723be183f21fd3225153367a75ed9a…
--- diff --git a/src/modules/sanity/sanity_mod.c b/src/modules/sanity/sanity_mod.c index 09dcdb23d43..e55d05f3144 100644 --- a/src/modules/sanity/sanity_mod.c +++ b/src/modules/sanity/sanity_mod.c @@ -58,9 +58,9 @@ 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}, + fixup_igp_null, fixup_free_igp_null, REQUEST_ROUTE | ONREPLY_ROUTE}, {"sanity_check", (cmd_function)w_sanity_check, 2, - fixup_igp_igp, 0, REQUEST_ROUTE | ONREPLY_ROUTE}, + fixup_igp_igp, fixup_free_igp_igp, 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},
2 days, 23 hours
1
0
0
0
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 days, 23 hours
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 days, 23 hours
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 days, 23 hours
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 days, 23 hours
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 days, 23 hours
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 days, 23 hours
1
0
0
0
← Newer
1
2
3
4
5
6
7
8
...
31
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
Results per page:
10
25
50
100
200