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
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
November 2024
----- 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
20 participants
367 discussions
Start a n
N
ew thread
git:master:7251ba1f: geoip: add fixup_free to exported funrcions
by Federico Cabiddu
Module: kamailio Branch: master Commit: 7251ba1fd6c888a2f352cf1763d213031e7e3f6a URL:
https://github.com/kamailio/kamailio/commit/7251ba1fd6c888a2f352cf1763d2130…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com> Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com> Date: 2024-11-20T14:19:11+01:00 geoip: add fixup_free to exported funrcions --- Modified: src/modules/geoip/geoip_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/7251ba1fd6c888a2f352cf1763d2130…
Patch:
https://github.com/kamailio/kamailio/commit/7251ba1fd6c888a2f352cf1763d2130…
--- diff --git a/src/modules/geoip/geoip_mod.c b/src/modules/geoip/geoip_mod.c index 9c953d06d74..d3a36855e7c 100644 --- a/src/modules/geoip/geoip_mod.c +++ b/src/modules/geoip/geoip_mod.c @@ -55,7 +55,7 @@ static pv_export_t mod_pvs[] = { static cmd_export_t cmds[] = { {"geoip_match", (cmd_function)w_geoip_match, 2, - fixup_spve_spve, 0, ANY_ROUTE}, + fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE}, {0, 0, 0, 0, 0, 0} };
1 month
1
0
0
0
git:master:8099e2d0: file_out: reformat exported structures
by Federico Cabiddu
Module: kamailio Branch: master Commit: 8099e2d0b9fdc8826e21013a3fa67d89ebdd88b2 URL:
https://github.com/kamailio/kamailio/commit/8099e2d0b9fdc8826e21013a3fa67d8…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com> Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com> Date: 2024-11-20T14:19:11+01:00 file_out: reformat exported structures --- Modified: src/modules/file_out/file_out.c --- Diff:
https://github.com/kamailio/kamailio/commit/8099e2d0b9fdc8826e21013a3fa67d8…
Patch:
https://github.com/kamailio/kamailio/commit/8099e2d0b9fdc8826e21013a3fa67d8…
--- diff --git a/src/modules/file_out/file_out.c b/src/modules/file_out/file_out.c index a13d3531dde..1234827eab1 100644 --- a/src/modules/file_out/file_out.c +++ b/src/modules/file_out/file_out.c @@ -75,28 +75,28 @@ int *fo_number_of_files = NULL; time_t fo_current_timestamp = 0; +/* clang-format off */ static cmd_export_t cmds[] = { - {"file_out", (cmd_function)fo_write_to_file, 2, fo_fixup_int_pvar, - fo_fixup_free_int_pvar, ANY_ROUTE}, - {0, 0, 0, 0, 0, 0}}; + {"file_out", (cmd_function)fo_write_to_file, 2, fo_fixup_int_pvar, fo_fixup_free_int_pvar, ANY_ROUTE}, + {0, 0, 0, 0, 0, 0}}; static param_export_t params[] = {{"base_folder", PARAM_STR, &fo_base_folder}, - {"file", PARAM_STR | PARAM_USE_FUNC, &fo_add_filename}, - {"worker_usleep", PARAM_INT, &fo_worker_usleep}, {0, 0, 0}}; + {"file", PARAM_STR | PARAM_USE_FUNC, &fo_add_filename}, + {"worker_usleep", PARAM_INT, &fo_worker_usleep}, {0, 0, 0}}; struct module_exports exports = { - "file_out", /* 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 */ - destroy /* module destroy function */ + "file_out", /* 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 */ + destroy /* module destroy function */ }; - +/* clang-format on */ static int mod_init(void) {
1 month
1
0
0
0
git:master:6232b8ae: exec: add fixup_free* to exported functions
by Federico Cabiddu
Module: kamailio Branch: master Commit: 6232b8ae29988bfe17ddf6e0bd483eec854ab72b URL:
https://github.com/kamailio/kamailio/commit/6232b8ae29988bfe17ddf6e0bd483ee…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com> Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com> Date: 2024-11-20T14:19:11+01:00 exec: add fixup_free* to exported functions --- Modified: src/modules/exec/exec_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/6232b8ae29988bfe17ddf6e0bd483ee…
Patch:
https://github.com/kamailio/kamailio/commit/6232b8ae29988bfe17ddf6e0bd483ee…
--- diff --git a/src/modules/exec/exec_mod.c b/src/modules/exec/exec_mod.c index df5366e3ffa..0fd463de35a 100644 --- a/src/modules/exec/exec_mod.c +++ b/src/modules/exec/exec_mod.c @@ -56,6 +56,7 @@ static int w_exec_avp(struct sip_msg *msg, char *cmd, char *avpl); static int w_exec_cmd(struct sip_msg *msg, char *cmd, char *foo); static int exec_avp_fixup(void **param, int param_no); +static int exec_avp_fixup_free(void **param, int param_no); inline static void exec_shutdown(void); @@ -64,16 +65,11 @@ inline static void exec_shutdown(void); * Exported functions */ static cmd_export_t cmds[] = { - {"exec_dset", (cmd_function)w_exec_dset, 1, fixup_spve_null, 0, - REQUEST_ROUTE|FAILURE_ROUTE}, - {"exec_msg", (cmd_function)w_exec_msg, 1, fixup_spve_null, 0, - REQUEST_ROUTE|FAILURE_ROUTE|LOCAL_ROUTE}, - {"exec_avp", (cmd_function)w_exec_avp, 1, fixup_spve_null, 0, - REQUEST_ROUTE|FAILURE_ROUTE|LOCAL_ROUTE}, - {"exec_avp", (cmd_function)w_exec_avp, 2, exec_avp_fixup, 0, - REQUEST_ROUTE|FAILURE_ROUTE|LOCAL_ROUTE}, - {"exec_cmd", (cmd_function)w_exec_cmd, 1, fixup_spve_null, 0, - ANY_ROUTE}, + {"exec_dset", (cmd_function)w_exec_dset, 1, fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE|FAILURE_ROUTE}, + {"exec_msg", (cmd_function)w_exec_msg, 1, fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE|FAILURE_ROUTE|LOCAL_ROUTE}, + {"exec_avp", (cmd_function)w_exec_avp, 1, fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE|FAILURE_ROUTE|LOCAL_ROUTE}, + {"exec_avp", (cmd_function)w_exec_avp, 2, exec_avp_fixup, exec_avp_fixup_free, REQUEST_ROUTE|FAILURE_ROUTE|LOCAL_ROUTE}, + {"exec_cmd", (cmd_function)w_exec_cmd, 1, fixup_spve_null, fixup_free_spve_null, ANY_ROUTE}, {0, 0, 0, 0, 0, 0} }; @@ -268,6 +264,16 @@ static int exec_avp_fixup(void **param, int param_no) return 0; } +static int exec_avp_fixup_free(void **param, int param_no) +{ + if(param_no == 1) { + return fixup_free_spve_null(param, 1); + } else if(param_no == 2) { + free_pvname_list((pvname_list_t *)param); + } + return 0; +} + static int ki_exec_cmd(sip_msg_t *msg, str *cmd) { int ret;
1 month
1
0
0
0
git:master:dd0a9624: evapi: add fixup_free* to exported functions
by Federico Cabiddu
Module: kamailio Branch: master Commit: dd0a9624660ea58aa6f97828ecd526fc7dba3a43 URL:
https://github.com/kamailio/kamailio/commit/dd0a9624660ea58aa6f97828ecd526f…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com> Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com> Date: 2024-11-20T14:19:11+01:00 evapi: add fixup_free* to exported functions --- Modified: src/modules/evapi/evapi_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/dd0a9624660ea58aa6f97828ecd526f…
Patch:
https://github.com/kamailio/kamailio/commit/dd0a9624660ea58aa6f97828ecd526f…
1 month
1
0
0
0
git:master:03287733: enum: add fixup_free* to exported functions
by Federico Cabiddu
Module: kamailio Branch: master Commit: 03287733434a6c2762ffad653917e15bbc462e0c URL:
https://github.com/kamailio/kamailio/commit/03287733434a6c2762ffad653917e15…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com> Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com> Date: 2024-11-20T14:19:11+01:00 enum: add fixup_free* to exported functions --- Modified: src/modules/enum/enum_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/03287733434a6c2762ffad653917e15…
Patch:
https://github.com/kamailio/kamailio/commit/03287733434a6c2762ffad653917e15…
--- diff --git a/src/modules/enum/enum_mod.c b/src/modules/enum/enum_mod.c index d7c3280841f..c1eb4a0359c 100644 --- a/src/modules/enum/enum_mod.c +++ b/src/modules/enum/enum_mod.c @@ -58,9 +58,9 @@ str service = {0, 0}; /* clang-format off */ static cmd_export_t cmds[] = { {"enum_query", (cmd_function)enum_query_0, 0, 0, 0, REQUEST_ROUTE}, - {"enum_query", (cmd_function)enum_query_1, 1, fixup_spve_null, 0, + {"enum_query", (cmd_function)enum_query_1, 1, fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE}, - {"enum_query", (cmd_function)enum_query_2, 2, fixup_spve_spve, 0, + {"enum_query", (cmd_function)enum_query_2, 2, fixup_spve_spve, fixup_free_spve_spve, REQUEST_ROUTE}, {"enum_pv_query", (cmd_function)enum_pv_query_1, 1, fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE}, @@ -75,9 +75,9 @@ static cmd_export_t cmds[] = { {"is_from_user_enum", (cmd_function)is_from_user_enum_2, 2, fixup_spve_spve, fixup_free_spve_spve, REQUEST_ROUTE}, {"i_enum_query", (cmd_function)i_enum_query_0, 0, 0, 0, REQUEST_ROUTE}, - {"i_enum_query", (cmd_function)i_enum_query_1, 1, fixup_spve_null, 0, + {"i_enum_query", (cmd_function)i_enum_query_1, 1, fixup_spve_null, fixup_free_spve_null, REQUEST_ROUTE}, - {"i_enum_query", (cmd_function)i_enum_query_2, 2, fixup_spve_spve, 0, + {"i_enum_query", (cmd_function)i_enum_query_2, 2, fixup_spve_spve, fixup_free_spve_spve, REQUEST_ROUTE}, {0, 0, 0, 0, 0, 0} }; @@ -192,4 +192,4 @@ int mod_register(char *path, int *dlflags, void *p1, void *p2) { sr_kemi_modules_add(sr_kemi_enum_exports); return 0; -} \ No newline at end of file +}
1 month
1
0
0
0
git:master:e7cecd66: dlgs: fix some fixup_free
by Federico Cabiddu
Module: kamailio Branch: master Commit: e7cecd66a77669e32e5abc2ff4458e017c2a2f61 URL:
https://github.com/kamailio/kamailio/commit/e7cecd66a77669e32e5abc2ff4458e0…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com> Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com> Date: 2024-11-20T14:19:11+01:00 dlgs: fix some fixup_free --- Modified: src/modules/dlgs/dlgs_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/e7cecd66a77669e32e5abc2ff4458e0…
Patch:
https://github.com/kamailio/kamailio/commit/e7cecd66a77669e32e5abc2ff4458e0…
--- diff --git a/src/modules/dlgs/dlgs_mod.c b/src/modules/dlgs/dlgs_mod.c index e9821d05d4a..f06c9d0ceaa 100644 --- a/src/modules/dlgs/dlgs_mod.c +++ b/src/modules/dlgs/dlgs_mod.c @@ -71,11 +71,11 @@ static cmd_export_t cmds[]={ {"dlgs_count", (cmd_function)w_dlgs_count, 3, fixup_spve_all, fixup_free_spve_all, ANY_ROUTE}, {"dlgs_tags_add", (cmd_function)w_dlgs_tags_add, 1, fixup_spve_null, - fixup_spve_null, ANY_ROUTE}, + fixup_free_spve_null, ANY_ROUTE}, {"dlgs_tags_rm", (cmd_function)w_dlgs_tags_rm, 1, fixup_spve_null, - fixup_spve_null, ANY_ROUTE}, + fixup_free_spve_null, ANY_ROUTE}, {"dlgs_tags_count", (cmd_function)w_dlgs_tags_count, 1, fixup_spve_null, - fixup_spve_null, ANY_ROUTE}, + fixup_free_spve_null, ANY_ROUTE}, {0, 0, 0, 0, 0, 0} };
1 month
1
0
0
0
git:master:a05b1433: dispatcher: add fixup_free to several exported functions
by Federico Cabiddu
Module: kamailio Branch: master Commit: a05b143385975f0cce349ff7ea1f4647f175cc3c URL:
https://github.com/kamailio/kamailio/commit/a05b143385975f0cce349ff7ea1f464…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com> Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com> Date: 2024-11-20T14:19:11+01:00 dispatcher: add fixup_free to several exported functions --- Modified: src/modules/dispatcher/dispatcher.c --- Diff:
https://github.com/kamailio/kamailio/commit/a05b143385975f0cce349ff7ea1f464…
Patch:
https://github.com/kamailio/kamailio/commit/a05b143385975f0cce349ff7ea1f464…
1 month
1
0
0
0
git:master:52f02ca5: crypto: add fixup_free function
by Federico Cabiddu
Module: kamailio Branch: master Commit: 52f02ca5f6d09c5323c582c9cf08990f0bc97ac5 URL:
https://github.com/kamailio/kamailio/commit/52f02ca5f6d09c5323c582c9cf08990…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com> Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com> Date: 2024-11-20T14:19:11+01:00 crypto: add fixup_free function --- Modified: src/modules/crypto/crypto_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/52f02ca5f6d09c5323c582c9cf08990…
Patch:
https://github.com/kamailio/kamailio/commit/52f02ca5f6d09c5323c582c9cf08990…
--- diff --git a/src/modules/crypto/crypto_mod.c b/src/modules/crypto/crypto_mod.c index f3e644000f9..84f70813602 100644 --- a/src/modules/crypto/crypto_mod.c +++ b/src/modules/crypto/crypto_mod.c @@ -69,6 +69,7 @@ static int w_crypto_nio_decrypt(sip_msg_t *msg, char *p1, char *p2); static int w_crypto_hmac_sha256( sip_msg_t *msg, char *inb, char *keyb, char *outb); static int fixup_crypto_hmac(void **param, int param_no); +static int fixup_free_crypto_hmac(void **param, int param_no); static char *_crypto_salt_param = "k8hTm4aZ"; @@ -95,7 +96,7 @@ static cmd_export_t cmds[] = { {"crypto_netio_decrypt", (cmd_function)w_crypto_nio_decrypt, 0, 0, 0, ANY_ROUTE}, {"crypto_hmac_sha256", (cmd_function)w_crypto_hmac_sha256, 3, - fixup_crypto_hmac, 0, ANY_ROUTE}, + fixup_crypto_hmac, fixup_free_crypto_hmac, ANY_ROUTE}, {"load_crypto", (cmd_function)load_crypto, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0}}; @@ -451,6 +452,19 @@ static int fixup_crypto_hmac(void **param, int param_no) return 0; } +/** + * + */ +static int fixup_free_crypto_hmac(void **param, int param_no) +{ + if(param_no == 1 || param_no == 2) { + fixup_free_spve_null(param, 1); + } else if(param_no == 3) { + fixup_free_pvar_null(param, 1); + } + return 0; +} + /** * */
1 month
1
0
0
0
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 month
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 month
1
0
0
0
← Newer
1
...
18
19
20
21
22
23
24
...
37
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
Results per page:
10
25
50
100
200