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
June
May
April
March
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
----- 2025 -----
June 2025
May 2025
April 2025
March 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
22 participants
45190 discussions
Start a n
N
ew thread
git:master:6b603c58: matrix: reformat exported structures
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 6b603c58be614fdf3798f29bff8dd8b5ebd4653e URL:
https://github.com/kamailio/kamailio/commit/6b603c58be614fdf3798f29bff8dd8b…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T17:13:29+01:00 matrix: reformat exported structures --- Modified: src/modules/matrix/matrix.c --- Diff:
https://github.com/kamailio/kamailio/commit/6b603c58be614fdf3798f29bff8dd8b…
Patch:
https://github.com/kamailio/kamailio/commit/6b603c58be614fdf3798f29bff8dd8b…
--- diff --git a/src/modules/matrix/matrix.c b/src/modules/matrix/matrix.c index d23369b7e12..271ab482c05 100644 --- a/src/modules/matrix/matrix.c +++ b/src/modules/matrix/matrix.c @@ -85,29 +85,33 @@ static int mod_init(void); static int child_init(int rank); static void mod_destroy(void); - +/* clang-format off */ static cmd_export_t cmds[] = { - {"matrix", (cmd_function)lookup_matrix, 3, matrix_fixup, 0, - REQUEST_ROUTE | FAILURE_ROUTE}, - {0, 0, 0, 0, 0, 0}}; - + {"matrix", (cmd_function)lookup_matrix, 3, + matrix_fixup, 0, REQUEST_ROUTE | FAILURE_ROUTE}, + {0, 0, 0, 0, 0, 0} + }; static param_export_t params[] = { - matrix_DB_URL matrix_DB_TABLE matrix_DB_COLS{0, 0, 0}}; - + matrix_DB_URL + matrix_DB_TABLE + matrix_DB_COLS + {0, 0, 0} +}; struct module_exports exports = { - "matrix", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* cmd (cfg function) exports */ - params, /* param exports */ - 0, /* RPC method exports */ - 0, /* pseudo-variables exports */ - 0, /* response handling function */ - mod_init, /* module init function */ - child_init, /* per-child init function */ - mod_destroy /* module destroy function */ + "matrix", /* 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 */ + child_init, /* per-child init function */ + mod_destroy /* module destroy function */ }; +/* clang-format on */ struct first_t
1
0
0
0
git:master:bb85dd83: maxfwd: reformat exported structures
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: bb85dd83c0ecd9877dd8dd8ad61fb38aa308c0ee URL:
https://github.com/kamailio/kamailio/commit/bb85dd83c0ecd9877dd8dd8ad61fb38…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T17:11:11+01:00 maxfwd: reformat exported structures --- Modified: src/modules/maxfwd/maxfwd.c --- Diff:
https://github.com/kamailio/kamailio/commit/bb85dd83c0ecd9877dd8dd8ad61fb38…
Patch:
https://github.com/kamailio/kamailio/commit/bb85dd83c0ecd9877dd8dd8ad61fb38…
--- diff --git a/src/modules/maxfwd/maxfwd.c b/src/modules/maxfwd/maxfwd.c index 25e1d184a8c..1ddd162d20d 100644 --- a/src/modules/maxfwd/maxfwd.c +++ b/src/modules/maxfwd/maxfwd.c @@ -40,6 +40,12 @@ MODULE_VERSION +static int w_process_maxfwd_header(struct sip_msg *msg, char *str, char *str2); +static int is_maxfwd_lt(struct sip_msg *msg, char *slimit, char *foo); +static int mod_init(void); + +int bind_maxfwd(maxfwd_api_t *api); + /* clang-format off */ struct cfg_group_maxfwd { int max_limit; @@ -52,16 +58,10 @@ static struct cfg_group_maxfwd default_maxfwd_cfg = { static void *maxfwd_cfg = &default_maxfwd_cfg; static cfg_def_t maxfwd_cfg_def[] = { - {"max_limit", CFG_VAR_INT, 0, 255, 0, 0, "Max. maxfwd limit"}, - {0, 0, 0, 0, 0, 0} + {"max_limit", CFG_VAR_INT, 0, 255, 0, 0, "Max. maxfwd limit"}, + {0, 0, 0, 0, 0, 0} }; -static int w_process_maxfwd_header(struct sip_msg* msg,char* str,char* str2); -static int is_maxfwd_lt(struct sip_msg *msg, char *slimit, char *foo); -static int mod_init(void); - -int bind_maxfwd(maxfwd_api_t *api); - static cmd_export_t cmds[]={ {"maxfwd_process", (cmd_function)w_process_maxfwd_header, 1, fixup_var_int_1, 0, REQUEST_ROUTE}, @@ -69,7 +69,6 @@ static cmd_export_t cmds[]={ fixup_var_int_1, 0, REQUEST_ROUTE}, {"process_maxfwd", (cmd_function)w_process_maxfwd_header, 1, fixup_var_int_1, 0, REQUEST_ROUTE}, - {"is_maxfwd_lt", (cmd_function)is_maxfwd_lt, 1, fixup_var_int_1, 0, REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE}, {"maxfwd_at_least", (cmd_function)is_maxfwd_lt, 1, @@ -77,18 +76,15 @@ static cmd_export_t cmds[]={ {"mf_lowlimit", (cmd_function)is_maxfwd_lt, 1, fixup_var_int_1, 0, REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE}, - {"bind_maxfwd", (cmd_function)bind_maxfwd, 0, - 0, 0, 0}, + {"bind_maxfwd", (cmd_function)bind_maxfwd, 0, 0, 0, 0}, {0,0,0,0,0,0} }; static param_export_t params[]={ - {"max_limit", PARAM_INT, &default_maxfwd_cfg.max_limit}, + {"max_limit", PARAM_INT, &default_maxfwd_cfg.max_limit}, {0,0,0} }; - - struct module_exports exports= { "maxfwd", DEFAULT_DLFLAGS, /* dlopen flags */
1
0
0
0
git:master:f5161b71: mediaproxy: reformat exported structures
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: f5161b71a36c433370a44ec6ef2973c5f93aa8c1 URL:
https://github.com/kamailio/kamailio/commit/f5161b71a36c433370a44ec6ef2973c…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T17:08:13+01:00 mediaproxy: reformat exported structures --- Modified: src/modules/mediaproxy/mediaproxy.c --- Diff:
https://github.com/kamailio/kamailio/commit/f5161b71a36c433370a44ec6ef2973c…
Patch:
https://github.com/kamailio/kamailio/commit/f5161b71a36c433370a44ec6ef2973c…
--- diff --git a/src/modules/mediaproxy/mediaproxy.c b/src/modules/mediaproxy/mediaproxy.c index 36070006f83..0ef21a955b4 100644 --- a/src/modules/mediaproxy/mediaproxy.c +++ b/src/modules/mediaproxy/mediaproxy.c @@ -219,35 +219,42 @@ static AVP_Param media_relay_avp = {str_init(MEDIA_RELAY_AVP_SPEC), {0}, 0}; // The AVP where the ICE candidate priority is stored (if defined) static AVP_Param ice_candidate_avp = {str_init(ICE_CANDIDATE_AVP_SPEC), {0}, 0}; -static cmd_export_t commands[] = { - {"engage_media_proxy", (cmd_function)w_EngageMediaProxy, 0, 0, 0, - REQUEST_ROUTE | BRANCH_ROUTE}, - {"use_media_proxy", (cmd_function)w_UseMediaProxy, 0, 0, 0, ANY_ROUTE}, - {"end_media_session", (cmd_function)w_EndMediaSession, 0, 0, 0, - ANY_ROUTE}, - {0, 0, 0, 0, 0, 0}}; - -static param_export_t parameters[] = { - {"disable", PARAM_INT, &mediaproxy_disabled}, - {"mediaproxy_socket", PARAM_STRING, &(mediaproxy_socket.name)}, - {"mediaproxy_timeout", PARAM_INT, &(mediaproxy_socket.timeout)}, - {"signaling_ip_avp", PARAM_STR, &(signaling_ip_avp.spec)}, - {"media_relay_avp", PARAM_STR, &(media_relay_avp.spec)}, - {"ice_candidate", PARAM_STR, &(ice_candidate)}, - {"ice_candidate_avp", PARAM_STR, &(ice_candidate_avp.spec)}, {0, 0, 0}}; +/* clang-format off */ +static cmd_export_t cmds[] = { + {"engage_media_proxy", (cmd_function)w_EngageMediaProxy, 0, + 0, 0, REQUEST_ROUTE | BRANCH_ROUTE}, + {"use_media_proxy", (cmd_function)w_UseMediaProxy, 0, + 0, 0, ANY_ROUTE}, + {"end_media_session", (cmd_function)w_EndMediaSession, 0, + 0, 0, ANY_ROUTE}, + + {0, 0, 0, 0, 0, 0} +}; + +static param_export_t params[] = { + {"disable", PARAM_INT, &mediaproxy_disabled}, + {"mediaproxy_socket", PARAM_STRING, &(mediaproxy_socket.name)}, + {"mediaproxy_timeout", PARAM_INT, &(mediaproxy_socket.timeout)}, + {"signaling_ip_avp", PARAM_STR, &(signaling_ip_avp.spec)}, + {"media_relay_avp", PARAM_STR, &(media_relay_avp.spec)}, + {"ice_candidate", PARAM_STR, &(ice_candidate)}, + {"ice_candidate_avp", PARAM_STR, &(ice_candidate_avp.spec)}, + {0, 0, 0} +}; struct module_exports exports = { - "mediaproxy", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - commands, /* cmd (cfg function) exports */ - parameters, /* param exports */ - 0, /* RPC method exports */ - 0, /* pseudo-variables exports */ - 0, /* response handling function */ - mod_init, /* module init function */ - child_init, /* per-child init function */ - 0 /* module destroy function */ + "mediaproxy", /* 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 */ + child_init, /* per-child init function */ + 0 /* module destroy function */ }; +/* clang-format on */ // String processing functions
1
0
0
0
git:master:a47ebb63: memcached: reformat exported structures
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: a47ebb6349c40af7bbbc6dd90a3e8b05207c935c URL:
https://github.com/kamailio/kamailio/commit/a47ebb6349c40af7bbbc6dd90a3e8b0…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T17:04:34+01:00 memcached: reformat exported structures --- Modified: src/modules/memcached/memcached.c --- Diff:
https://github.com/kamailio/kamailio/commit/a47ebb6349c40af7bbbc6dd90a3e8b0…
Patch:
https://github.com/kamailio/kamailio/commit/a47ebb6349c40af7bbbc6dd90a3e8b0…
--- diff --git a/src/modules/memcached/memcached.c b/src/modules/memcached/memcached.c index 779b6ecceaf..bbb40a057b6 100644 --- a/src/modules/memcached/memcached.c +++ b/src/modules/memcached/memcached.c @@ -64,34 +64,48 @@ static void mod_destroy(void); /*! * Exported pseudo-variables */ +/* clang-format off */ static pv_export_t mod_pvs[] = { - {{"mct", sizeof("mct") - 1}, PVT_OTHER, pv_get_mcd_value, - pv_set_mcd_value, pv_parse_mcd_name, 0, 0, 0}, - {{"mcinc", sizeof("mcinc") - 1}, PVT_OTHER, pv_get_mcd_value, - pv_inc_mcd_value, pv_parse_mcd_name, 0, 0, 0}, - {{"mcdec", sizeof("mcdec") - 1}, PVT_OTHER, pv_get_mcd_value, - pv_dec_mcd_value, pv_parse_mcd_name, 0, 0, 0}, - {{"mctex", sizeof("mctex") - 1}, PVT_OTHER, pv_get_null, - pv_set_mcd_expire, pv_parse_mcd_name, 0, 0, 0}, - {{0, 0}, 0, 0, 0, 0, 0, 0, 0}}; - + {{"mct", sizeof("mct") - 1}, PVT_OTHER, pv_get_mcd_value, + pv_set_mcd_value, pv_parse_mcd_name, 0, 0, 0}, + {{"mcinc", sizeof("mcinc") - 1}, PVT_OTHER, pv_get_mcd_value, + pv_inc_mcd_value, pv_parse_mcd_name, 0, 0, 0}, + {{"mcdec", sizeof("mcdec") - 1}, PVT_OTHER, pv_get_mcd_value, + pv_dec_mcd_value, pv_parse_mcd_name, 0, 0, 0}, + {{"mctex", sizeof("mctex") - 1}, PVT_OTHER, pv_get_null, + pv_set_mcd_expire, pv_parse_mcd_name, 0, 0, 0}, + {{0, 0}, 0, 0, 0, 0, 0, 0, 0} +}; /*! * Exported parameters */ -static param_export_t params[] = {{"servers", PARAM_STRING, &mcd_srv_str}, - {"expire", PARAM_INT, &mcd_expire}, - {"timeout", PARAM_INT, &mcd_timeout}, {"mode", PARAM_INT, &mcd_mode}, - {"memory", PARAM_INT, &mcd_memory}, - {"stringify", PARAM_INT, &mcd_stringify}, {0, 0, 0}}; - +static param_export_t params[] = { + {"servers", PARAM_STRING, &mcd_srv_str}, + {"expire", PARAM_INT, &mcd_expire}, + {"timeout", PARAM_INT, &mcd_timeout}, + {"mode", PARAM_INT, &mcd_mode}, + {"memory", PARAM_INT, &mcd_memory}, + {"stringify", PARAM_INT, &mcd_stringify}, + {0, 0, 0} +}; /*! * Module interface */ -struct module_exports exports = {"memcached", DEFAULT_DLFLAGS, 0, params, 0, - mod_pvs, 0, mod_init, 0, mod_destroy}; - +struct module_exports exports = { + "memcached", + DEFAULT_DLFLAGS, /* dlopen flags */ + 0, /* exported functions */ + params, /* exported parameters */ + 0, /* RPC method exports */ + mod_pvs, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module initialization function */ + 0, /* per-child init function */ + mod_destroy /* module destroy function */ +}; +/* clang-format on */ /*! * \brief Wrapper functions around our internal memory management for libmemcached (version >= 0.38) callback
1
0
0
0
git:master:552b8397: microhttpd: add fixup_free* to exported functions
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 552b8397ecd110be3faf181f840803f6d8bf03dd URL:
https://github.com/kamailio/kamailio/commit/552b8397ecd110be3faf181f840803f…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T17:01:04+01:00 microhttpd: add fixup_free* to exported functions --- Modified: src/modules/microhttpd/microhttpd_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/552b8397ecd110be3faf181f840803f…
Patch:
https://github.com/kamailio/kamailio/commit/552b8397ecd110be3faf181f840803f…
--- diff --git a/src/modules/microhttpd/microhttpd_mod.c b/src/modules/microhttpd/microhttpd_mod.c index f1ee8334b8b..0ef4b36284e 100644 --- a/src/modules/microhttpd/microhttpd_mod.c +++ b/src/modules/microhttpd/microhttpd_mod.c @@ -52,7 +52,7 @@ static int w_mhttpd_send_reply( sip_msg_t *msg, char *pcode, char *preason, char *pctype, char *pbody); static int fixup_mhttpd_send_reply(void **param, int param_no); - +static int fixup_free_mhttpd_send_reply(void **param, int param_no); static int mod_init(void); static int child_init(int); @@ -70,8 +70,9 @@ static pv_export_t mod_pvs[] = { }; static cmd_export_t cmds[] = { - {"mhttpd_reply", (cmd_function)w_mhttpd_send_reply, - 4, fixup_mhttpd_send_reply, 0, REQUEST_ROUTE|EVENT_ROUTE}, + {"mhttpd_reply", (cmd_function)w_mhttpd_send_reply, 4, + fixup_mhttpd_send_reply, fixup_free_mhttpd_send_reply, + REQUEST_ROUTE|EVENT_ROUTE}, {0, 0, 0, 0, 0, 0} }; @@ -432,6 +433,19 @@ static int fixup_mhttpd_send_reply(void **param, int param_no) return 0; } +static int fixup_free_mhttpd_send_reply(void **param, int param_no) +{ + if(param_no == 1) { + return fixup_free_igp_null(param, 1); + } else if(param_no == 2) { + return fixup_free_spve_null(param, 1); + } else if(param_no == 3) { + return fixup_free_spve_null(param, 1); + } else if(param_no == 4) { + return fixup_free_spve_null(param, 1); + } + return 0; +} static enum MHD_Result ksr_microhttpd_request(void *cls, struct MHD_Connection *connection, const char *url, const char *method,
1
0
0
0
git:master:4ba15a7d: misc_radius: add fixup_free* to exported functions
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 4ba15a7db033b699008885473a3f8c72811975ce URL:
https://github.com/kamailio/kamailio/commit/4ba15a7db033b699008885473a3f8c7…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T16:51:26+01:00 misc_radius: add fixup_free* to exported functions --- Modified: src/modules/misc_radius/misc_radius.c --- Diff:
https://github.com/kamailio/kamailio/commit/4ba15a7db033b699008885473a3f8c7…
Patch:
https://github.com/kamailio/kamailio/commit/4ba15a7db033b699008885473a3f8c7…
--- diff --git a/src/modules/misc_radius/misc_radius.c b/src/modules/misc_radius/misc_radius.c index 9de465a2122..b0928bd62d8 100644 --- a/src/modules/misc_radius/misc_radius.c +++ b/src/modules/misc_radius/misc_radius.c @@ -79,26 +79,23 @@ struct val uri_vals[UV_STATIC_MAX]; /* clang-format off */ static cmd_export_t cmds[] = { {"radius_load_caller_avps", (cmd_function)radius_load_caller_avps, 1, - fixup_spve_null, 0, REQUEST_ROUTE | FAILURE_ROUTE}, + fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE | FAILURE_ROUTE}, {"radius_load_callee_avps", (cmd_function)radius_load_callee_avps, 1, - fixup_spve_null, 0, REQUEST_ROUTE | FAILURE_ROUTE}, + fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE | FAILURE_ROUTE}, {"radius_is_user_in", (cmd_function)radius_is_user_in, 2, - fixup_spve_spve, 0, + fixup_spve_spve, fixup_free_spve_spve, REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE}, - {"radius_does_uri_exist", (cmd_function)radius_does_uri_exist_0, - 0, 0, 0, REQUEST_ROUTE|LOCAL_ROUTE}, - {"radius_does_uri_exist", (cmd_function)radius_does_uri_exist_1, - 1, fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE|LOCAL_ROUTE}, - {"radius_does_uri_user_exist", - (cmd_function)radius_does_uri_user_exist_0, - 0, 0, 0, REQUEST_ROUTE|LOCAL_ROUTE}, - {"radius_does_uri_user_exist", - (cmd_function)radius_does_uri_user_exist_1, - 1, fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE|LOCAL_ROUTE}, + {"radius_does_uri_exist", (cmd_function)radius_does_uri_exist_0, 0, + 0, 0, REQUEST_ROUTE|LOCAL_ROUTE}, + {"radius_does_uri_exist", (cmd_function)radius_does_uri_exist_1, 1, + fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE|LOCAL_ROUTE}, + {"radius_does_uri_user_exist", (cmd_function)radius_does_uri_user_exist_0, 0, + 0, 0, REQUEST_ROUTE|LOCAL_ROUTE}, + {"radius_does_uri_user_exist", (cmd_function)radius_does_uri_user_exist_1, 1, + fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE|LOCAL_ROUTE}, {0, 0, 0, 0, 0, 0} }; - /* * Exported parameters */ @@ -117,7 +114,6 @@ static param_export_t params[] = { {0, 0, 0} }; - struct module_exports exports = { "misc_radius", /* module name */ DEFAULT_DLFLAGS, /* dlopen flags */
1
0
0
0
git:master:2b73d787: mohqueue: add fixup_free* to exported functions
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 2b73d78789683388e5c93b4516e97b467178a25b URL:
https://github.com/kamailio/kamailio/commit/2b73d78789683388e5c93b4516e97b4…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T16:45:46+01:00 mohqueue: add fixup_free* to exported functions --- Modified: src/modules/mohqueue/mohqueue_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/2b73d78789683388e5c93b4516e97b4…
Patch:
https://github.com/kamailio/kamailio/commit/2b73d78789683388e5c93b4516e97b4…
--- diff --git a/src/modules/mohqueue/mohqueue_mod.c b/src/modules/mohqueue/mohqueue_mod.c index 1151b575786..b68e9a97794 100644 --- a/src/modules/mohqueue/mohqueue_mod.c +++ b/src/modules/mohqueue/mohqueue_mod.c @@ -32,7 +32,8 @@ MODULE_VERSION * local function declarations **********/ -int fixup_count(void **, int); +static int fixup_count(void **, int); +static int fixup_free_count(void **param, int param_no); static int mod_child_init(int); static void mod_destroy(void); static int mod_init(void); @@ -63,10 +64,10 @@ static cmd_export_t mod_cmds[] = { {"mohq_process", (cmd_function)mohq_process, 0, 0, 0, REQUEST_ROUTE}, {"mohq_retrieve", (cmd_function)mohq_retrieve, 2, - fixup_spve_spve, 0, + fixup_spve_spve, fixup_free_spve_spve, REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE}, {"mohq_send", (cmd_function)mohq_send, 1, - fixup_spve_spve, 0, REQUEST_ROUTE}, + fixup_spve_spve, fixup_free_spve_spve, REQUEST_ROUTE}, {NULL, NULL, -1, 0, 0}, }; @@ -131,7 +132,7 @@ str prtpstat[1] = {STR_STATIC_INIT("$rtpstat")}; * OUTPUT: -1 if failed; 0 if saved as pv_elem_t **********/ -int fixup_count(void **param, int param_no) +static int fixup_count(void **param, int param_no) { if(param_no == 1) { @@ -143,6 +144,18 @@ int fixup_count(void **param, int param_no) return 0; } +static int fixup_free_count(void **param, int param_no) + +{ + if(param_no == 1) { + return fixup_free_spve_spve(param, 1); + } + if(param_no == 2) { + return fixup_free_pvar_null(param, 1); + } + return 0; +} + /********** * Configuration Initialization *
1
0
0
0
git:master:155d6005: mohqueue: reformat exported structures
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 155d6005c52c85199deffd1357dc361af21e3862 URL:
https://github.com/kamailio/kamailio/commit/155d6005c52c85199deffd1357dc361…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T16:43:01+01:00 mohqueue: reformat exported structures --- Modified: src/modules/mohqueue/mohqueue_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/155d6005c52c85199deffd1357dc361…
Patch:
https://github.com/kamailio/kamailio/commit/155d6005c52c85199deffd1357dc361…
--- diff --git a/src/modules/mohqueue/mohqueue_mod.c b/src/modules/mohqueue/mohqueue_mod.c index 09c74c0c475..1151b575786 100644 --- a/src/modules/mohqueue/mohqueue_mod.c +++ b/src/modules/mohqueue/mohqueue_mod.c @@ -47,19 +47,6 @@ pv_spec_t *prtp_pv; /********** * module exports **********/ - -/* COMMANDS */ -static cmd_export_t mod_cmds[] = { - {"mohq_count", (cmd_function)mohq_count, 2, fixup_count, 0, - REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE}, - {"mohq_process", (cmd_function)mohq_process, 0, NULL, 0, REQUEST_ROUTE}, - {"mohq_retrieve", (cmd_function)mohq_retrieve, 2, fixup_spve_spve, 0, - REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE}, - {"mohq_send", (cmd_function)mohq_send, 1, fixup_spve_spve, 0, - REQUEST_ROUTE}, - {NULL, NULL, -1, 0, 0}, -}; - /* PARAMETERS */ str db_url = str_init(DEFAULT_DB_URL); str db_ctable = str_init("mohqcalls"); @@ -67,43 +54,63 @@ str db_qtable = str_init("mohqueues"); char *mohdir = ""; int moh_maxcalls = 50; +/* clang-format off */ +/* COMMANDS */ +static cmd_export_t mod_cmds[] = { + {"mohq_count", (cmd_function)mohq_count, 2, + fixup_count, 0, + REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE}, + {"mohq_process", (cmd_function)mohq_process, 0, + 0, 0, REQUEST_ROUTE}, + {"mohq_retrieve", (cmd_function)mohq_retrieve, 2, + fixup_spve_spve, 0, + REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE}, + {"mohq_send", (cmd_function)mohq_send, 1, + fixup_spve_spve, 0, REQUEST_ROUTE}, + {NULL, NULL, -1, 0, 0}, +}; + static param_export_t mod_parms[] = { - {"db_url", PARAM_STR, &db_url}, - {"db_ctable", PARAM_STR, &db_ctable}, - {"db_qtable", PARAM_STR, &db_qtable}, - {"mohdir", PARAM_STRING, &mohdir}, - {"moh_maxcalls", PARAM_INT, &moh_maxcalls}, - {NULL, 0, NULL}, + {"db_url", PARAM_STR, &db_url}, + {"db_ctable", PARAM_STR, &db_ctable}, + {"db_qtable", PARAM_STR, &db_qtable}, + {"mohdir", PARAM_STRING, &mohdir}, + {"moh_maxcalls", PARAM_INT, &moh_maxcalls}, + {NULL, 0, NULL}, }; static const char *mohqueue_rpc_debug_doc[] = { - "Toggle mohqueue debug mode. Parameters: queue name, state (0=off, " - "<>0=on)", - 0}; + "Toggle mohqueue debug mode. Parameters: queue name, state (0=off, <>0=on)", + 0 +}; static const char *mohqueue_rpc_drop_call_doc[] = { - "Drop a mohqueue call. Parameters: queue name, callID (*=all)", 0}; + "Drop a mohqueue call. Parameters: queue name, callID (*=all)", + 0 +}; /* RPC COMMANDS */ rpc_export_t mohqueue_rpc[] = { - {"mohqueue.debug", mohqueue_rpc_debug, mohqueue_rpc_debug_doc, 0}, - {"mohqueue.drop_call", mohqueue_rpc_drop_call, - mohqueue_rpc_drop_call_doc, 0}, - {0, 0, 0, 0}}; + {"mohqueue.debug", mohqueue_rpc_debug, mohqueue_rpc_debug_doc, 0}, + {"mohqueue.drop_call", mohqueue_rpc_drop_call, + mohqueue_rpc_drop_call_doc, 0}, + {0, 0, 0, 0} +}; /* MODULE EXPORTS */ struct module_exports exports = { - "mohqueue", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - mod_cmds, /* exported functions */ - mod_parms, /* exported parameters */ - 0, /* RPC methods */ - 0, /* exported pseudo-variables */ - 0, /* response handling function */ - mod_init, /* module initialization function */ - mod_child_init, /* per-child initialization function */ - mod_destroy /* destructor function */ + "mohqueue", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + mod_cmds, /* exported functions */ + mod_parms, /* exported parameters */ + 0, /* RPC methods */ + 0, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module initialization function */ + mod_child_init, /* per-child initialization function */ + mod_destroy /* destructor function */ }; +/* clang-format on */ /********** * local constants
1
0
0
0
git:master:039a79a0: mqtt: add fixup_free* to exported functions
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 039a79a00e2eb34b9e61e30848f4d1bb07d68f4c URL:
https://github.com/kamailio/kamailio/commit/039a79a00e2eb34b9e61e30848f4d1b…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T16:40:27+01:00 mqtt: add fixup_free* to exported functions --- Modified: src/modules/mqtt/mqtt_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/039a79a00e2eb34b9e61e30848f4d1b…
Patch:
https://github.com/kamailio/kamailio/commit/039a79a00e2eb34b9e61e30848f4d1b…
--- diff --git a/src/modules/mqtt/mqtt_mod.c b/src/modules/mqtt/mqtt_mod.c index f332263983f..2ce4c4772bb 100644 --- a/src/modules/mqtt/mqtt_mod.c +++ b/src/modules/mqtt/mqtt_mod.c @@ -57,10 +57,12 @@ static int child_init(int); static int cmd_mqtt_publish( sip_msg_t *msg, char *topic, char *payload, char *qos); static int fixup_mqtt_publish(void **param, int param_no); +static int fixup_free_mqtt_publish(void **param, int param_no); static int ki_mqtt_publish(sip_msg_t *msg, str *topic, str *payload, int qos); static int cmd_mqtt_subscribe(sip_msg_t *msg, char *topic, char *qos); static int fixup_mqtt_subscribe(void **param, int param_no); +static int fixup_free_mqtt_subscribe(void **param, int param_no); static int ki_mqtt_subscribe(sip_msg_t *msg, str *topic, int qos); static int cmd_mqtt_unsubscribe(sip_msg_t *msg, char *topic); @@ -69,11 +71,11 @@ static int ki_mqtt_unsubscribe(sip_msg_t *msg, str *topic); /* clang-format off */ static cmd_export_t cmds[] = { {"mqtt_publish", (cmd_function)cmd_mqtt_publish, 3, - fixup_mqtt_publish, 0, ANY_ROUTE}, + fixup_mqtt_publish, fixup_free_mqtt_publish, ANY_ROUTE}, {"mqtt_subscribe", (cmd_function)cmd_mqtt_subscribe, 2, - fixup_mqtt_subscribe, 0, ANY_ROUTE}, + fixup_mqtt_subscribe, fixup_free_mqtt_subscribe, ANY_ROUTE}, {"mqtt_unsubscribe", (cmd_function)cmd_mqtt_unsubscribe, 1, - fixup_spve_all, 0, ANY_ROUTE}, + fixup_spve_all, fixup_free_spve_all, ANY_ROUTE}, {0, 0, 0, 0, 0, 0} }; @@ -289,6 +291,20 @@ static int fixup_mqtt_publish(void **param, int param_no) } } +static int fixup_free_mqtt_publish(void **param, int param_no) +{ + switch(param_no) { + case 1: + return fixup_free_spve_spve(param, param_no); + case 2: + return fixup_free_spve_spve(param, param_no); + case 3: + return 0; + default: + return -1; + } +} + /** * Subscribe to the given topic. * Mqtt qos levels 0, 1 and 2 can be used. @@ -353,6 +369,18 @@ static int fixup_mqtt_subscribe(void **param, int param_no) } } +static int fixup_free_mqtt_subscribe(void **param, int param_no) +{ + switch(param_no) { + case 1: + return fixup_free_spve_spve(param, param_no); + case 2: + return 0; + default: + return -1; + } +} + /** * Unsubscribe to a previously subscribed topic. * Used in cfg script.
1
0
0
0
git:master:89af5be1: mqtt: reformat exported structures
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 89af5be1124faade9aa33e58b7bf199ef2af3865 URL:
https://github.com/kamailio/kamailio/commit/89af5be1124faade9aa33e58b7bf199…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T16:36:20+01:00 mqtt: reformat exported structures --- Modified: src/modules/mqtt/mqtt_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/89af5be1124faade9aa33e58b7bf199…
Patch:
https://github.com/kamailio/kamailio/commit/89af5be1124faade9aa33e58b7bf199…
--- diff --git a/src/modules/mqtt/mqtt_mod.c b/src/modules/mqtt/mqtt_mod.c index ca7d2009d90..f332263983f 100644 --- a/src/modules/mqtt/mqtt_mod.c +++ b/src/modules/mqtt/mqtt_mod.c @@ -66,49 +66,58 @@ static int ki_mqtt_subscribe(sip_msg_t *msg, str *topic, int qos); static int cmd_mqtt_unsubscribe(sip_msg_t *msg, char *topic); static int ki_mqtt_unsubscribe(sip_msg_t *msg, str *topic); -static cmd_export_t cmds[] = {{"mqtt_publish", (cmd_function)cmd_mqtt_publish, - 3, fixup_mqtt_publish, 0, ANY_ROUTE}, - {"mqtt_subscribe", (cmd_function)cmd_mqtt_subscribe, 2, - fixup_mqtt_subscribe, 0, ANY_ROUTE}, - {"mqtt_unsubscribe", (cmd_function)cmd_mqtt_unsubscribe, 1, - fixup_spve_all, 0, ANY_ROUTE}, - {0, 0, 0, 0, 0, 0}}; - -static param_export_t params[] = {{"host", PARAM_STRING, &_mqtt_host}, - {"port", PARAM_INT, &_mqtt_port}, {"id", PARAM_STRING, &_mqtt_id}, - {"username", PARAM_STRING, &_mqtt_username}, - {"password", PARAM_STRING, &_mqtt_password}, - {"will_topic", PARAM_STRING, &_mqtt_willtopic}, - {"will", PARAM_STRING, &_mqtt_will}, - {"keepalive", PARAM_INT, &_mqtt_keepalive}, - {"event_callback", PARAM_STR, &_mqtt_event_callback}, - {"tls_method", PARAM_STRING, &_mqtt_tls_method}, - {"tls_alpn", PARAM_STRING, &_mqtt_tls_alpn}, - {"ca_file", PARAM_STRING, &_mqtt_ca_file}, - {"ca_path", PARAM_STRING, &_mqtt_ca_path}, - {"certificate", PARAM_STRING, &_mqtt_certificate}, - {"private_key", PARAM_STRING, &_mqtt_private_key}, - {"verify_certificate", PARAM_INT, &_mqtt_verify_certificate}, - {"cipher_list", PARAM_STRING, &_mqtt_cipher_list}, {0, 0, 0}}; +/* clang-format off */ +static cmd_export_t cmds[] = { + {"mqtt_publish", (cmd_function)cmd_mqtt_publish, 3, + fixup_mqtt_publish, 0, ANY_ROUTE}, + {"mqtt_subscribe", (cmd_function)cmd_mqtt_subscribe, 2, + fixup_mqtt_subscribe, 0, ANY_ROUTE}, + {"mqtt_unsubscribe", (cmd_function)cmd_mqtt_unsubscribe, 1, + fixup_spve_all, 0, ANY_ROUTE}, + {0, 0, 0, 0, 0, 0} +}; + +static param_export_t params[] = { + {"host", PARAM_STRING, &_mqtt_host}, + {"port", PARAM_INT, &_mqtt_port}, + {"id", PARAM_STRING, &_mqtt_id}, + {"username", PARAM_STRING, &_mqtt_username}, + {"password", PARAM_STRING, &_mqtt_password}, + {"will_topic", PARAM_STRING, &_mqtt_willtopic}, + {"will", PARAM_STRING, &_mqtt_will}, + {"keepalive", PARAM_INT, &_mqtt_keepalive}, + {"event_callback", PARAM_STR, &_mqtt_event_callback}, + {"tls_method", PARAM_STRING, &_mqtt_tls_method}, + {"tls_alpn", PARAM_STRING, &_mqtt_tls_alpn}, + {"ca_file", PARAM_STRING, &_mqtt_ca_file}, + {"ca_path", PARAM_STRING, &_mqtt_ca_path}, + {"certificate", PARAM_STRING, &_mqtt_certificate}, + {"private_key", PARAM_STRING, &_mqtt_private_key}, + {"verify_certificate", PARAM_INT, &_mqtt_verify_certificate}, + {"cipher_list", PARAM_STRING, &_mqtt_cipher_list}, + {0, 0, 0} +}; static pv_export_t mod_pvs[] = { - {{"mqtt", (sizeof("mqtt") - 1)}, PVT_OTHER, pv_get_mqtt, pv_set_mqtt, - pv_parse_mqtt_name, 0, 0, 0}, + {{"mqtt", (sizeof("mqtt") - 1)}, PVT_OTHER, pv_get_mqtt, pv_set_mqtt, + pv_parse_mqtt_name, 0, 0, 0}, - {{0, 0}, 0, 0, 0, 0, 0, 0, 0}}; + {{0, 0}, 0, 0, 0, 0, 0, 0, 0} +}; struct module_exports exports = { - "mqtt", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* exported functions */ - params, /* exported parameters */ - 0, /* RPC method exports */ - mod_pvs, /* exported pseudo-variables */ - 0, /* response handling function */ - mod_init, /* module initialization function */ - child_init, /* per-child init function */ - 0 /* module destroy function */ + "mqtt", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + 0, /* RPC method exports */ + mod_pvs, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module initialization function */ + child_init, /* per-child init function */ + 0 /* module destroy function */ }; +/* clang-format on */ /*! * \brief Module initialization function
1
0
0
0
git:master:0fd77b10: mqueue: add fixup_free* to exported functions
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 0fd77b10b758d685b3ae27d0435e6b9d4bba82f5 URL:
https://github.com/kamailio/kamailio/commit/0fd77b10b758d685b3ae27d0435e6b9…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T16:05:51+01:00 mqueue: add fixup_free* to exported functions --- Modified: src/modules/mqueue/mqueue_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/0fd77b10b758d685b3ae27d0435e6b9…
Patch:
https://github.com/kamailio/kamailio/commit/0fd77b10b758d685b3ae27d0435e6b9…
--- diff --git a/src/modules/mqueue/mqueue_mod.c b/src/modules/mqueue/mqueue_mod.c index 035b66015ff..f100091844e 100644 --- a/src/modules/mqueue/mqueue_mod.c +++ b/src/modules/mqueue/mqueue_mod.c @@ -52,6 +52,7 @@ static int w_mq_pv_free(struct sip_msg *msg, char *mq, char *str2); int mq_param(modparam_t type, void *val); int mq_param_name(modparam_t type, void *val); static int fixup_mq_add(void **param, int param_no); +static int fixup_free_mq_add(void **param, int param_no); static int bind_mq(mq_api_t *api); static int mqueue_rpc_init(void); @@ -72,13 +73,13 @@ static pv_export_t mod_pvs[] = { static cmd_export_t cmds[] = { {"mq_fetch", (cmd_function)w_mq_fetch, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"mq_add", (cmd_function)w_mq_add, 3, - fixup_mq_add, 0, ANY_ROUTE}, + fixup_mq_add, fixup_free_mq_add, ANY_ROUTE}, {"mq_pv_free", (cmd_function)w_mq_pv_free, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"mq_size", (cmd_function)w_mq_size, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"bind_mq", (cmd_function)bind_mq, 1, 0, 0, ANY_ROUTE}, {0, 0, 0, 0, 0, 0} }; @@ -312,6 +313,16 @@ static int fixup_mq_add(void **param, int param_no) return E_UNSPEC; } +static int fixup_free_mq_add(void **param, int param_no) +{ + if(param_no == 1 || param_no == 2 || param_no == 3) { + return fixup_free_spve_null(param, 1); + } + + LM_ERR("invalid parameter number %d\n", param_no); + return E_UNSPEC; +} + static int bind_mq(mq_api_t *api) { if(!api)
1
0
0
0
git:master:704ca582: mqueue: reformat exported structures
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 704ca58226e63d90f8cd7ddc7b4f06efe8f18756 URL:
https://github.com/kamailio/kamailio/commit/704ca58226e63d90f8cd7ddc7b4f06e…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T16:04:34+01:00 mqueue: reformat exported structures --- Modified: src/modules/mqueue/mqueue_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/704ca58226e63d90f8cd7ddc7b4f06e…
Patch:
https://github.com/kamailio/kamailio/commit/704ca58226e63d90f8cd7ddc7b4f06e…
--- diff --git a/src/modules/mqueue/mqueue_mod.c b/src/modules/mqueue/mqueue_mod.c index 20a7b0b14b2..035b66015ff 100644 --- a/src/modules/mqueue/mqueue_mod.c +++ b/src/modules/mqueue/mqueue_mod.c @@ -59,42 +59,49 @@ static int mqueue_rpc_init(void); static int mqueue_size = 0; int mqueue_addmode = 0; - +/* clang-format off */ static pv_export_t mod_pvs[] = { - {{"mqk", sizeof("mqk") - 1}, PVT_OTHER, pv_get_mqk, 0, pv_parse_mq_name, - 0, 0, 0}, - {{"mqv", sizeof("mqv") - 1}, PVT_OTHER, pv_get_mqv, 0, pv_parse_mq_name, - 0, 0, 0}, - {{"mq_size", sizeof("mq_size") - 1}, PVT_OTHER, pv_get_mq_size, 0, - pv_parse_mq_name, 0, 0, 0}, - {{0, 0}, 0, 0, 0, 0, 0, 0, 0}}; - - -static cmd_export_t cmds[] = {{"mq_fetch", (cmd_function)w_mq_fetch, 1, - fixup_spve_null, 0, ANY_ROUTE}, - {"mq_add", (cmd_function)w_mq_add, 3, fixup_mq_add, 0, ANY_ROUTE}, - {"mq_pv_free", (cmd_function)w_mq_pv_free, 1, fixup_spve_null, 0, - ANY_ROUTE}, - {"mq_size", (cmd_function)w_mq_size, 1, fixup_spve_null, 0, ANY_ROUTE}, - {"bind_mq", (cmd_function)bind_mq, 1, 0, 0, ANY_ROUTE}, - {0, 0, 0, 0, 0, 0}}; - -static param_export_t params[] = {{"db_url", PARAM_STR, &mqueue_db_url}, - {"mqueue", PARAM_STRING | PARAM_USE_FUNC, (void *)mq_param}, - {"mqueue_name", PARAM_STRING | PARAM_USE_FUNC, (void *)mq_param_name}, - {"mqueue_size", PARAM_INT, &mqueue_size}, - {"mqueue_addmode", PARAM_INT, &mqueue_addmode}, {0, 0, 0}}; + {{"mqk", sizeof("mqk") - 1}, PVT_OTHER, pv_get_mqk, 0, pv_parse_mq_name, + 0, 0, 0}, + {{"mqv", sizeof("mqv") - 1}, PVT_OTHER, pv_get_mqv, 0, pv_parse_mq_name, + 0, 0, 0}, + {{"mq_size", sizeof("mq_size") - 1}, PVT_OTHER, pv_get_mq_size, 0, + pv_parse_mq_name, 0, 0, 0}, + {{0, 0}, 0, 0, 0, 0, 0, 0, 0} +}; -struct module_exports exports = { - "mqueue", DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, params, 0, /* exported RPC methods */ - mod_pvs, /* exported pseudo-variables */ - 0, /* response function */ - mod_init, /* module initialization function */ - 0, /* per child init function */ - mod_destroy /* destroy function */ +static cmd_export_t cmds[] = { + {"mq_fetch", (cmd_function)w_mq_fetch, 1, + fixup_spve_null, 0, ANY_ROUTE}, + {"mq_add", (cmd_function)w_mq_add, 3, + fixup_mq_add, 0, ANY_ROUTE}, + {"mq_pv_free", (cmd_function)w_mq_pv_free, 1, + fixup_spve_null, 0, ANY_ROUTE}, + {"mq_size", (cmd_function)w_mq_size, 1, + fixup_spve_null, 0, ANY_ROUTE}, + {"bind_mq", (cmd_function)bind_mq, 1, 0, 0, ANY_ROUTE}, + {0, 0, 0, 0, 0, 0} }; +static param_export_t params[] = { + {"db_url", PARAM_STR, &mqueue_db_url}, + {"mqueue", PARAM_STRING | PARAM_USE_FUNC, (void *)mq_param}, + {"mqueue_name", PARAM_STRING | PARAM_USE_FUNC, (void *)mq_param_name}, + {"mqueue_size", PARAM_INT, &mqueue_size}, + {"mqueue_addmode", PARAM_INT, &mqueue_addmode}, + {0, 0, 0} +}; + +struct module_exports exports = { + "mqueue", DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, params, 0, /* exported RPC methods */ + mod_pvs, /* exported pseudo-variables */ + 0, /* response function */ + mod_init, /* module initialization function */ + 0, /* per child init function */ + mod_destroy /* destroy function */ +}; +/* clang-format on */ /** * init module function
1
0
0
0
git:master:1a88127e: msrp: add fixup_free* to exported functions
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 1a88127ede8245a96f469d7719a92ddd917a530e URL:
https://github.com/kamailio/kamailio/commit/1a88127ede8245a96f469d7719a92dd…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T15:56:09+01:00 msrp: add fixup_free* to exported functions --- Modified: src/modules/msrp/msrp_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/1a88127ede8245a96f469d7719a92dd…
Patch:
https://github.com/kamailio/kamailio/commit/1a88127ede8245a96f469d7719a92dd…
--- diff --git a/src/modules/msrp/msrp_mod.c b/src/modules/msrp/msrp_mod.c index e468c7411ae..314d502a28f 100644 --- a/src/modules/msrp/msrp_mod.c +++ b/src/modules/msrp/msrp_mod.c @@ -96,25 +96,25 @@ static cmd_export_t cmds[] = { {"msrp_forward", (cmd_function)w_msrp_forward, 0, 0, 0, ANY_ROUTE}, {"msrp_forward", (cmd_function)w_msrp_forward1, 1, - fixup_spve_all, 0, ANY_ROUTE}, + fixup_spve_all, fixup_free_spve_all, ANY_ROUTE}, {"msrp_forward", (cmd_function)w_msrp_forward2, 2, - fixup_spve_all, 0, ANY_ROUTE}, + fixup_spve_all, fixup_free_spve_all, ANY_ROUTE}, {"msrp_relay", (cmd_function)w_msrp_relay, 0, 0, 0, ANY_ROUTE}, {"msrp_reply", (cmd_function)w_msrp_reply2, 2, fixup_spve_spve, 0, ANY_ROUTE}, {"msrp_reply", (cmd_function)w_msrp_reply3, 3, - fixup_spve_all, 0, ANY_ROUTE}, + fixup_spve_all, fixup_free_spve_all, ANY_ROUTE}, {"msrp_is_request", (cmd_function)w_msrp_is_request, 0, 0, 0, ANY_ROUTE}, {"msrp_is_reply", (cmd_function)w_msrp_is_reply, 0, 0, 0, ANY_ROUTE}, {"msrp_set_dst", (cmd_function)w_msrp_set_dst, 2, - fixup_spve_all, 0, ANY_ROUTE}, + fixup_spve_all, fixup_free_spve_all, ANY_ROUTE}, {"msrp_relay_flags", (cmd_function)w_msrp_relay_flags, 1, - fixup_igp_null, 0, ANY_ROUTE}, + fixup_igp_null, fixup_free_igp_null, ANY_ROUTE}, {"msrp_reply_flags", (cmd_function)w_msrp_reply_flags, 1, - fixup_igp_null, 0, ANY_ROUTE}, + fixup_igp_null, fixup_free_igp_null, ANY_ROUTE}, {"msrp_cmap_save", (cmd_function)w_msrp_cmap_save, 0, 0, 0, ANY_ROUTE}, {"msrp_cmap_lookup", (cmd_function)w_msrp_cmap_lookup, 0,
1
0
0
0
git:master:e658599e: msrp: reformat exported structures
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: e658599e737c9f2a5eb4384eebd119627a176cdb URL:
https://github.com/kamailio/kamailio/commit/e658599e737c9f2a5eb4384eebd1196…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T15:55:08+01:00 msrp: reformat exported structures --- Modified: src/modules/msrp/msrp_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/e658599e737c9f2a5eb4384eebd1196…
Patch:
https://github.com/kamailio/kamailio/commit/e658599e737c9f2a5eb4384eebd1196…
1
0
0
0
git:master:2a8df7f1: mtree: add fixup_free* to exported functions
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 2a8df7f1e7f77bcfac49a85d0d8c7b283de13be8 URL:
https://github.com/kamailio/kamailio/commit/2a8df7f1e7f77bcfac49a85d0d8c7b2…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T15:51:15+01:00 mtree: add fixup_free* to exported functions --- Modified: src/modules/mtree/mtree_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/2a8df7f1e7f77bcfac49a85d0d8c7b2…
Patch:
https://github.com/kamailio/kamailio/commit/2a8df7f1e7f77bcfac49a85d0d8c7b2…
--- diff --git a/src/modules/mtree/mtree_mod.c b/src/modules/mtree/mtree_mod.c index 2b8d2adc750..cc3f68d4a7e 100644 --- a/src/modules/mtree/mtree_mod.c +++ b/src/modules/mtree/mtree_mod.c @@ -108,6 +108,7 @@ static volatile int mt_reload_flag = 0; int mt_param(modparam_t type, void *val); static int fixup_mt_match(void **param, int param_no); +static int fixup_free_mt_match(void **param, int param_no); static int w_mt_match(struct sip_msg *msg, char *str1, char *str2, char *str3); static int mod_init(void); @@ -124,7 +125,7 @@ static int mt_load_db_trees(); /* clang-format off */ static cmd_export_t cmds[] = { {"mt_match", (cmd_function)w_mt_match, 3, - fixup_mt_match, 0, + fixup_mt_match, fixup_free_mt_match, REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE | ONREPLY_ROUTE}, {"bind_mtree", (cmd_function)bind_mtree, 0, 0, 0}, {0, 0, 0, 0, 0, 0} @@ -336,6 +337,17 @@ static int fixup_mt_match(void **param, int param_no) return fixup_igp_null(param, 1); } +static int fixup_free_mt_match(void **param, int param_no) +{ + if(param_no == 1 || param_no == 2) { + return fixup_free_spve_null(param, 1); + } + if(param_no != 3) { + LM_ERR("invalid parameter number %d\n", param_no); + return E_UNSPEC; + } + return fixup_free_igp_null(param, 1); +} /* use tree tn, match var, by mode, output in avp params */ static int mt_match(sip_msg_t *msg, str *tname, str *tomatch, int mval)
1
0
0
0
git:master:a7a38605: mtree: reformat exported structures
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: a7a386056040db183abdeff6492773141ca9a92c URL:
https://github.com/kamailio/kamailio/commit/a7a386056040db183abdeff64927731…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T15:50:13+01:00 mtree: reformat exported structures --- Modified: src/modules/mtree/mtree_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/a7a386056040db183abdeff64927731…
Patch:
https://github.com/kamailio/kamailio/commit/a7a386056040db183abdeff64927731…
--- diff --git a/src/modules/mtree/mtree_mod.c b/src/modules/mtree/mtree_mod.c index ca180d8b534..2b8d2adc750 100644 --- a/src/modules/mtree/mtree_mod.c +++ b/src/modules/mtree/mtree_mod.c @@ -121,40 +121,48 @@ static int mt_match(sip_msg_t *msg, str *tname, str *tomatch, int mval); static int mt_load_db(m_tree_t *pt); static int mt_load_db_trees(); +/* clang-format off */ static cmd_export_t cmds[] = { - {"mt_match", (cmd_function)w_mt_match, 3, fixup_mt_match, 0, - REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE | ONREPLY_ROUTE}, - {"bind_mtree", (cmd_function)bind_mtree, 0, 0, 0}, {0, 0, 0, 0, 0, 0}}; + {"mt_match", (cmd_function)w_mt_match, 3, + fixup_mt_match, 0, + REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE | ONREPLY_ROUTE}, + {"bind_mtree", (cmd_function)bind_mtree, 0, 0, 0}, + {0, 0, 0, 0, 0, 0} +}; static param_export_t params[] = { - {"mtree", PARAM_STRING | PARAM_USE_FUNC, (void *)mt_param}, - {"db_url", PARAM_STR, &db_url}, {"db_table", PARAM_STR, &db_table}, - {"tname_column", PARAM_STR, &tname_column}, - {"tprefix_column", PARAM_STR, &tprefix_column}, - {"tvalue_column", PARAM_STR, &tvalue_column}, - {"char_list", PARAM_STR, &mt_char_list}, - {"fetch_rows", PARAM_INT, &mt_fetch_rows}, - {"pv_value", PARAM_STR, &value_param}, - {"pv_values", PARAM_STR, &values_param}, - {"pv_dstid", PARAM_STR, &dstid_param}, - {"pv_weight", PARAM_STR, &weight_param}, - {"pv_count", PARAM_STR, &count_param}, - {"mt_tree_type", PARAM_INT, &_mt_tree_type}, - {"mt_ignore_duplicates", PARAM_INT, &_mt_ignore_duplicates}, - {"mt_allow_duplicates", PARAM_INT, &_mt_allow_duplicates}, {0, 0, 0}}; + {"mtree", PARAM_STRING | PARAM_USE_FUNC, (void *)mt_param}, + {"db_url", PARAM_STR, &db_url}, + {"db_table", PARAM_STR, &db_table}, + {"tname_column", PARAM_STR, &tname_column}, + {"tprefix_column", PARAM_STR, &tprefix_column}, + {"tvalue_column", PARAM_STR, &tvalue_column}, + {"char_list", PARAM_STR, &mt_char_list}, + {"fetch_rows", PARAM_INT, &mt_fetch_rows}, + {"pv_value", PARAM_STR, &value_param}, + {"pv_values", PARAM_STR, &values_param}, + {"pv_dstid", PARAM_STR, &dstid_param}, + {"pv_weight", PARAM_STR, &weight_param}, + {"pv_count", PARAM_STR, &count_param}, + {"mt_tree_type", PARAM_INT, &_mt_tree_type}, + {"mt_ignore_duplicates", PARAM_INT, &_mt_ignore_duplicates}, + {"mt_allow_duplicates", PARAM_INT, &_mt_allow_duplicates}, + {0, 0, 0} +}; struct module_exports exports = { - "mtree", DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /*��exported��functions��*/ - params, /*��exported��functions��*/ - 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 */ + "mtree", + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /*��exported��functions��*/ + params, /*��exported��functions��*/ + 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 */ }; - +/* clang-format on */ /** * init module function
1
0
0
0
git:master:259935c2: nat_traversal: add fixup_free* to exported functions
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 259935c2a2d5c367ef4773826bb69faec8256dee URL:
https://github.com/kamailio/kamailio/commit/259935c2a2d5c367ef4773826bb69fa…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T15:23:15+01:00 nat_traversal: add fixup_free* to exported functions --- Modified: src/modules/nat_traversal/nat_traversal.c --- Diff:
https://github.com/kamailio/kamailio/commit/259935c2a2d5c367ef4773826bb69fa…
Patch:
https://github.com/kamailio/kamailio/commit/259935c2a2d5c367ef4773826bb69fa…
--- diff --git a/src/modules/nat_traversal/nat_traversal.c b/src/modules/nat_traversal/nat_traversal.c index f3d687ff1d6..0f952f01d66 100644 --- a/src/modules/nat_traversal/nat_traversal.c +++ b/src/modules/nat_traversal/nat_traversal.c @@ -285,7 +285,7 @@ static cmd_export_t commands[] = { {"fix_contact", (cmd_function)w_FixContact, 0, 0, 0, ANY_ROUTE}, {"client_nat_test", (cmd_function)w_ClientNatTest, 1, - fixup_igp_null, 0, ANY_ROUTE}, + fixup_igp_null, fixup_free_igp_null, ANY_ROUTE}, {0, 0, 0, 0, 0, 0} };
1
0
0
0
git:master:0ebc38a4: nat_traversal: reformat exported structures
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 0ebc38a4834d74dfee8ff7326e516c01d7273472 URL:
https://github.com/kamailio/kamailio/commit/0ebc38a4834d74dfee8ff7326e516c0…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T15:22:53+01:00 nat_traversal: reformat exported structures --- Modified: src/modules/nat_traversal/nat_traversal.c --- Diff:
https://github.com/kamailio/kamailio/commit/0ebc38a4834d74dfee8ff7326e516c0…
Patch:
https://github.com/kamailio/kamailio/commit/0ebc38a4834d74dfee8ff7326e516c0…
1
0
0
0
git:master:9dc92332: nathelper: add fixup_free* to exported functions
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 9dc9233289d2518419438d38ac7d7b0abf4862a1 URL:
https://github.com/kamailio/kamailio/commit/9dc9233289d2518419438d38ac7d7b0…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T15:18:46+01:00 nathelper: add fixup_free* to exported functions --- Modified: src/modules/nathelper/nathelper.c --- Diff:
https://github.com/kamailio/kamailio/commit/9dc9233289d2518419438d38ac7d7b0…
Patch:
https://github.com/kamailio/kamailio/commit/9dc9233289d2518419438d38ac7d7b0…
--- diff --git a/src/modules/nathelper/nathelper.c b/src/modules/nathelper/nathelper.c index 6673370a5a8..ec543079f31 100644 --- a/src/modules/nathelper/nathelper.c +++ b/src/modules/nathelper/nathelper.c @@ -125,7 +125,9 @@ static int alter_mediaip(struct sip_msg *, str *, str *, int, str *, int, int); static int fix_nated_register_f(struct sip_msg *, char *, char *); static int fixup_fix_nated_register(void **param, int param_no); static int fixup_fix_sdp(void **param, int param_no); +static int fixup_free_fix_sdp(void **param, int param_no); static int fixup_add_contact_alias(void **param, int param_no); +static int fixup_free_add_contact_alias(void **param, int param_no); static int add_rcv_param_f(struct sip_msg *, char *, char *); static int nh_sip_reply_received(sip_msg_t *msg); static int test_sdp_cline(struct sip_msg *msg); @@ -214,7 +216,7 @@ static cmd_export_t cmds[] = { 0, 0, REQUEST_ROUTE|ONREPLY_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE}, {"add_contact_alias", (cmd_function)add_contact_alias_3_f, 3, - fixup_add_contact_alias, 0, + fixup_add_contact_alias, fixup_free_add_contact_alias, REQUEST_ROUTE|ONREPLY_ROUTE|BRANCH_ROUTE|FAILURE_ROUTE}, {"set_contact_alias", (cmd_function)set_contact_alias_f, 0, 0, 0, @@ -228,13 +230,13 @@ static cmd_export_t cmds[] = { fixup_igp_null, fixup_free_igp_null, REQUEST_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE}, {"fix_nated_sdp", (cmd_function)fix_nated_sdp_f, 1, - fixup_fix_sdp, 0, + fixup_fix_sdp, fixup_free_fix_sdp, REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE}, {"fix_nated_sdp", (cmd_function)fix_nated_sdp_f, 2, - fixup_fix_sdp, 0, + fixup_fix_sdp, fixup_free_fix_sdp, REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE}, {"nat_uac_test", (cmd_function)nat_uac_test_f, 1, - fixup_igp_null, 0, + fixup_igp_null, fixup_free_igp_null, REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE}, {"fix_nated_register", (cmd_function)fix_nated_register_f, 0, fixup_fix_nated_register, 0, @@ -243,10 +245,10 @@ static cmd_export_t cmds[] = { 0, 0, REQUEST_ROUTE }, {"add_rcv_param", (cmd_function)add_rcv_param_f, 1, - fixup_igp_null, 0, + fixup_igp_null, fixup_free_igp_null, REQUEST_ROUTE }, {"is_rfc1918", (cmd_function)is_rfc1918_f, 1, - fixup_spve_null, 0, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE }, {"set_alias_to_pv", (cmd_function)w_set_alias_to_pv, 1, 0, 0, ANY_ROUTE }, @@ -333,6 +335,20 @@ static int fixup_fix_sdp(void **param, int param_no) return -1; } +static int fixup_free_fix_sdp(void **param, int param_no) +{ + if(param_no == 1) { + /* flags */ + return fixup_free_igp_null(param, param_no); + } + if(param_no == 2) { + /* new IP */ + return fixup_free_spve_all(param, param_no); + } + LM_ERR("unexpected param no: %d\n", param_no); + return -1; +} + static int fixup_fix_nated_register(void **param, int param_no) { if(rcv_avp_name.n == 0) { @@ -352,6 +368,15 @@ static int fixup_add_contact_alias(void **param, int param_no) return -1; } +static int fixup_free_add_contact_alias(void **param, int param_no) +{ + if((param_no >= 1) && (param_no <= 3)) + return fixup_free_spve_null(param, 1); + + LM_ERR("invalid parameter number <%d>\n", param_no); + return -1; +} + static void nathelper_rpc_enable_ping(rpc_t *rpc, void *ctx) { int value = 0;
1
0
0
0
git:master:6ca7a392: ndb_cassandra: add fixup_free* to exported functions
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 6ca7a392708a1ea6a38c791591272bdf5b299832 URL:
https://github.com/kamailio/kamailio/commit/6ca7a392708a1ea6a38c791591272bd…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T15:14:30+01:00 ndb_cassandra: add fixup_free* to exported functions --- Modified: src/modules/ndb_cassandra/ndb_cassandra.c --- Diff:
https://github.com/kamailio/kamailio/commit/6ca7a392708a1ea6a38c791591272bd…
Patch:
https://github.com/kamailio/kamailio/commit/6ca7a392708a1ea6a38c791591272bd…
--- diff --git a/src/modules/ndb_cassandra/ndb_cassandra.c b/src/modules/ndb_cassandra/ndb_cassandra.c index 7de3d608fda..375e8bf3fd8 100644 --- a/src/modules/ndb_cassandra/ndb_cassandra.c +++ b/src/modules/ndb_cassandra/ndb_cassandra.c @@ -55,7 +55,7 @@ static void destroy(void); /* Fixups functions */ static int fixup_cass_insert(void **param, int param_no); - +static int fixup_free_cass_insert(void **param, int param_no); static int fixup_cass_retrieve(void **param, int param_no); static int free_fixup_cass_retrieve(void **param, int param_no); @@ -69,7 +69,7 @@ static int cass_retrieve_f(struct sip_msg *msg, char *keyspace, /* Exported functions */ static cmd_export_t cmds[] = { {"cass_insert", (cmd_function)cass_insert_f, 5, - fixup_cass_insert, 0, + fixup_cass_insert, fixup_free_cass_insert, REQUEST_ROUTE | ONREPLY_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE}, {"cass_retrieve", (cmd_function)cass_retrieve_f, 5, fixup_cass_retrieve, free_fixup_cass_retrieve, @@ -137,6 +137,28 @@ static int fixup_cass_insert(void **param, int param_no) LM_ERR("invalid parameter number <%d>\n", param_no); return -1; } + +static int fixup_free_cass_insert(void **param, int param_no) +{ + if(param_no == 1) { + return fixup_free_spve_null(param, 1); + } + if(param_no == 2) { + return fixup_free_spve_null(param, 1); + } + if(param_no == 3) { + return fixup_free_spve_null(param, 1); + } + if(param_no == 4) { + return fixup_free_spve_null(param, 1); + } + if(param_no == 5) { + return fixup_free_spve_null(param, 1); + } + LM_ERR("invalid parameter number <%d>\n", param_no); + return -1; +} + /**/ static int fixup_cass_retrieve(void **param, int param_no) { @@ -171,20 +193,16 @@ static int fixup_cass_retrieve(void **param, int param_no) static int free_fixup_cass_retrieve(void **param, int param_no) { if(param_no == 1) { - LM_WARN("free function has not been defined for spve\n"); - return 0; + return fixup_free_spve_null(param, 1); } if(param_no == 2) { - LM_WARN("free function has not been defined for spve\n"); - return 0; + return fixup_free_spve_null(param, 1); } if(param_no == 3) { - LM_WARN("free function has not been defined for spve\n"); - return 0; + return fixup_free_spve_null(param, 1); } if(param_no == 4) { - LM_WARN("free function has not been defined for spve\n"); - return 0; + return fixup_free_spve_null(param, 1); } if(param_no == 5) { return fixup_free_pvar_null(param, 1);
1
0
0
0
git:master:8e2a41e5: ndb_cassandra: reformat exported structures
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 8e2a41e57ab428f64cc78a76ea4716186357b9d5 URL:
https://github.com/kamailio/kamailio/commit/8e2a41e57ab428f64cc78a76ea47161…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T15:14:11+01:00 ndb_cassandra: reformat exported structures --- Modified: src/modules/ndb_cassandra/ndb_cassandra.c --- Diff:
https://github.com/kamailio/kamailio/commit/8e2a41e57ab428f64cc78a76ea47161…
Patch:
https://github.com/kamailio/kamailio/commit/8e2a41e57ab428f64cc78a76ea47161…
--- diff --git a/src/modules/ndb_cassandra/ndb_cassandra.c b/src/modules/ndb_cassandra/ndb_cassandra.c index eb748c914f9..7de3d608fda 100644 --- a/src/modules/ndb_cassandra/ndb_cassandra.c +++ b/src/modules/ndb_cassandra/ndb_cassandra.c @@ -65,31 +65,39 @@ static int cass_insert_f(struct sip_msg *msg, char *keyspace, static int cass_retrieve_f(struct sip_msg *msg, char *keyspace, char *column_family, char *key, char *column, char *value); +/* clang-format off */ /* Exported functions */ static cmd_export_t cmds[] = { - {"cass_insert", (cmd_function)cass_insert_f, 5, fixup_cass_insert, 0, - REQUEST_ROUTE | ONREPLY_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE}, - {"cass_retrieve", (cmd_function)cass_retrieve_f, 5, fixup_cass_retrieve, - free_fixup_cass_retrieve, - REQUEST_ROUTE | ONREPLY_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE}, - {0, 0, 0, 0, 0, 0}}; + {"cass_insert", (cmd_function)cass_insert_f, 5, + fixup_cass_insert, 0, + REQUEST_ROUTE | ONREPLY_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE}, + {"cass_retrieve", (cmd_function)cass_retrieve_f, 5, + fixup_cass_retrieve, free_fixup_cass_retrieve, + REQUEST_ROUTE | ONREPLY_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE}, + {0, 0, 0, 0, 0, 0} +}; /* Exported parameters */ static param_export_t params[] = { - {"host", PARAM_STR, &host}, {"port", PARAM_INT, &port}, {0, 0, 0}}; + {"host", PARAM_STR, &host}, + {"port", PARAM_INT, &port}, + {0, 0, 0} +}; /* Module interface */ struct module_exports exports = { - "ndb_cassandra", DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* Exported functions */ - params, /* Exported parameters */ - 0, /* exported RPC methods */ - 0, /* exported pseudo-variables */ - 0, /* response function*/ - mod_init, /* module initialization function */ - child_init, /* per-child init function */ - destroy /* destroy function */ + "ndb_cassandra", + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* Exported functions */ + params, /* Exported parameters */ + 0, /* exported RPC methods */ + 0, /* exported pseudo-variables */ + 0, /* response function*/ + mod_init, /* module initialization function */ + child_init, /* per-child init function */ + destroy /* destroy function */ }; +/* clang-format on */ /* Module initialization function */ static int mod_init(void)
1
0
0
0
git:master:2e341d4d: ndb_mongodb: add fixup_free* to exported functions
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 2e341d4d89f228e4f6910c564c16fde1d9a64b1a URL:
https://github.com/kamailio/kamailio/commit/2e341d4d89f228e4f6910c564c16fde…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T15:01:30+01:00 ndb_mongodb: add fixup_free* to exported functions --- Modified: src/modules/ndb_mongodb/ndb_mongodb_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/2e341d4d89f228e4f6910c564c16fde…
Patch:
https://github.com/kamailio/kamailio/commit/2e341d4d89f228e4f6910c564c16fde…
--- diff --git a/src/modules/ndb_mongodb/ndb_mongodb_mod.c b/src/modules/ndb_mongodb/ndb_mongodb_mod.c index 46cb8ec5045..6babeeaccd6 100644 --- a/src/modules/ndb_mongodb/ndb_mongodb_mod.c +++ b/src/modules/ndb_mongodb/ndb_mongodb_mod.c @@ -50,6 +50,7 @@ static int w_mongodb_cmd_simple(sip_msg_t *msg, char *ssrv, char *sdname, static int w_mongodb_cmd(sip_msg_t *msg, char *ssrv, char *sdname, char *scname, char *scmd, char *sres); static int fixup_mongodb_cmd(void **param, int param_no); +static int fixup_free_mongodb_cmd(void **param, int param_no); static int w_mongodb_free_reply(struct sip_msg *msg, char *res); static int w_mongodb_next_reply(struct sip_msg *msg, char *res); @@ -69,17 +70,17 @@ static pv_export_t mod_pvs[] = { static cmd_export_t cmds[] = { {"mongodb_find", (cmd_function)w_mongodb_find, 5, - fixup_mongodb_cmd, 0, ANY_ROUTE}, + fixup_mongodb_cmd, fixup_free_mongodb_cmd, ANY_ROUTE}, {"mongodb_find_one", (cmd_function)w_mongodb_find_one, 5, - fixup_mongodb_cmd, 0, ANY_ROUTE}, + fixup_mongodb_cmd, fixup_free_mongodb_cmd, ANY_ROUTE}, {"mongodb_cmd_simple", (cmd_function)w_mongodb_cmd_simple, 5, - fixup_mongodb_cmd, 0, ANY_ROUTE}, + fixup_mongodb_cmd, fixup_free_mongodb_cmd, ANY_ROUTE}, {"mongodb_cmd", (cmd_function)w_mongodb_cmd, 5, - fixup_mongodb_cmd, 0, ANY_ROUTE}, + fixup_mongodb_cmd, fixup_free_mongodb_cmd, ANY_ROUTE}, {"mongodb_free", (cmd_function)w_mongodb_free_reply, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"mongodb_next", (cmd_function)w_mongodb_next_reply, 1, - fixup_spve_null, 0, ANY_ROUTE}, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"bind_ndb_mongodb", (cmd_function)bind_ndb_mongodb, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0} }; @@ -250,6 +251,11 @@ static int fixup_mongodb_cmd(void **param, int param_no) return fixup_spve_null(param, 1); } +static int fixup_free_mongodb_cmd(void **param, int param_no) +{ + return fixup_free_spve_null(param, 1); +} + /** * */
1
0
0
0
git:master:e5c7b4ea: ndb_mongodb: reformat exported structures
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: e5c7b4ea8246f11815ab49fa0219ce2a7be3dd65 URL:
https://github.com/kamailio/kamailio/commit/e5c7b4ea8246f11815ab49fa0219ce2…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T14:59:53+01:00 ndb_mongodb: reformat exported structures --- Modified: src/modules/ndb_mongodb/ndb_mongodb_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/e5c7b4ea8246f11815ab49fa0219ce2…
Patch:
https://github.com/kamailio/kamailio/commit/e5c7b4ea8246f11815ab49fa0219ce2…
--- diff --git a/src/modules/ndb_mongodb/ndb_mongodb_mod.c b/src/modules/ndb_mongodb/ndb_mongodb_mod.c index a778a492f38..46cb8ec5045 100644 --- a/src/modules/ndb_mongodb/ndb_mongodb_mod.c +++ b/src/modules/ndb_mongodb/ndb_mongodb_mod.c @@ -60,44 +60,48 @@ static int pv_get_mongodb( struct sip_msg *msg, pv_param_t *param, pv_value_t *res); static int pv_parse_mongodb_name(pv_spec_p sp, str *in); +/* clang-format off */ static pv_export_t mod_pvs[] = { - {{"mongodb", sizeof("mongodb") - 1}, PVT_OTHER, pv_get_mongodb, 0, - pv_parse_mongodb_name, 0, 0, 0}, - {{0, 0}, 0, 0, 0, 0, 0, 0, 0}}; - - -static cmd_export_t cmds[] = {{"mongodb_find", (cmd_function)w_mongodb_find, 5, - fixup_mongodb_cmd, 0, ANY_ROUTE}, - {"mongodb_find_one", (cmd_function)w_mongodb_find_one, 5, - fixup_mongodb_cmd, 0, ANY_ROUTE}, - {"mongodb_cmd_simple", (cmd_function)w_mongodb_cmd_simple, 5, - fixup_mongodb_cmd, 0, ANY_ROUTE}, - {"mongodb_cmd", (cmd_function)w_mongodb_cmd, 5, fixup_mongodb_cmd, 0, - ANY_ROUTE}, - {"mongodb_free", (cmd_function)w_mongodb_free_reply, 1, fixup_spve_null, - 0, ANY_ROUTE}, - {"mongodb_next", (cmd_function)w_mongodb_next_reply, 1, fixup_spve_null, - 0, ANY_ROUTE}, - {"bind_ndb_mongodb", (cmd_function)bind_ndb_mongodb, 0, 0, 0, 0}, - {0, 0, 0, 0, 0, 0}}; + {{"mongodb", sizeof("mongodb") - 1}, PVT_OTHER, pv_get_mongodb, 0, + pv_parse_mongodb_name, 0, 0, 0}, + {{0, 0}, 0, 0, 0, 0, 0, 0, 0} +}; + +static cmd_export_t cmds[] = { + {"mongodb_find", (cmd_function)w_mongodb_find, 5, + fixup_mongodb_cmd, 0, ANY_ROUTE}, + {"mongodb_find_one", (cmd_function)w_mongodb_find_one, 5, + fixup_mongodb_cmd, 0, ANY_ROUTE}, + {"mongodb_cmd_simple", (cmd_function)w_mongodb_cmd_simple, 5, + fixup_mongodb_cmd, 0, ANY_ROUTE}, + {"mongodb_cmd", (cmd_function)w_mongodb_cmd, 5, + fixup_mongodb_cmd, 0, ANY_ROUTE}, + {"mongodb_free", (cmd_function)w_mongodb_free_reply, 1, + fixup_spve_null, 0, ANY_ROUTE}, + {"mongodb_next", (cmd_function)w_mongodb_next_reply, 1, + fixup_spve_null, 0, ANY_ROUTE}, + {"bind_ndb_mongodb", (cmd_function)bind_ndb_mongodb, 0, 0, 0, 0}, + {0, 0, 0, 0, 0, 0} +}; static param_export_t params[] = { - {"server", PARAM_STRING | PARAM_USE_FUNC, (void *)mongodb_srv_param}, - {0, 0, 0}}; + {"server", PARAM_STRING | PARAM_USE_FUNC, (void *)mongodb_srv_param}, + {0, 0, 0} +}; struct module_exports exports = { - "ndb_mongodb", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /*��exported��functions��*/ - params, /*��exported��params��*/ - 0, /*��exported��RPC��methods��*/ - mod_pvs, /* exported pseudo-variables */ - 0, /* response function */ - 0, /* module��initialization��function */ - child_init, /* per child init function */ - mod_destroy /* destroy function */ + "ndb_mongodb", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /*��exported��functions��*/ + params, /*��exported��params��*/ + 0, /*��exported��RPC��methods��*/ + mod_pvs, /* exported pseudo-variables */ + 0, /* response function */ + 0, /* module��initialization��function */ + child_init, /* per child init function */ + mod_destroy /* destroy function */ }; - +/* clang-format on */ /* each child get a new connection to the database */ static int child_init(int rank)
1
0
0
0
git:master:a166327a: ndb_redis: add fixup_free* to exported functions
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: a166327a4fbd77a71f88085474eba85fe7ebdf32 URL:
https://github.com/kamailio/kamailio/commit/a166327a4fbd77a71f88085474eba85…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T14:56:22+01:00 ndb_redis: add fixup_free* to exported functions --- Modified: src/modules/ndb_redis/ndb_redis_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/a166327a4fbd77a71f88085474eba85…
Patch:
https://github.com/kamailio/kamailio/commit/a166327a4fbd77a71f88085474eba85…
--- diff --git a/src/modules/ndb_redis/ndb_redis_mod.c b/src/modules/ndb_redis/ndb_redis_mod.c index 13b188ee266..c3ac9eb3cfa 100644 --- a/src/modules/ndb_redis/ndb_redis_mod.c +++ b/src/modules/ndb_redis/ndb_redis_mod.c @@ -77,6 +77,7 @@ static int w_redis_pipe_cmd5(struct sip_msg *msg, char *ssrv, char *scmd, static int w_redis_pipe_cmd6(struct sip_msg *msg, char *ssrv, char *scmd, char *sargv1, char *sargv2, char *sargv3, char *sres); static int fixup_redis_cmd6(void **param, int param_no); +static int fixup_free_redis_cmd6(void **param, int param_no); static int w_redis_execute(struct sip_msg *msg, char *ssrv); static int w_redis_free_reply(struct sip_msg *msg, char *res); @@ -103,28 +104,27 @@ static pv_export_t mod_pvs[] = { {{0, 0}, 0, 0, 0, 0, 0, 0, 0} }; - static cmd_export_t cmds[] = { {"redis_cmd", (cmd_function)w_redis_cmd3, 3, - fixup_redis_cmd6, 0, ANY_ROUTE}, - {"redis_cmd", (cmd_function)w_redis_cmd4, 4, fixup_redis_cmd6, 0, - ANY_ROUTE}, - {"redis_cmd", (cmd_function)w_redis_cmd5, 5, fixup_redis_cmd6, 0, - ANY_ROUTE}, - {"redis_cmd", (cmd_function)w_redis_cmd6, 6, fixup_redis_cmd6, 0, - ANY_ROUTE}, - {"redis_pipe_cmd", (cmd_function)w_redis_pipe_cmd3, 3, fixup_redis_cmd6, - 0, ANY_ROUTE}, - {"redis_pipe_cmd", (cmd_function)w_redis_pipe_cmd4, 4, fixup_redis_cmd6, - 0, ANY_ROUTE}, - {"redis_pipe_cmd", (cmd_function)w_redis_pipe_cmd5, 5, fixup_redis_cmd6, - 0, ANY_ROUTE}, - {"redis_pipe_cmd", (cmd_function)w_redis_pipe_cmd6, 6, fixup_redis_cmd6, - 0, ANY_ROUTE}, + fixup_redis_cmd6, fixup_free_redis_cmd6, ANY_ROUTE}, + {"redis_cmd", (cmd_function)w_redis_cmd4, 4, + fixup_redis_cmd6, fixup_free_redis_cmd6, ANY_ROUTE}, + {"redis_cmd", (cmd_function)w_redis_cmd5, 5, + fixup_redis_cmd6, fixup_free_redis_cmd6, ANY_ROUTE}, + {"redis_cmd", (cmd_function)w_redis_cmd6, 6, + fixup_redis_cmd6, fixup_free_redis_cmd6, ANY_ROUTE}, + {"redis_pipe_cmd", (cmd_function)w_redis_pipe_cmd3, 3, + fixup_redis_cmd6, fixup_free_redis_cmd6, ANY_ROUTE}, + {"redis_pipe_cmd", (cmd_function)w_redis_pipe_cmd4, 4, + fixup_redis_cmd6, fixup_free_redis_cmd6, ANY_ROUTE}, + {"redis_pipe_cmd", (cmd_function)w_redis_pipe_cmd5, 5, + fixup_redis_cmd6, fixup_free_redis_cmd6, ANY_ROUTE}, + {"redis_pipe_cmd", (cmd_function)w_redis_pipe_cmd6, 6, + fixup_redis_cmd6, fixup_free_redis_cmd6, ANY_ROUTE}, {"redis_execute", (cmd_function)w_redis_execute, 1, fixup_redis_cmd6, 0, ANY_ROUTE}, - {"redis_free", (cmd_function)w_redis_free_reply, 1, fixup_spve_null, 0, - ANY_ROUTE}, + {"redis_free", (cmd_function)w_redis_free_reply, 1, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"bind_ndb_redis", (cmd_function)bind_ndb_redis, 0, 0, 0, 0}, @@ -562,6 +562,10 @@ static int fixup_redis_cmd6(void **param, int param_no) return fixup_spve_null(param, 1); } +static int fixup_free_redis_cmd6(void **param, int param_no) +{ + return fixup_free_spve_null(param, 1); +} /** *
1
0
0
0
git:master:793a494f: outbound: reformat exported structures
by Victor Seva
12 Dec '24
12 Dec '24
Module: kamailio Branch: master Commit: 793a494f5b23f2ef5e82664924c3bed3893105bb URL:
https://github.com/kamailio/kamailio/commit/793a494f5b23f2ef5e82664924c3bed…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-12T14:50:42+01:00 outbound: reformat exported structures --- Modified: src/modules/outbound/outbound_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/793a494f5b23f2ef5e82664924c3bed…
Patch:
https://github.com/kamailio/kamailio/commit/793a494f5b23f2ef5e82664924c3bed…
--- diff --git a/src/modules/outbound/outbound_mod.c b/src/modules/outbound/outbound_mod.c index 3ca15b38bdd..f64e2dfbe28 100644 --- a/src/modules/outbound/outbound_mod.c +++ b/src/modules/outbound/outbound_mod.c @@ -61,25 +61,32 @@ static unsigned int ob_force_no_flag = (unsigned int)-1; static str ob_key = {0, 0}; static str flow_token_secret = {0, 0}; +/* clang-format off */ static cmd_export_t cmds[] = { - {"bind_ob", (cmd_function)bind_ob, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 0}}; + {"bind_ob", (cmd_function)bind_ob, 1, 0, 0, 0}, + {0, 0, 0, 0, 0, 0} +}; static param_export_t params[] = { - {"force_outbound_flag", PARAM_INT, &ob_force_flag}, - {"force_no_outbound_flag", PARAM_INT, &ob_force_no_flag}, - {"flow_token_secret", PARAM_STRING, &flow_token_secret}, {0, 0, 0}}; + {"force_outbound_flag", PARAM_INT, &ob_force_flag}, + {"force_no_outbound_flag", PARAM_INT, &ob_force_no_flag}, + {"flow_token_secret", PARAM_STRING, &flow_token_secret}, + {0, 0, 0} +}; struct module_exports exports = { - "outbound", DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* exported functions */ - params, /* exported parameters */ - 0, /* exported��RPC��methods */ - 0, /* exported pseudo-variables */ - 0, /* response��function */ - mod_init, /* module initialization function */ - 0, /* per-child initialization function */ - destroy /* destroy function */ + "outbound", + 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 */ + destroy /* module destroy function */ }; +/* clang-format on */ static void mod_init_openssl(void) {
1
0
0
0
← Newer
1
...
47
48
49
50
51
52
53
...
1808
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
Results per page:
10
25
50
100
200