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
18 participants
313 discussions
Start a n
N
ew thread
git:master:50e48d73: speeddial: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: 50e48d73df63a002d42fc1446ac90949475276aa URL:
https://github.com/kamailio/kamailio/commit/50e48d73df63a002d42fc1446ac9094…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-21T19:21:53+01:00 speeddial: reformat exported structures --- Modified: src/modules/speeddial/speeddial.c --- Diff:
https://github.com/kamailio/kamailio/commit/50e48d73df63a002d42fc1446ac9094…
Patch:
https://github.com/kamailio/kamailio/commit/50e48d73df63a002d42fc1446ac9094…
--- diff --git a/src/modules/speeddial/speeddial.c b/src/modules/speeddial/speeddial.c index 6b7252e0e33..0b1b66523d3 100644 --- a/src/modules/speeddial/speeddial.c +++ b/src/modules/speeddial/speeddial.c @@ -63,40 +63,41 @@ str dstrip_s = {NULL, 0}; db_func_t db_funcs; /* Database functions */ db1_con_t *db_handle = 0; /* Database connection handle */ - +/* clang-format off */ /* Exported functions */ -static cmd_export_t cmds[] = {{"sd_lookup", (cmd_function)w_sd_lookup, 1, - fixup_spve_null, 0, REQUEST_ROUTE}, - {"sd_lookup", (cmd_function)w_sd_lookup, 2, fixup_spve_spve, 0, - REQUEST_ROUTE}, - {0, 0, 0, 0, 0, 0}}; - +static cmd_export_t cmds[] = { + {"sd_lookup", (cmd_function)w_sd_lookup, 1, fixup_spve_null, 0, REQUEST_ROUTE}, + {"sd_lookup", (cmd_function)w_sd_lookup, 2, fixup_spve_spve, 0, REQUEST_ROUTE}, + {0, 0, 0, 0, 0, 0} +}; /* Exported parameters */ -static param_export_t params[] = {{"db_url", PARAM_STR, &db_url}, - {"user_column", PARAM_STR, &user_column}, - {"domain_column", PARAM_STR, &domain_column}, - {"sd_user_column", PARAM_STR, &sd_user_column}, - {"sd_domain_column", PARAM_STR, &sd_domain_column}, - {"new_uri_column", PARAM_STR, &new_uri_column}, - {"use_domain", PARAM_INT, &use_domain}, - {"domain_prefix", PARAM_STR, &domain_prefix}, {0, 0, 0}}; - +static param_export_t params[] = { + {"db_url", PARAM_STR, &db_url}, + {"user_column", PARAM_STR, &user_column}, + {"domain_column", PARAM_STR, &domain_column}, + {"sd_user_column", PARAM_STR, &sd_user_column}, + {"sd_domain_column", PARAM_STR, &sd_domain_column}, + {"new_uri_column", PARAM_STR, &new_uri_column}, + {"use_domain", PARAM_INT, &use_domain}, + {"domain_prefix", PARAM_STR, &domain_prefix}, + {0, 0, 0} +}; /* Module interface */ struct module_exports exports = { - "speeddial", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* exported functions */ - params, /* exported parameters */ - 0, /* exported RPC functions */ - 0, /* exported pseudo-variables */ - 0, /* response function */ - mod_init, /* module initialization function */ - child_init, /* child initialization function */ - destroy /* destroy function */ + "speeddial", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + 0, /* exported rpc functions */ + 0, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module init function */ + child_init, /* per-child init function */ + destroy /* module destroy function */ }; - +/* clang-format on */ /** *
3 days, 20 hours
1
0
0
0
git:master:dce9c2a5: sqlops: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: dce9c2a572ff1f1be1e4d97ff083a1c2f0fc773c URL:
https://github.com/kamailio/kamailio/commit/dce9c2a572ff1f1be1e4d97ff083a1c…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-21T19:20:03+01:00 sqlops: reformat exported structures --- Modified: src/modules/sqlops/sqlops.c --- Diff:
https://github.com/kamailio/kamailio/commit/dce9c2a572ff1f1be1e4d97ff083a1c…
Patch:
https://github.com/kamailio/kamailio/commit/dce9c2a572ff1f1be1e4d97ff083a1c…
--- diff --git a/src/modules/sqlops/sqlops.c b/src/modules/sqlops/sqlops.c index 7db7303851f..fbf8c3e2b7c 100644 --- a/src/modules/sqlops/sqlops.c +++ b/src/modules/sqlops/sqlops.c @@ -81,53 +81,53 @@ int sqlops_log_buf_size = 128; static int sqlops_connect_mode = 0; +/* clang-format off */ static pv_export_t mod_pvs[] = { - {{"dbr", sizeof("dbr") - 1}, PVT_OTHER, pv_get_dbr, 0, - pv_parse_dbr_name, 0, 0, 0}, - {{"sqlrows", sizeof("sqlrows") - 1}, PVT_OTHER, pv_get_sqlrows, 0, - pv_parse_con_name, 0, 0, 0}, - {{0, 0}, 0, 0, 0, 0, 0, 0, 0}}; - -static cmd_export_t cmds[] = {{"sql_query", (cmd_function)sql_query, 3, - fixup_sql_query, 0, ANY_ROUTE}, - {"sql_query", (cmd_function)sql_query2, 2, fixup_sql_query, 0, - ANY_ROUTE}, - {"sql_query_async", (cmd_function)sql_query_async, 2, fixup_sql_query, - 0, ANY_ROUTE}, - {"sql_xquery", (cmd_function)sql_xquery, 3, fixup_sql_xquery, 0, - ANY_ROUTE}, - {"sql_pvquery", (cmd_function)sql_pvquery, 3, fixup_sql_pvquery, 0, - ANY_ROUTE}, - {"sql_result_free", (cmd_function)sql_rfree, 1, fixup_sql_rfree, 0, - ANY_ROUTE}, - {"bind_sqlops", (cmd_function)bind_sqlops, 0, 0, 0, 0}, - {0, 0, 0, 0, 0, 0}}; + {{"dbr", sizeof("dbr") - 1}, PVT_OTHER, pv_get_dbr, 0, pv_parse_dbr_name, 0, 0, 0}, + {{"sqlrows", sizeof("sqlrows") - 1}, PVT_OTHER, pv_get_sqlrows, 0, pv_parse_con_name, 0, 0, 0}, + {{0, 0}, 0, 0, 0, 0, 0, 0, 0} +}; + +static cmd_export_t cmds[] = { + {"sql_query", (cmd_function)sql_query, 3, fixup_sql_query, 0, ANY_ROUTE}, + {"sql_query", (cmd_function)sql_query2, 2, fixup_sql_query, 0, ANY_ROUTE}, + {"sql_query_async", (cmd_function)sql_query_async, 2, fixup_sql_query, 0, ANY_ROUTE}, + {"sql_xquery", (cmd_function)sql_xquery, 3, fixup_sql_xquery, 0, ANY_ROUTE}, + {"sql_pvquery", (cmd_function)sql_pvquery, 3, fixup_sql_pvquery, 0, ANY_ROUTE}, + {"sql_result_free", (cmd_function)sql_rfree, 1, fixup_sql_rfree, 0, ANY_ROUTE}, + {"bind_sqlops", (cmd_function)bind_sqlops, 0, 0, 0, 0}, + {0, 0, 0, 0, 0, 0} +}; static param_export_t params[] = { - {"sqlcon", PARAM_STRING | PARAM_USE_FUNC, (void *)sql_con_param}, - {"sqlres", PARAM_STRING | PARAM_USE_FUNC, (void *)sql_res_param}, - {"tr_buf_size", PARAM_INT, &sqlops_tr_buf_size}, - {"log_buf_size", PARAM_INT, &sqlops_log_buf_size}, - {"connect_mode", PARAM_INT, &sqlops_connect_mode}, - {"results_maxsize", PARAM_INT, &sqlops_results_maxsize}, {0, 0, 0}}; + {"sqlcon", PARAM_STRING | PARAM_USE_FUNC, (void *)sql_con_param}, + {"sqlres", PARAM_STRING | PARAM_USE_FUNC, (void *)sql_res_param}, + {"tr_buf_size", PARAM_INT, &sqlops_tr_buf_size}, + {"log_buf_size", PARAM_INT, &sqlops_log_buf_size}, + {"connect_mode", PARAM_INT, &sqlops_connect_mode}, + {"results_maxsize", PARAM_INT, &sqlops_results_maxsize}, + {0, 0, 0} +}; static tr_export_t mod_trans[] = { - {{"sql", sizeof("sql") - 1}, tr_parse_sql}, {{0, 0}, 0}}; - + {{"sql", sizeof("sql") - 1}, tr_parse_sql}, + {{0, 0}, 0} +}; /** module exports */ struct module_exports exports = { - "sqlops", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* exported functions */ - params, /* exported parameters */ - 0, /* exported rpc functions */ - mod_pvs, /* exported pseudo-variables */ - 0, /* response handling function */ - mod_init, /* module init function */ - child_init, /* per-child init function */ - destroy /* module destroy function */ + "sqlops", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + 0, /* exported rpc functions */ + mod_pvs, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module init function */ + child_init, /* per-child init function */ + destroy /* module destroy function */ }; +/* clang-format on */ static int mod_init(void) {
3 days, 20 hours
1
0
0
0
git:master:7cda9086: ss7ops: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: 7cda90863c5437fab97d14772921105a169965da URL:
https://github.com/kamailio/kamailio/commit/7cda90863c5437fab97d14772921105…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-21T19:19:50+01:00 ss7ops: reformat exported structures --- Modified: src/modules/ss7ops/ss7ops_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/7cda90863c5437fab97d14772921105…
Patch:
https://github.com/kamailio/kamailio/commit/7cda90863c5437fab97d14772921105…
--- diff --git a/src/modules/ss7ops/ss7ops_mod.c b/src/modules/ss7ops/ss7ops_mod.c index 8772ff56b6b..201f5129bfb 100644 --- a/src/modules/ss7ops/ss7ops_mod.c +++ b/src/modules/ss7ops/ss7ops_mod.c @@ -67,15 +67,6 @@ static int w_isup_to_json(struct sip_msg *_m, char *param1, char *param2); static int pv_get_isup(struct sip_msg *msg, pv_param_t *param, pv_value_t *res); static int pv_parse_isup_name(pv_spec_p sp, str *in); -static cmd_export_t cmds[] = { - {"isup_to_json", (cmd_function)w_isup_to_json, 1, 0, 0, ANY_ROUTE}, - {0, 0, 0, 0, 0, 0}}; - -static pv_export_t mod_pvs[] = { - {{"isup", sizeof("isup") - 1}, PVT_OTHER, pv_get_isup, 0, - pv_parse_isup_name, 0, 0, 0}, - {{0, 0}, 0, 0, 0, 0, 0, 0, 0}}; - static int mod_init(void) { LM_DBG("ss7 module\n"); @@ -87,18 +78,30 @@ static void destroy(void) LM_DBG("Destroying ss7 module\n"); } +/* clang-format off */ +static cmd_export_t cmds[] = { + {"isup_to_json", (cmd_function)w_isup_to_json, 1, 0, 0, ANY_ROUTE}, + {0, 0, 0, 0, 0, 0} +}; + +static pv_export_t mod_pvs[] = { + {{"isup", sizeof("isup") - 1}, PVT_OTHER, pv_get_isup, 0, pv_parse_isup_name, 0, 0, 0}, + {{0, 0}, 0, 0, 0, 0, 0, 0, 0} +}; + struct module_exports exports = { - "ss7", /*!< module name */ - DEFAULT_DLFLAGS, /*!< dlopen flags */ - cmds, /*!< exported functions */ - 0, /*!< exported parameters */ - 0, /*!< exported rpc functions */ - mod_pvs, /*!< exported pseudo-variables */ - 0, /*!< response handling function */ - mod_init, /*!< module init function */ - 0, /*!< child init function */ - destroy /*!< module destroy function */ + "ss7", /*!< module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + 0, /* exported parameters */ + 0, /* exported rpc functions */ + mod_pvs, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module init function */ + 0, /* per-child init function */ + destroy /* module destroy function */ }; +/* clang-format on */ static const uint8_t *extract_from_m2ua(const uint8_t *data, size_t *len) {
3 days, 20 hours
1
0
0
0
git:master:2187dcea: sst: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: 2187dceadca36e443b8830cca15781d92aa13382 URL:
https://github.com/kamailio/kamailio/commit/2187dceadca36e443b8830cca15781d…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-21T19:09:08+01:00 sst: reformat exported structures --- Modified: src/modules/sst/sst.c --- Diff:
https://github.com/kamailio/kamailio/commit/2187dceadca36e443b8830cca15781d…
Patch:
https://github.com/kamailio/kamailio/commit/2187dceadca36e443b8830cca15781d…
--- diff --git a/src/modules/sst/sst.c b/src/modules/sst/sst.c index e52081953b6..f725bd127f8 100644 --- a/src/modules/sst/sst.c +++ b/src/modules/sst/sst.c @@ -97,43 +97,50 @@ static int sst_flag = -1; struct dlg_binds dialog_st; struct dlg_binds *dlg_binds = &dialog_st; +/* clang-format off */ /* * Script commands we export. */ -static cmd_export_t cmds[] = {{"sstCheckMin", (cmd_function)sst_check_min, 1, 0, - 0, REQUEST_ROUTE | ONREPLY_ROUTE}, - {0, 0, 0, 0, 0, 0}}; +static cmd_export_t cmds[] = { + {"sstCheckMin", (cmd_function)sst_check_min, 1, 0, 0, REQUEST_ROUTE | ONREPLY_ROUTE}, + {0, 0, 0, 0, 0, 0} +}; /* * Script parameters */ static param_export_t mod_params[] = { - {"enable_stats", PARAM_INT, &sst_enable_stats}, - {"min_se", PARAM_INT, &sst_minSE}, - {"timeout_avp", PARAM_STRING, &timeout_spec}, - {"reject_to_small", PARAM_INT, &sst_reject}, - {"sst_flag", PARAM_INT, &sst_flag}, {0, 0, 0}}; + {"enable_stats", PARAM_INT, &sst_enable_stats}, + {"min_se", PARAM_INT, &sst_minSE}, + {"timeout_avp", PARAM_STRING, &timeout_spec}, + {"reject_to_small", PARAM_INT, &sst_reject}, + {"sst_flag", PARAM_INT, &sst_flag}, + {0, 0, 0} +}; #ifdef STATISTICS /* * Export the statistics we have */ static stat_export_t mod_stats[] = { - {"expired_sst", 0, &expired_sst}, {0, 0, 0}}; + {"expired_sst", 0, &expired_sst}, + {0, 0, 0} +}; #endif /* STATISTICS */ struct module_exports exports = { - "sst", /* module's name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* exported functions */ - mod_params, /* param exports */ - 0, /* RPC method exports */ - 0, /* exported pseudo-variables */ - 0, /* reply processing function */ - mod_init, /* module initialization function */ - 0, /* per-child init function */ - 0 /* Destroy function */ + "sst", /* module's name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + mod_params, /* exported parameters */ + 0, /* exported rpc functions */ + 0, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module init function */ + 0, /* per-child init function */ + 0 /* module destroy function */ }; +/* clang-format on */ /** * The initialization function, called when the module is loaded by
3 days, 20 hours
1
0
0
0
git:master:b41ff44d: statistics: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: b41ff44d27968d07d926ecd4de249f0e8a51ddd7 URL:
https://github.com/kamailio/kamailio/commit/b41ff44d27968d07d926ecd4de249f0…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-21T19:09:07+01:00 statistics: reformat exported structures --- Modified: src/modules/statistics/statistics.c --- Diff:
https://github.com/kamailio/kamailio/commit/b41ff44d27968d07d926ecd4de249f0…
Patch:
https://github.com/kamailio/kamailio/commit/b41ff44d27968d07d926ecd4de249f0…
--- diff --git a/src/modules/statistics/statistics.c b/src/modules/statistics/statistics.c index 30e0afd4bde..1800a275259 100644 --- a/src/modules/statistics/statistics.c +++ b/src/modules/statistics/statistics.c @@ -64,32 +64,32 @@ struct long_or_pv pv_spec_t *pv; }; - -static cmd_export_t cmds[] = {{"update_stat", (cmd_function)w_update_stat, 2, - fixup_stat, 0, ANY_ROUTE}, - {"reset_stat", (cmd_function)w_reset_stat, 1, fixup_stat, 0, - REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE - | LOCAL_ROUTE}, - {0, 0, 0, 0, 0, 0}}; +/* clang-format off */ +static cmd_export_t cmds[] = { + {"update_stat", (cmd_function)w_update_stat, 2, fixup_stat, 0, ANY_ROUTE}, + {"reset_stat", (cmd_function)w_reset_stat, 1, fixup_stat, 0, + REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE | LOCAL_ROUTE}, + {0, 0, 0, 0, 0, 0} +}; static param_export_t mod_params[] = { - {"variable", PARAM_STRING | PARAM_USE_FUNC, (void *)reg_param_stat}, - {0, 0, 0}}; - + {"variable", PARAM_STRING | PARAM_USE_FUNC, (void *)reg_param_stat}, + {0, 0, 0} +}; struct module_exports exports = { - "statistics", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* exported functions */ - mod_params, /* exported parameters */ - 0, /* exported rpc functions */ - 0, /* exported pseudo-variables */ - 0, /* reply processing function */ - mod_init, /* module init function */ - 0, /* per-child init function */ - 0 /* module destroy function */ + "statistics", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + mod_params, /* exported parameters */ + 0, /* exported rpc functions */ + 0, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module init function */ + 0, /* per-child init function */ + 0 /* module destroy function */ }; - +/* clang-format on */ static int reg_param_stat(modparam_t type, void *val) {
3 days, 20 hours
1
0
0
0
git:master:e3af304a: statsc: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: e3af304a0284302d68fd4b3206a93c8e00999b4b URL:
https://github.com/kamailio/kamailio/commit/e3af304a0284302d68fd4b3206a93c8…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-21T19:09:07+01:00 statsc: reformat exported structures --- Modified: src/modules/statsc/statsc_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/e3af304a0284302d68fd4b3206a93c8…
Patch:
https://github.com/kamailio/kamailio/commit/e3af304a0284302d68fd4b3206a93c8…
--- diff --git a/src/modules/statsc/statsc_mod.c b/src/modules/statsc/statsc_mod.c index 8800018487f..bd16bfe23f2 100644 --- a/src/modules/statsc/statsc_mod.c +++ b/src/modules/statsc/statsc_mod.c @@ -52,29 +52,32 @@ static int child_init(int); static void mod_destroy(void); static int w_statsc_reset(sip_msg_t *msg, char *p1, char *p2); - +/* clang-format off */ static cmd_export_t cmds[] = { - {"statsc_reset", (cmd_function)w_statsc_reset, 0, 0, 0, ANY_ROUTE}, - {0, 0, 0, 0, 0, 0}}; + {"statsc_reset", (cmd_function)w_statsc_reset, 0, 0, 0, ANY_ROUTE}, + {0, 0, 0, 0, 0, 0} +}; static param_export_t params[] = { - {"track", PARAM_STRING | PARAM_USE_FUNC, (void *)statsc_track_param}, - {"interval", PARAM_INT, &statsc_interval}, - {"items", PARAM_INT, &statsc_items}, {0, 0, 0}}; + {"track", PARAM_STRING | PARAM_USE_FUNC, (void *)statsc_track_param}, + {"interval", PARAM_INT, &statsc_interval}, + {"items", PARAM_INT, &statsc_items}, + {0, 0, 0} +}; struct module_exports exports = { - "statsc", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* cmd exports */ - params, /* param exports */ - 0, /* exported RPC methods */ - 0, /* exported pseudo-variables */ - 0, /* response function */ - mod_init, /* module initialization function */ - child_init, /* per child init function */ - mod_destroy /* destroy function */ + "statsc", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + 0, /* exported rpc functions */ + 0, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module init function */ + child_init, /* per-child init function */ + mod_destroy /* module destroy function */ }; - +/* clang-format on */ typedef struct statsc_nmap {
3 days, 20 hours
1
0
0
0
git:master:ee12cb5a: stun: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: ee12cb5a87f67ab32a219c1bc3a0b877dfc334a7 URL:
https://github.com/kamailio/kamailio/commit/ee12cb5a87f67ab32a219c1bc3a0b87…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-21T19:09:07+01:00 stun: reformat exported structures --- Modified: src/modules/stun/stun_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/ee12cb5a87f67ab32a219c1bc3a0b87…
Patch:
https://github.com/kamailio/kamailio/commit/ee12cb5a87f67ab32a219c1bc3a0b87…
--- diff --git a/src/modules/stun/stun_mod.c b/src/modules/stun/stun_mod.c index f347f9117c7..efba758fcb6 100644 --- a/src/modules/stun/stun_mod.c +++ b/src/modules/stun/stun_mod.c @@ -36,18 +36,20 @@ MODULE_VERSION static int mod_init(void); static int stun_msg_receive(sr_event_param_t *evp); +/* clang-format off */ struct module_exports exports = { - "stun", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - 0, /* exported functions */ - 0, /* exported parameters */ - 0, /* exported RPC functions */ - 0, /* exported pseudo-variables */ - 0, /* response function */ - mod_init, /* module initialization function */ - 0, /* per-child initialization function */ - 0 /* destroy function */ + "stun", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + 0, /* exported functions */ + 0, /* exported parameters */ + 0, /* exported rpc functions */ + 0, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module init function */ + 0, /* per-child init function */ + 0 /* module destroy function */ }; +/* clang-format on */ static int mod_init(void) {
3 days, 20 hours
1
0
0
0
git:master:2edf111e: systemdops: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: 2edf111e73c6a8a640d932c42cfc59ab14dd74b2 URL:
https://github.com/kamailio/kamailio/commit/2edf111e73c6a8a640d932c42cfc59a…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-21T19:09:07+01:00 systemdops: reformat exported structures --- Modified: src/modules/systemdops/systemdops_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/2edf111e73c6a8a640d932c42cfc59a…
Patch:
https://github.com/kamailio/kamailio/commit/2edf111e73c6a8a640d932c42cfc59a…
--- diff --git a/src/modules/systemdops/systemdops_mod.c b/src/modules/systemdops/systemdops_mod.c index dca86bd5087..d3d4b93eb60 100644 --- a/src/modules/systemdops/systemdops_mod.c +++ b/src/modules/systemdops/systemdops_mod.c @@ -34,18 +34,20 @@ MODULE_VERSION +/* clang-format off */ struct module_exports exports = { - "systemdops", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - 0, /* cmd (cfg function) exports */ - 0, /* param exports */ - 0, /* RPC method exports */ - 0, /* pseudo-variables exports */ - 0, /* response handling function */ - 0, /* module init function */ - 0, /* per-child init function */ - 0 /* module destroy function */ + "systemdops", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + 0, /* exported functions */ + 0, /* 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 */ /** *
3 days, 20 hours
1
0
0
0
git:master:00d95171: textops: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: 00d95171dd15fbbe541027a64d08c32ef55dc605 URL:
https://github.com/kamailio/kamailio/commit/00d95171dd15fbbe541027a64d08c32…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-21T19:09:07+01:00 textops: reformat exported structures --- Modified: src/modules/textops/textops.c --- Diff:
https://github.com/kamailio/kamailio/commit/00d95171dd15fbbe541027a64d08c32…
Patch:
https://github.com/kamailio/kamailio/commit/00d95171dd15fbbe541027a64d08c32…
3 days, 20 hours
1
0
0
0
git:master:98f0a2c8: permissions: disable destroy of internal hash tables on mod-destroy callback
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 98f0a2c8b17bcf0f54a183589c2b61a8fd47081f URL:
https://github.com/kamailio/kamailio/commit/98f0a2c8b17bcf0f54a183589c2b61a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2024-11-21T18:58:16+01:00 permissions: disable destroy of internal hash tables on mod-destroy callback - it is safer and faster to be removed at once by core or OS when application context is destroyed --- Modified: src/modules/permissions/permissions.c --- Diff:
https://github.com/kamailio/kamailio/commit/98f0a2c8b17bcf0f54a183589c2b61a…
Patch:
https://github.com/kamailio/kamailio/commit/98f0a2c8b17bcf0f54a183589c2b61a…
--- diff --git a/src/modules/permissions/permissions.c b/src/modules/permissions/permissions.c index ae1a5bc76ec..96b2b85b4be 100644 --- a/src/modules/permissions/permissions.c +++ b/src/modules/permissions/permissions.c @@ -746,9 +746,11 @@ static void mod_exit(void) pkg_free(perm_deny[i].filename); } +#if 0 clean_trusted(); clean_addresses(); +#endif }
3 days, 21 hours
1
0
0
0
← Newer
1
...
6
7
8
9
10
11
12
...
32
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
Results per page:
10
25
50
100
200