kamailio.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
List overview
Download
sr-dev
December 2024
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
sr-dev@lists.kamailio.org
17 participants
343 discussions
Start a n
N
ew thread
git:master:5664d861: p_usrloc: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: 5664d861d06ec105196c51ac3dcc9f136b5f5b74 URL:
https://github.com/kamailio/kamailio/commit/5664d861d06ec105196c51ac3dcc9f1…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-11T22:09:05+01:00 p_usrloc: reformat exported structures --- Modified: src/modules/p_usrloc/p_usrloc_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/5664d861d06ec105196c51ac3dcc9f1…
Patch:
https://github.com/kamailio/kamailio/commit/5664d861d06ec105196c51ac3dcc9f1…
1 month, 3 weeks
1
0
0
0
git:master:a096d09b: path: add fixup_free* to exported functions
by Victor Seva
Module: kamailio Branch: master Commit: a096d09bb54cd4259b46356c5cc24a53d751baf5 URL:
https://github.com/kamailio/kamailio/commit/a096d09bb54cd4259b46356c5cc24a5…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-11T22:05:19+01:00 path: add fixup_free* to exported functions --- Modified: src/modules/path/path_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/a096d09bb54cd4259b46356c5cc24a5…
Patch:
https://github.com/kamailio/kamailio/commit/a096d09bb54cd4259b46356c5cc24a5…
--- diff --git a/src/modules/path/path_mod.c b/src/modules/path/path_mod.c index ef34b8902cb..5c25278010c 100644 --- a/src/modules/path/path_mod.c +++ b/src/modules/path/path_mod.c @@ -88,17 +88,18 @@ ob_api_t path_obb; * Exported functions */ static cmd_export_t cmds[] = { - {"add_path", (cmd_function)add_path, 0, 0, 0, REQUEST_ROUTE}, - {"add_path", (cmd_function)add_path_usr, 1, fixup_spve_null, 0, - REQUEST_ROUTE}, - {"add_path", (cmd_function)add_path_usr, 2, fixup_spve_spve, 0, - REQUEST_ROUTE}, - {"add_path_received", (cmd_function)add_path_received, 0, 0, 0, - REQUEST_ROUTE}, + {"add_path", (cmd_function)add_path, 0, + 0, 0, REQUEST_ROUTE}, + {"add_path", (cmd_function)add_path_usr, 1, + fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE}, + {"add_path", (cmd_function)add_path_usr, 2, + fixup_spve_spve, fixup_free_spve_spve, REQUEST_ROUTE}, + {"add_path_received", (cmd_function)add_path_received, 0, + 0, 0, REQUEST_ROUTE}, {"add_path_received", (cmd_function)add_path_received_usr, 1, - fixup_spve_null, 0, REQUEST_ROUTE}, + fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE}, {"add_path_received", (cmd_function)add_path_received_usr, 2, - fixup_spve_spve, 0, REQUEST_ROUTE}, + fixup_spve_spve, fixup_free_spve_spve, REQUEST_ROUTE}, {0, 0, 0, 0, 0, 0} };
1 month, 3 weeks
1
0
0
0
git:master:ca415a35: path: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: ca415a35092ffbefbfdde714e7c7759470342907 URL:
https://github.com/kamailio/kamailio/commit/ca415a35092ffbefbfdde714e7c7759…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-11T22:03:20+01:00 path: reformat exported structures --- Modified: src/modules/path/path_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/ca415a35092ffbefbfdde714e7c7759…
Patch:
https://github.com/kamailio/kamailio/commit/ca415a35092ffbefbfdde714e7c7759…
--- diff --git a/src/modules/path/path_mod.c b/src/modules/path/path_mod.c index a30ff41cbcd..ef34b8902cb 100644 --- a/src/modules/path/path_mod.c +++ b/src/modules/path/path_mod.c @@ -83,51 +83,53 @@ struct rr_binds path_rrb; */ ob_api_t path_obb; +/* clang-format off */ /*! \brief * Exported functions */ static cmd_export_t cmds[] = { - {"add_path", (cmd_function)add_path, 0, 0, 0, REQUEST_ROUTE}, - {"add_path", (cmd_function)add_path_usr, 1, fixup_spve_null, 0, - REQUEST_ROUTE}, - {"add_path", (cmd_function)add_path_usr, 2, fixup_spve_spve, 0, - REQUEST_ROUTE}, - {"add_path_received", (cmd_function)add_path_received, 0, 0, 0, - REQUEST_ROUTE}, - {"add_path_received", (cmd_function)add_path_received_usr, 1, - fixup_spve_null, 0, REQUEST_ROUTE}, - {"add_path_received", (cmd_function)add_path_received_usr, 2, - fixup_spve_spve, 0, REQUEST_ROUTE}, - {0, 0, 0, 0, 0, 0}}; - + {"add_path", (cmd_function)add_path, 0, 0, 0, REQUEST_ROUTE}, + {"add_path", (cmd_function)add_path_usr, 1, fixup_spve_null, 0, + REQUEST_ROUTE}, + {"add_path", (cmd_function)add_path_usr, 2, fixup_spve_spve, 0, + REQUEST_ROUTE}, + {"add_path_received", (cmd_function)add_path_received, 0, 0, 0, + REQUEST_ROUTE}, + {"add_path_received", (cmd_function)add_path_received_usr, 1, + fixup_spve_null, 0, REQUEST_ROUTE}, + {"add_path_received", (cmd_function)add_path_received_usr, 2, + fixup_spve_spve, 0, REQUEST_ROUTE}, + {0, 0, 0, 0, 0, 0} +}; /*! \brief * Exported parameters */ static param_export_t params[] = { - {"use_received", PARAM_INT, &path_use_received}, - {"received_format", PARAM_INT, &path_received_format}, - {"enable_r2", PARAM_INT, &path_enable_r2}, - {"sockname_mode", PARAM_INT, &path_sockname_mode}, - {"received_name", PARAM_STR, &path_received_name}, {0, 0, 0}}; - + {"use_received", PARAM_INT, &path_use_received}, + {"received_format", PARAM_INT, &path_received_format}, + {"enable_r2", PARAM_INT, &path_enable_r2}, + {"sockname_mode", PARAM_INT, &path_sockname_mode}, + {"received_name", PARAM_STR, &path_received_name}, + {0, 0, 0} +}; /*! \brief * Module interface */ struct module_exports exports = { - "path", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* Exported functions */ - params, /* Exported parameters */ - 0, /* RPC method exports */ - 0, /* exported pseudo-variables */ - 0, /* response function */ - mod_init, /* module initialization function */ - 0, /* child initialization function */ - 0 /* destroy function */ + "path", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + 0, /* RPC method exports */ + 0, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module initialization function */ + 0, /* per-child init function */ + 0 /* module destroy function */ }; - +/* clang-format on */ static int mod_init(void) {
1 month, 3 weeks
1
0
0
0
git:master:e1070f23: pdt: add fixup_free* to exported functions
by Victor Seva
Module: kamailio Branch: master Commit: e1070f23f748ffdcf448562c2b1f99286ed24692 URL:
https://github.com/kamailio/kamailio/commit/e1070f23f748ffdcf448562c2b1f992…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-11T22:00:03+01:00 pdt: add fixup_free* to exported functions --- Modified: src/modules/pdt/pdt.c --- Diff:
https://github.com/kamailio/kamailio/commit/e1070f23f748ffdcf448562c2b1f992…
Patch:
https://github.com/kamailio/kamailio/commit/e1070f23f748ffdcf448562c2b1f992…
--- diff --git a/src/modules/pdt/pdt.c b/src/modules/pdt/pdt.c index 5237700cbc8..267f53d48c7 100644 --- a/src/modules/pdt/pdt.c +++ b/src/modules/pdt/pdt.c @@ -92,6 +92,7 @@ static int pd_translate(sip_msg_t *msg, str *sdomain, int rmode, int fmode); static int w_pd_translate(struct sip_msg *msg, char *str1, char *str2); static int fixup_translate(void **param, int param_no); +static int fixup_free_translate(void **param, int param_no); static int update_new_uri(struct sip_msg *msg, int plen, str *d, int mode); static int pdt_init_rpc(void); @@ -100,12 +101,12 @@ static int pdt_init_rpc(void); static cmd_export_t cmds[] = { {"prefix2domain", (cmd_function)w_prefix2domain, 0, 0, 0, REQUEST_ROUTE | FAILURE_ROUTE}, - {"prefix2domain", (cmd_function)w_prefix2domain_1, 1, fixup_igp_null, 0, - REQUEST_ROUTE | FAILURE_ROUTE}, - {"prefix2domain", (cmd_function)w_prefix2domain_2, 2, fixup_igp_igp, 0, - REQUEST_ROUTE | FAILURE_ROUTE}, - {"pd_translate", (cmd_function)w_pd_translate, 2, fixup_translate, 0, - REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE}, + {"prefix2domain", (cmd_function)w_prefix2domain_1, 1, + fixup_igp_null, fixup_free_igp_null, REQUEST_ROUTE | FAILURE_ROUTE}, + {"prefix2domain", (cmd_function)w_prefix2domain_2, 2, + fixup_igp_igp, fixup_free_igp_igp, REQUEST_ROUTE | FAILURE_ROUTE}, + {"pd_translate", (cmd_function)w_pd_translate, 2, + fixup_translate, fixup_free_translate, REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE}, {0, 0, 0, 0, 0, 0} }; @@ -123,7 +124,6 @@ static param_export_t params[] = { {0, 0, 0} }; - struct module_exports exports = { "pdt", /* module name */ DEFAULT_DLFLAGS, /* dlopen flags */ @@ -429,6 +429,15 @@ static int fixup_translate(void **param, int param_no) return 0; } +static int fixup_free_translate(void **param, int param_no) +{ + if(param_no == 1) + return fixup_free_spve_null(param, 1); + if(param_no == 2) + return fixup_free_igp_null(param, 1); + return 0; +} + /** * */
1 month, 3 weeks
1
0
0
0
git:master:bec7e25a: peering: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: bec7e25a3fd3b3ef7f6770f9f7f4a3ea32ddd7b5 URL:
https://github.com/kamailio/kamailio/commit/bec7e25a3fd3b3ef7f6770f9f7f4a3e…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-11T21:57:47+01:00 peering: reformat exported structures --- Modified: src/modules/peering/peering.c --- Diff:
https://github.com/kamailio/kamailio/commit/bec7e25a3fd3b3ef7f6770f9f7f4a3e…
Patch:
https://github.com/kamailio/kamailio/commit/bec7e25a3fd3b3ef7f6770f9f7f4a3e…
--- diff --git a/src/modules/peering/peering.c b/src/modules/peering/peering.c index dfd0ace84c7..5cb74d52319 100644 --- a/src/modules/peering/peering.c +++ b/src/modules/peering/peering.c @@ -59,44 +59,44 @@ static char *radius_config = DEFAULT_RADIUSCLIENT_CONF; int verify_destination_service_type = -1; int verify_source_service_type = -1; +/* clang-format off */ /* * Exported functions */ static cmd_export_t cmds[] = { - {"verify_destination", (cmd_function)verify_destination, 0, 0, 0, - REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE | LOCAL_ROUTE}, - {"verify_source", (cmd_function)verify_source, 0, 0, 0, - REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE | LOCAL_ROUTE}, - {0, 0, 0, 0, 0, 0}}; - + {"verify_destination", (cmd_function)verify_destination, 0, + 0, 0, REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE | LOCAL_ROUTE}, + {"verify_source", (cmd_function)verify_source, 0, + 0, 0, REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE | LOCAL_ROUTE}, + {0, 0, 0, 0, 0, 0} +}; /* * Exported parameters */ static param_export_t params[] = { - {"radius_config", PARAM_STRING, &radius_config}, - {"verify_destination_service_type", PARAM_INT, - &verify_destination_service_type}, - {"verify_source_service_type", PARAM_INT, &verify_source_service_type}, - {0, 0, 0}}; - + {"radius_config", PARAM_STRING, &radius_config}, + {"verify_destination_service_type", PARAM_INT, &verify_destination_service_type}, + {"verify_source_service_type", PARAM_INT, &verify_source_service_type}, + {0, 0, 0} +}; /* * Module interface */ struct module_exports exports = { - "peering", /* 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 */ - 0, /* per-child init function */ - 0 /* module destroy function */ + "peering", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + 0, /* RPC method exports */ + 0, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module initialization function */ + 0, /* per-child init function */ + 0 /* module destroy function */ }; - +/* clang-format on */ /* * Module initialization function
1 month, 3 weeks
1
0
0
0
git:master:c7c25190: pike: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: c7c25190e008723a78c827a40a52363b116013f5 URL:
https://github.com/kamailio/kamailio/commit/c7c25190e008723a78c827a40a52363…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-11T21:52:33+01:00 pike: reformat exported structures --- Modified: src/modules/pike/pike.c --- Diff:
https://github.com/kamailio/kamailio/commit/c7c25190e008723a78c827a40a52363…
Patch:
https://github.com/kamailio/kamailio/commit/c7c25190e008723a78c827a40a52363…
--- diff --git a/src/modules/pike/pike.c b/src/modules/pike/pike.c index e4791dd2046..f0191c6e003 100644 --- a/src/modules/pike/pike.c +++ b/src/modules/pike/pike.c @@ -60,33 +60,36 @@ int pike_log_level = L_WARN; gen_lock_t *pike_timer_lock = 0; pike_list_link_t *pike_timer = 0; - -static cmd_export_t cmds[] = {{"pike_check_req", (cmd_function)w_pike_check_req, - 0, 0, 0, REQUEST_ROUTE | ONREPLY_ROUTE}, - {"pike_check_ip", (cmd_function)w_pike_check_ip, 1, fixup_spve_null, - fixup_free_spve_null, REQUEST_ROUTE | ONREPLY_ROUTE}, - {0, 0, 0, 0, 0, 0}}; +/* clang-format off */ +static cmd_export_t cmds[] = { + {"pike_check_req", (cmd_function)w_pike_check_req, 0, + 0, 0, REQUEST_ROUTE | ONREPLY_ROUTE}, + {"pike_check_ip", (cmd_function)w_pike_check_ip, 1, + fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE | ONREPLY_ROUTE}, + {0, 0, 0, 0, 0, 0} +}; static param_export_t params[] = { - {"sampling_time_unit", PARAM_INT, &pike_time_unit}, - {"reqs_density_per_unit", PARAM_INT, &pike_max_reqs}, - {"remove_latency", PARAM_INT, &pike_timeout}, - {"pike_log_level", PARAM_INT, &pike_log_level}, {0, 0, 0}}; - + {"sampling_time_unit", PARAM_INT, &pike_time_unit}, + {"reqs_density_per_unit", PARAM_INT, &pike_max_reqs}, + {"remove_latency", PARAM_INT, &pike_timeout}, + {"pike_log_level", PARAM_INT, &pike_log_level}, + {0, 0, 0} +}; struct module_exports exports = { - "pike", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* cmd exports */ - params, /* param exports */ - 0, /* RPC method exports */ - 0, /* exported pseudo-variables */ - 0, /* response handling function */ - pike_init, /* module initialization function */ - 0, /* per-child init function */ - pike_exit /* module exit function */ + "pike", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + 0, /* RPC method exports */ + 0, /* exported pseudo-variables */ + 0, /* response handling function */ + pike_init, /* module initialization function */ + 0, /* per-child init function */ + pike_exit /* module destroy function */ }; - +/* clang-format on */ static int pike_init(void) {
1 month, 3 weeks
1
0
0
0
git:master:78594dbf: pipelimit: add fixup_free* to exported functions
by Victor Seva
Module: kamailio Branch: master Commit: 78594dbf653b46d24cc7eaa26ff28b43b0c024ce URL:
https://github.com/kamailio/kamailio/commit/78594dbf653b46d24cc7eaa26ff28b4…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-11T21:49:06+01:00 pipelimit: add fixup_free* to exported functions --- Modified: src/modules/pipelimit/pipelimit.c --- Diff:
https://github.com/kamailio/kamailio/commit/78594dbf653b46d24cc7eaa26ff28b4…
Patch:
https://github.com/kamailio/kamailio/commit/78594dbf653b46d24cc7eaa26ff28b4…
--- diff --git a/src/modules/pipelimit/pipelimit.c b/src/modules/pipelimit/pipelimit.c index a632a4cda51..10641ebed00 100644 --- a/src/modules/pipelimit/pipelimit.c +++ b/src/modules/pipelimit/pipelimit.c @@ -132,18 +132,22 @@ static int w_pl_drop_forced(struct sip_msg *, char *, char *); static int w_pl_drop(struct sip_msg *, char *, char *); static void destroy(void); static int fixup_pl_check3(void **param, int param_no); +static int fixup_free_pl_check3(void **param, int param_no); /* clang-format off */ static cmd_export_t cmds[] = { - {"pl_check", (cmd_function)w_pl_check, 1, fixup_spve_null, 0, ANY_ROUTE}, - {"pl_check", (cmd_function)w_pl_check3, 3, fixup_pl_check3, 0, ANY_ROUTE}, - {"pl_active", (cmd_function)w_pl_active, 1, fixup_spve_null, 0, ANY_ROUTE}, - {"pl_drop", (cmd_function)w_pl_drop_default, 0, 0, 0, - REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE | ONSEND_ROUTE}, - {"pl_drop", (cmd_function)w_pl_drop_forced, 1, fixup_uint_null, 0, - REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE | ONSEND_ROUTE}, - {"pl_drop", (cmd_function)w_pl_drop, 2, fixup_uint_uint, 0, - REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE | ONSEND_ROUTE}, + {"pl_check", (cmd_function)w_pl_check, 1, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, + {"pl_check", (cmd_function)w_pl_check3, 3, + fixup_pl_check3, fixup_free_pl_check3, ANY_ROUTE}, + {"pl_active", (cmd_function)w_pl_active, 1, + fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, + {"pl_drop", (cmd_function)w_pl_drop_default, 0, + 0, 0, REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE | ONSEND_ROUTE}, + {"pl_drop", (cmd_function)w_pl_drop_forced, 1, + fixup_uint_null, 0, REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE | ONSEND_ROUTE}, + {"pl_drop", (cmd_function)w_pl_drop, 2, + fixup_uint_uint, 0, REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE | ONSEND_ROUTE}, {0, 0, 0, 0, 0, 0} }; @@ -689,6 +693,17 @@ static int fixup_pl_check3(void **param, int param_no) return 0; } +static int fixup_free_pl_check3(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_igp_null(param, 1); + return 0; +} + static int pl_active(sip_msg_t *msg, str *pipeid) { pl_pipe_t *pipe = NULL;
1 month, 3 weeks
1
0
0
0
git:master:04cbace2: prefix_route: add fixup_free* to exported functions
by Victor Seva
Module: kamailio Branch: master Commit: 04cbace26b1e145c15fcff51445571cedfd4031d URL:
https://github.com/kamailio/kamailio/commit/04cbace26b1e145c15fcff51445571c…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-11T21:42:13+01:00 prefix_route: add fixup_free* to exported functions --- Modified: src/modules/prefix_route/prefix_route.c --- Diff:
https://github.com/kamailio/kamailio/commit/04cbace26b1e145c15fcff51445571c…
Patch:
https://github.com/kamailio/kamailio/commit/04cbace26b1e145c15fcff51445571c…
--- diff --git a/src/modules/prefix_route/prefix_route.c b/src/modules/prefix_route/prefix_route.c index 43c27900666..53d09f26ef9 100644 --- a/src/modules/prefix_route/prefix_route.c +++ b/src/modules/prefix_route/prefix_route.c @@ -326,7 +326,7 @@ static int prefix_route(struct sip_msg *msg, char *p1, char *p2) static cmd_export_t cmds[] = { {"prefix_route", prefix_route, 0, 0, 0, REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE}, - {"prefix_route", prefix_route, 1, fixup_spve_null, 0, ANY_ROUTE}, + {"prefix_route", prefix_route, 1, fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {0, 0, 0, 0, 0, 0} };
1 month, 3 weeks
1
0
0
0
git:master:713efe7b: prefix_route: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: 713efe7b382e9e1d83240f3e348cbf46db46f1de URL:
https://github.com/kamailio/kamailio/commit/713efe7b382e9e1d83240f3e348cbf4…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-11T21:41:17+01:00 prefix_route: reformat exported structures --- Modified: src/modules/prefix_route/prefix_route.c --- Diff:
https://github.com/kamailio/kamailio/commit/713efe7b382e9e1d83240f3e348cbf4…
Patch:
https://github.com/kamailio/kamailio/commit/713efe7b382e9e1d83240f3e348cbf4…
--- diff --git a/src/modules/prefix_route/prefix_route.c b/src/modules/prefix_route/prefix_route.c index af1e36ccb36..43c27900666 100644 --- a/src/modules/prefix_route/prefix_route.c +++ b/src/modules/prefix_route/prefix_route.c @@ -321,41 +321,36 @@ static int prefix_route(struct sip_msg *msg, char *p1, char *p2) return ki_prefix_route(msg, &user); } -/* - * Exported functions - */ + +/* clang-format off */ static cmd_export_t cmds[] = { - {"prefix_route", prefix_route, 0, 0, 0, - REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE}, - {"prefix_route", prefix_route, 1, fixup_spve_null, 0, ANY_ROUTE}, - {0, 0, 0, 0, 0, 0}}; + {"prefix_route", prefix_route, 0, 0, 0, + REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE}, + {"prefix_route", prefix_route, 1, fixup_spve_null, 0, ANY_ROUTE}, + {0, 0, 0, 0, 0, 0} +}; -/* - * Exported parameters - */ -static param_export_t params[] = {{"db_url", PARAM_STRING, &db_url}, - {"db_table", PARAM_STRING, &db_table}, - {"exit", PARAM_INT, &prefix_route_exit}, {0, 0, 0}}; +static param_export_t params[] = { + {"db_url", PARAM_STRING, &db_url}, + {"db_table", PARAM_STRING, &db_table}, + {"exit", PARAM_INT, &prefix_route_exit}, + {0, 0, 0} +}; -/* - * Module description - */ struct module_exports exports = { - "prefix_route", /* Module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* exported functions */ - params, /* exported parameters */ - pr_rpc, /* RPC methods */ - 0, /* pseudo-variables exports */ - 0, /* response function */ - mod_init, /* initialization function */ - 0, /* per-child init function */ - mod_destroy /* module destroy function */ + "prefix_route", /* Module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + pr_rpc, /* RPC method exports */ + 0, /* 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 */ -/** - * - */ /* clang-format off */ static sr_kemi_t sr_kemi_prefix_route_exports[] = { { str_init("prefix_route"), str_init("prefix_route"),
1 month, 3 weeks
1
0
0
0
git:master:0511e00f: presence: add fixup_free* to exported functions
by Victor Seva
Module: kamailio Branch: master Commit: 0511e00f9ece75a61b8a3799a3d75f08c2013afa URL:
https://github.com/kamailio/kamailio/commit/0511e00f9ece75a61b8a3799a3d75f0…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-11T21:35:08+01:00 presence: add fixup_free* to exported functions --- Modified: src/modules/presence/presence.c --- Diff:
https://github.com/kamailio/kamailio/commit/0511e00f9ece75a61b8a3799a3d75f0…
Patch:
https://github.com/kamailio/kamailio/commit/0511e00f9ece75a61b8a3799a3d75f0…
1 month, 3 weeks
1
0
0
0
← Newer
1
...
20
21
22
23
24
25
26
...
35
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
Results per page:
10
25
50
100
200