kamailio.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
List overview
Download
sr-dev
November 2024
----- 2024 -----
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
sr-dev@lists.kamailio.org
20 participants
351 discussions
Start a n
N
ew thread
git:master:82e653c0: corex: add fixup_free to file_read function
by Federico Cabiddu
Module: kamailio Branch: master Commit: 82e653c026219704a4c065e9a523f88c214b2faf URL:
https://github.com/kamailio/kamailio/commit/82e653c026219704a4c065e9a523f88…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com> Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com> Date: 2024-11-20T14:19:11+01:00 corex: add fixup_free to file_read function --- Modified: src/modules/corex/corex_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/82e653c026219704a4c065e9a523f88…
Patch:
https://github.com/kamailio/kamailio/commit/82e653c026219704a4c065e9a523f88…
--- diff --git a/src/modules/corex/corex_mod.c b/src/modules/corex/corex_mod.c index a6f06a2f26b..0fdf35060ea 100644 --- a/src/modules/corex/corex_mod.c +++ b/src/modules/corex/corex_mod.c @@ -79,6 +79,7 @@ static int w_is_faked_msg(sip_msg_t *msg, char *p1, char *p2); static int w_is_socket_name(sip_msg_t *msg, char *psockname, char *p2); static int fixup_file_op(void **param, int param_no); +static int fixup_free_file_op(void **param, int param_no); static sr_kemi_xval_t _sr_kemi_corex_xval = {0}; static str corex_evcb_reply_out = STR_NULL; @@ -148,7 +149,7 @@ static cmd_export_t cmds[] = { {"msg_iflag_is_set", (cmd_function)w_msg_iflag_is_set, 1, fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {"file_read", (cmd_function)w_file_read, 2, - fixup_file_op, 0, ANY_ROUTE}, + fixup_file_op, fixup_free_file_op, ANY_ROUTE}, {"file_write", (cmd_function)w_file_write, 2, fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE}, {"setxflag", (cmd_function)w_setxflag, 1, @@ -911,6 +912,23 @@ static int fixup_file_op(void **param, int param_no) return -1; } +/** + * + */ +static int fixup_free_file_op(void **param, int param_no) +{ + if(param_no == 1) { + return fixup_free_spve_null(param, 1); + } + + if(param_no == 2) { + return fixup_free_pvar_null(param, 1); + } + + LM_ERR("invalid parameter number <%d>\n", param_no); + return -1; +} + /** * */
1 week, 1 day
1
0
0
0
git:master:ef84f28a: cnxcc: add fixup_free function
by Federico Cabiddu
Module: kamailio Branch: master Commit: ef84f28a61b513a72f4abb96ec0fc1240223add1 URL:
https://github.com/kamailio/kamailio/commit/ef84f28a61b513a72f4abb96ec0fc12…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com> Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com> Date: 2024-11-20T14:19:11+01:00 cnxcc: add fixup_free function --- Modified: src/modules/cnxcc/cnxcc_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/ef84f28a61b513a72f4abb96ec0fc12…
Patch:
https://github.com/kamailio/kamailio/commit/ef84f28a61b513a72f4abb96ec0fc12…
--- diff --git a/src/modules/cnxcc/cnxcc_mod.c b/src/modules/cnxcc/cnxcc_mod.c index 0c59bb069b9..0f0fb7acf96 100644 --- a/src/modules/cnxcc/cnxcc_mod.c +++ b/src/modules/cnxcc/cnxcc_mod.c @@ -74,6 +74,7 @@ data_t _data; struct dlg_binds _dlgbinds; static int cnxcc_set_max_credit_fixup(void **param, int param_no); +static int cnxcc_set_max_credit_fixup_free(void **param, int param_no); /* * module core functions @@ -153,7 +154,7 @@ static pv_export_t mod_pvs[] = { static cmd_export_t cmds[] = { {"cnxcc_set_max_credit", (cmd_function) __set_max_credit, 6, - cnxcc_set_max_credit_fixup, NULL, ANY_ROUTE}, + cnxcc_set_max_credit_fixup, cnxcc_set_max_credit_fixup_free, ANY_ROUTE}, {"cnxcc_set_max_time", (cmd_function) __set_max_time, 2, fixup_spve_igp, fixup_free_spve_igp, ANY_ROUTE}, {"cnxcc_update_max_time", (cmd_function) __update_max_time, 2, @@ -238,6 +239,23 @@ static int cnxcc_set_max_credit_fixup(void **param, int param_no) } } +static int cnxcc_set_max_credit_fixup_free(void **param, int param_no) +{ + switch(param_no) { + case 1: + case 2: + case 3: + case 4: + return fixup_free_spve_all(param, param_no); + case 5: + case 6: + return fixup_free_igp_all(param, param_no); + default: + LM_ERR("unexpected parameter number: %d\n", param_no); + return E_CFG; + } +} + static int __mod_init(void) { int len;
1 week, 1 day
1
0
0
0
git:master:43563cf9: uid_avp_db: add fixup_free* to exported functions
by Victor Seva
Module: kamailio Branch: master Commit: 43563cf9888386aa0d7e4d5f63e9ee1147777e6c URL:
https://github.com/kamailio/kamailio/commit/43563cf9888386aa0d7e4d5f63e9ee1…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-20T14:16:50+01:00 uid_avp_db: add fixup_free* to exported functions --- Modified: src/modules/uid_avp_db/extra_attrs.c Modified: src/modules/uid_avp_db/extra_attrs.h Modified: src/modules/uid_avp_db/uid_avp_db.c --- Diff:
https://github.com/kamailio/kamailio/commit/43563cf9888386aa0d7e4d5f63e9ee1…
Patch:
https://github.com/kamailio/kamailio/commit/43563cf9888386aa0d7e4d5f63e9ee1…
--- diff --git a/src/modules/uid_avp_db/extra_attrs.c b/src/modules/uid_avp_db/extra_attrs.c index c8fde1bb184..171ea041ac0 100644 --- a/src/modules/uid_avp_db/extra_attrs.c +++ b/src/modules/uid_avp_db/extra_attrs.c @@ -459,6 +459,14 @@ int extra_attrs_fixup(void **param, int param_no) return 0; } +int extra_attrs_fixup_free(void **param, int param_no) +{ + if(param_no == 2) { + return fixup_free_fparam_2(param, param_no); + } + return 0; +} + /******* locking *******/ #define LOCK_CNT 32 diff --git a/src/modules/uid_avp_db/extra_attrs.h b/src/modules/uid_avp_db/extra_attrs.h index bd5d1933c47..ba35d34bdfd 100644 --- a/src/modules/uid_avp_db/extra_attrs.h +++ b/src/modules/uid_avp_db/extra_attrs.h @@ -16,6 +16,7 @@ int save_extra_attrs(struct sip_msg *msg, char *_table, char *_id); int remove_extra_attrs(struct sip_msg *msg, char *_table, char *_id); int extra_attrs_fixup(void **param, int param_no); +int extra_attrs_fixup_free(void **param, int param_no); int lock_extra_attrs(struct sip_msg *msg, char *_table, char *_id); int unlock_extra_attrs(struct sip_msg *msg, char *_table, char *_id); diff --git a/src/modules/uid_avp_db/uid_avp_db.c b/src/modules/uid_avp_db/uid_avp_db.c index 20ffca560d3..372e898c51a 100644 --- a/src/modules/uid_avp_db/uid_avp_db.c +++ b/src/modules/uid_avp_db/uid_avp_db.c @@ -76,16 +76,16 @@ static cmd_export_t cmds[] = { {"load_attrs", load_attrs, 2, attrs_fixup, 0, REQUEST_ROUTE | FAILURE_ROUTE}, /* functions for loading/storing flagged attributes into DB */ - {"load_extra_attrs", load_extra_attrs, 2, extra_attrs_fixup, 0, + {"load_extra_attrs", load_extra_attrs, 2, extra_attrs_fixup, extra_attrs_fixup_free, REQUEST_ROUTE | ONREPLY_ROUTE | FAILURE_ROUTE}, - {"save_extra_attrs", save_extra_attrs, 2, extra_attrs_fixup, 0, + {"save_extra_attrs", save_extra_attrs, 2, extra_attrs_fixup, extra_attrs_fixup_free, REQUEST_ROUTE | ONREPLY_ROUTE | FAILURE_ROUTE}, - {"remove_extra_attrs", remove_extra_attrs, 2, extra_attrs_fixup, 0, + {"remove_extra_attrs", remove_extra_attrs, 2, extra_attrs_fixup, extra_attrs_fixup_free, REQUEST_ROUTE | ONREPLY_ROUTE | FAILURE_ROUTE}, /* locking attrs - needed for proper work! */ - {"lock_extra_attrs", lock_extra_attrs, 2, extra_attrs_fixup, 0, + {"lock_extra_attrs", lock_extra_attrs, 2, extra_attrs_fixup, extra_attrs_fixup_free, REQUEST_ROUTE | ONREPLY_ROUTE | FAILURE_ROUTE}, - {"unlock_extra_attrs", unlock_extra_attrs, 2, extra_attrs_fixup, 0, + {"unlock_extra_attrs", unlock_extra_attrs, 2, extra_attrs_fixup, extra_attrs_fixup_free, REQUEST_ROUTE | ONREPLY_ROUTE | FAILURE_ROUTE}, {0, 0, 0, 0, 0, 0} };
1 week, 1 day
1
0
0
0
git:master:5f78ba33: uid_avp_db: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: 5f78ba3367cedcde0c0fb55b8aca6f37b8569e44 URL:
https://github.com/kamailio/kamailio/commit/5f78ba3367cedcde0c0fb55b8aca6f3…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-20T14:07:24+01:00 uid_avp_db: reformat exported structures --- Modified: src/modules/uid_avp_db/uid_avp_db.c --- Diff:
https://github.com/kamailio/kamailio/commit/5f78ba3367cedcde0c0fb55b8aca6f3…
Patch:
https://github.com/kamailio/kamailio/commit/5f78ba3367cedcde0c0fb55b8aca6f3…
1 week, 1 day
1
0
0
0
git:master:d728b14b: uid_domain: add fixup_free* to exported functions
by Victor Seva
Module: kamailio Branch: master Commit: d728b14bf2987b89ddfd131f66b62943424afa5f URL:
https://github.com/kamailio/kamailio/commit/d728b14bf2987b89ddfd131f66b6294…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-20T13:57:59+01:00 uid_domain: add fixup_free* to exported functions --- Modified: src/modules/uid_domain/uid_domain_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/d728b14bf2987b89ddfd131f66b6294…
Patch:
https://github.com/kamailio/kamailio/commit/d728b14bf2987b89ddfd131f66b6294…
--- diff --git a/src/modules/uid_domain/uid_domain_mod.c b/src/modules/uid_domain/uid_domain_mod.c index eed0a27122d..e140e003d95 100644 --- a/src/modules/uid_domain/uid_domain_mod.c +++ b/src/modules/uid_domain/uid_domain_mod.c @@ -56,6 +56,7 @@ static int lookup_domain(struct sip_msg *msg, char *s1, char *s2); static int get_did(str *did, str *domain); static int lookup_domain_fixup(void **param, int param_no); +static int lookup_domain_fixup_free(void **param, int param_no); MODULE_VERSION @@ -121,8 +122,8 @@ static domain_t dom_buf[2]; * Exported functions */ static cmd_export_t cmds[] = { - {"is_local", is_local, 1, fixup_var_str_1, 0, REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE}, - {"lookup_domain", lookup_domain, 2, lookup_domain_fixup, 0, REQUEST_ROUTE | FAILURE_ROUTE}, + {"is_local", is_local, 1, fixup_var_str_1, fixup_free_fparam_1, REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE}, + {"lookup_domain", lookup_domain, 2, lookup_domain_fixup, lookup_domain_fixup_free, REQUEST_ROUTE | FAILURE_ROUTE}, {"get_did", (cmd_function)get_did, 0, 0, 0, 0}, {"bind_domain", (cmd_function)bind_domain, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0} @@ -569,3 +570,11 @@ static int lookup_domain_fixup(void **param, int param_no) return 0; } + +static int lookup_domain_fixup_free(void **param, int param_no) +{ + if(param_no == 2) { + return fixup_free_fparam_all(param, 2); + } + return 0; +}
1 week, 1 day
1
0
0
0
git:master:f63e5488: uid_domain: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: f63e5488b713e1a98ced684d43e9a69e12160516 URL:
https://github.com/kamailio/kamailio/commit/f63e5488b713e1a98ced684d43e9a69…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-20T13:53:01+01:00 uid_domain: reformat exported structures --- Modified: src/modules/uid_domain/uid_domain_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/f63e5488b713e1a98ced684d43e9a69…
Patch:
https://github.com/kamailio/kamailio/commit/f63e5488b713e1a98ced684d43e9a69…
--- diff --git a/src/modules/uid_domain/uid_domain_mod.c b/src/modules/uid_domain/uid_domain_mod.c index a75253c1473..eed0a27122d 100644 --- a/src/modules/uid_domain/uid_domain_mod.c +++ b/src/modules/uid_domain/uid_domain_mod.c @@ -116,52 +116,54 @@ domain_t **domains_2 = 0; /* List of domains 2 */ */ static domain_t dom_buf[2]; +/* clang-format off */ /* * Exported functions */ static cmd_export_t cmds[] = { - {"is_local", is_local, 1, fixup_var_str_1, 0, - REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE}, - {"lookup_domain", lookup_domain, 2, lookup_domain_fixup, 0, - REQUEST_ROUTE | FAILURE_ROUTE}, - {"get_did", (cmd_function)get_did, 0, 0, 0, 0}, - {"bind_domain", (cmd_function)bind_domain, 0, 0, 0, 0}, - {0, 0, 0, 0, 0, 0}}; - + {"is_local", is_local, 1, fixup_var_str_1, 0, REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE}, + {"lookup_domain", lookup_domain, 2, lookup_domain_fixup, 0, REQUEST_ROUTE | FAILURE_ROUTE}, + {"get_did", (cmd_function)get_did, 0, 0, 0, 0}, + {"bind_domain", (cmd_function)bind_domain, 0, 0, 0, 0}, + {0, 0, 0, 0, 0, 0} +}; /* * Exported parameters */ -static param_export_t params[] = {{"db_url", PARAM_STR, &db_url}, - {"db_mode", PARAM_INT, &db_mode}, - {"domain_table", PARAM_STR, &domain_table}, - {"domain_col", PARAM_STR, &domain_col}, - {"did_col", PARAM_STR, &did_col}, {"flags_col", PARAM_STR, &flags_col}, - {"domattr_table", PARAM_STR, &domattr_table}, - {"domattr_did", PARAM_STR, &domattr_did}, - {"domattr_name", PARAM_STR, &domattr_name}, - {"domattr_type", PARAM_STR, &domattr_type}, - {"domattr_value", PARAM_STR, &domattr_value}, - {"domattr_flags", PARAM_STR, &domattr_flags}, - {"load_domain_attrs", PARAM_INT, &load_domain_attrs}, {0, 0, 0}}; - +static param_export_t params[] = { + {"db_url", PARAM_STR, &db_url}, + {"db_mode", PARAM_INT, &db_mode}, + {"domain_table", PARAM_STR, &domain_table}, + {"domain_col", PARAM_STR, &domain_col}, + {"did_col", PARAM_STR, &did_col}, + {"flags_col", PARAM_STR, &flags_col}, + {"domattr_table", PARAM_STR, &domattr_table}, + {"domattr_did", PARAM_STR, &domattr_did}, + {"domattr_name", PARAM_STR, &domattr_name}, + {"domattr_type", PARAM_STR, &domattr_type}, + {"domattr_value", PARAM_STR, &domattr_value}, + {"domattr_flags", PARAM_STR, &domattr_flags}, + {"load_domain_attrs", PARAM_INT, &load_domain_attrs}, + {0, 0, 0} +}; /* * Module interface */ struct module_exports exports = { - "uid_domain", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* exported functions */ - params, /* exported parameters */ - domain_rpc, /* exported RPC methods */ - 0, /* exported pseudo-variables */ - 0, /* response handling function */ - mod_init, /* module init function */ - child_init, /* per-child init function */ - destroy /* module destroy function */ + "uid_domain", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + domain_rpc, /* exported RPC methods */ + 0, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module init function */ + child_init, /* per-child init function */ + destroy /* module destroy function */ }; - +/* clang-format off */ static int init_db(void) {
1 week, 1 day
1
0
0
0
git:master:03af5047: modules: readme files regenerated - ims_ipsec_pcscf ... [skip ci]
by Kamailio Dev
Module: kamailio Branch: master Commit: 03af5047a38c9df4fbc407505fd03467f1584977 URL:
https://github.com/kamailio/kamailio/commit/03af5047a38c9df4fbc407505fd0346…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org> Committer: Kamailio Dev <kamailio.dev(a)kamailio.org> Date: 2024-11-20T13:46:10+01:00 modules: readme files regenerated - ims_ipsec_pcscf ... [skip ci] --- Modified: src/modules/ims_ipsec_pcscf/README --- Diff:
https://github.com/kamailio/kamailio/commit/03af5047a38c9df4fbc407505fd0346…
Patch:
https://github.com/kamailio/kamailio/commit/03af5047a38c9df4fbc407505fd0346…
1 week, 1 day
1
0
0
0
git:master:ec783503: uuid_gflags: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: ec783503d3672a7c395894382de52e50f5fb8b91 URL:
https://github.com/kamailio/kamailio/commit/ec783503d3672a7c395894382de52e5…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-20T13:41:42+01:00 uuid_gflags: reformat exported structures --- Modified: src/modules/uid_gflags/uid_gflags.c --- Diff:
https://github.com/kamailio/kamailio/commit/ec783503d3672a7c395894382de52e5…
Patch:
https://github.com/kamailio/kamailio/commit/ec783503d3672a7c395894382de52e5…
--- diff --git a/src/modules/uid_gflags/uid_gflags.c b/src/modules/uid_gflags/uid_gflags.c index a61c66497e5..9e56845c869 100644 --- a/src/modules/uid_gflags/uid_gflags.c +++ b/src/modules/uid_gflags/uid_gflags.c @@ -77,39 +77,40 @@ static avp_list_t *avps_1; static avp_list_t *avps_2; static rpc_export_t rpc_methods[]; +/* clang-format off */ static cmd_export_t cmds[] = { - {"set_ugflag", set_gflag, 1, fixup_int_1, 0, - REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE}, - {"reset_ugflag", reset_gflag, 1, fixup_int_1, 0, - REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE}, - {"is_ugflag", is_gflag, 1, fixup_int_1, 0, - REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE}, - {"flush_ugflags", flush_gflags, 0, 0, 0, - REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE}, - {0, 0, 0, 0, 0, 0}}; - -static param_export_t params[] = {{"initial", PARAM_INT, &initial}, - {"db_url", PARAM_STRING, &db_url}, - {"load_global_attrs", PARAM_INT, &load_global_attrs}, - {"global_attrs_table", PARAM_STRING, &attr_table}, - {"global_attrs_name", PARAM_STRING, &attr_name}, - {"global_attrs_type", PARAM_STRING, &attr_type}, - {"global_attrs_value", PARAM_STRING, &attr_value}, - {"global_attrs_flags", PARAM_STRING, &attr_flags}, {0, 0, 0}}; + {"set_ugflag", set_gflag, 1, fixup_int_1, 0, REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE}, + {"reset_ugflag", reset_gflag, 1, fixup_int_1, 0, REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE}, + {"is_ugflag", is_gflag, 1, fixup_int_1, 0, REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE}, + {"flush_ugflags", flush_gflags, 0, 0, 0, REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE}, + {0, 0, 0, 0, 0, 0} +}; -struct module_exports exports = { - "uid_gflags", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* exported functions */ - params, /* exported parameters */ - rpc_methods, /* exported RPC methods */ - 0, /* exported pseudo-variables */ - 0, /* response handling function*/ - mod_init, /* module init function */ - child_init, /* per-child init function */ - mod_destroy /* module destroy function */ +static param_export_t params[] = { + {"initial", PARAM_INT, &initial}, + {"db_url", PARAM_STRING, &db_url}, + {"load_global_attrs", PARAM_INT, &load_global_attrs}, + {"global_attrs_table", PARAM_STRING, &attr_table}, + {"global_attrs_name", PARAM_STRING, &attr_name}, + {"global_attrs_type", PARAM_STRING, &attr_type}, + {"global_attrs_value", PARAM_STRING, &attr_value}, + {"global_attrs_flags", PARAM_STRING, &attr_flags}, + {0, 0, 0} }; +struct module_exports exports = { + "uid_gflags", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + rpc_methods, /* exported RPC methods */ + 0, /* exported pseudo-variables */ + 0, /* response handling function*/ + mod_init, /* module init function */ + child_init, /* per-child init function */ + mod_destroy /* module destroy function */ +}; +/* clang-format on */ static int init_db(void) {
1 week, 1 day
1
0
0
0
git:master:f4d841ef: uid_uri_db: reformat exported structures
by Victor Seva
Module: kamailio Branch: master Commit: f4d841ef01fd605a181879b23cbd7ccb179016fd URL:
https://github.com/kamailio/kamailio/commit/f4d841ef01fd605a181879b23cbd7cc…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-11-20T13:41:41+01:00 uid_uri_db: reformat exported structures --- Modified: src/modules/uid_uri_db/uid_uri_db_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/f4d841ef01fd605a181879b23cbd7cc…
Patch:
https://github.com/kamailio/kamailio/commit/f4d841ef01fd605a181879b23cbd7cc…
--- diff --git a/src/modules/uid_uri_db/uid_uri_db_mod.c b/src/modules/uid_uri_db/uid_uri_db_mod.c index 81b762d5112..98adf0a108a 100644 --- a/src/modules/uid_uri_db/uid_uri_db_mod.c +++ b/src/modules/uid_uri_db/uid_uri_db_mod.c @@ -96,46 +96,47 @@ static domain_get_did_t dm_get_did = NULL; /* default did value */ str default_did = STR_STATIC_INIT("_default"); +/* clang-format off */ /* * Exported functions */ -static cmd_export_t cmds[] = {{"lookup_user", lookup_user, 1, header_fixup, 0, - REQUEST_ROUTE | FAILURE_ROUTE}, - {"lookup_user", lookup_user_2, 2, lookup_user_fixup, 0, - REQUEST_ROUTE | FAILURE_ROUTE}, - {"check_uri", check_uri, 1, header_fixup, 0, - REQUEST_ROUTE | FAILURE_ROUTE}, - {0, 0, 0, 0, 0, 0}}; - +static cmd_export_t cmds[] = { + {"lookup_user", lookup_user, 1, header_fixup, 0, REQUEST_ROUTE | FAILURE_ROUTE}, + {"lookup_user", lookup_user_2, 2, lookup_user_fixup, 0, REQUEST_ROUTE | FAILURE_ROUTE}, + {"check_uri", check_uri, 1, header_fixup, 0, REQUEST_ROUTE | FAILURE_ROUTE}, + {0, 0, 0, 0, 0, 0} +}; /* * Exported parameters */ -static param_export_t params[] = {{"db_url", PARAM_STR, &db_url}, - {"uri_table", PARAM_STR, &uri_table}, - {"uid_column", PARAM_STR, &uid_col}, - {"did_column", PARAM_STR, &did_col}, - {"username_column", PARAM_STR, &username_col}, - {"flags_column", PARAM_STR, &flags_col}, - {"scheme_column", PARAM_STR, &scheme_col}, {0, 0, 0}}; - +static param_export_t params[] = { + {"db_url", PARAM_STR, &db_url}, + {"uri_table", PARAM_STR, &uri_table}, + {"uid_column", PARAM_STR, &uid_col}, + {"did_column", PARAM_STR, &did_col}, + {"username_column", PARAM_STR, &username_col}, + {"flags_column", PARAM_STR, &flags_col}, + {"scheme_column", PARAM_STR, &scheme_col}, + {0, 0, 0} +}; /* * Module interface */ struct module_exports exports = { - "uid_uri_db", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* exported functions */ - params, /* exported parameters */ - 0, /* exported RPC methods */ - 0, /* exported pseudo-variables */ - 0, /* module init function */ - 0, /* response handling function */ - child_init, /* child init function */ - destroy /* destroy function */ + "uid_uri_db", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + 0, /* exported RPC methods */ + 0, /* exported pseudo-variables */ + 0, /* module init function */ + 0, /* response handling function */ + child_init, /* child init function */ + destroy /* destroy function */ }; - +/* clang-format on */ /* * Module initialization function callee in each child separately
1 week, 1 day
1
0
0
0
git:master:643f5065: ims_ipsec_pcscf: docs for ipsec_listen_name parameter
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 643f50656a3e06ef7342bebef952a6463f425c4b URL:
https://github.com/kamailio/kamailio/commit/643f50656a3e06ef7342bebef952a64…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2024-11-20T13:34:30+01:00 ims_ipsec_pcscf: docs for ipsec_listen_name parameter --- Modified: src/modules/ims_ipsec_pcscf/doc/ims_ipsec_pcscf_admin.xml --- Diff:
https://github.com/kamailio/kamailio/commit/643f50656a3e06ef7342bebef952a64…
Patch:
https://github.com/kamailio/kamailio/commit/643f50656a3e06ef7342bebef952a64…
--- diff --git a/src/modules/ims_ipsec_pcscf/doc/ims_ipsec_pcscf_admin.xml b/src/modules/ims_ipsec_pcscf/doc/ims_ipsec_pcscf_admin.xml index a8f075d93d6..e587a8dfc2f 100644 --- a/src/modules/ims_ipsec_pcscf/doc/ims_ipsec_pcscf_admin.xml +++ b/src/modules/ims_ipsec_pcscf/doc/ims_ipsec_pcscf_admin.xml @@ -115,6 +115,23 @@ modparam("ims_ipsec_pcscf", "ipsec_server_port", 5063) </example> </section> + <section> + <title><varname>ipsec_listen_name</varname> (string)</title> + + <para>Set a common prefix to build listen socket names. + Default value: not set.</para> + + <example> + <title><varname>ipsec_listen_name</varname> parameter usage</title> + + <programlisting format="linespecific"> +... +modparam("ims_ipsec_pcscf", "ipsec_listen_name", "ims") +... + </programlisting> + </example> + </section> + <section> <title><varname>ipsec_listen_agname</varname> (string)</title>
1 week, 1 day
1
0
0
0
← Newer
1
...
16
17
18
19
20
21
22
...
36
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
Results per page:
10
25
50
100
200