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
February 2019
----- 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
23 participants
336 discussions
Start a n
N
ew thread
git:master:5afe4863: http_async_client: add documentation for new TCP keepalive parameters
by Federico Cabiddu
Module: kamailio Branch: master Commit: 5afe486375ae1ec8d7e479e579d5cc898fa1bac5 URL:
https://github.com/kamailio/kamailio/commit/5afe486375ae1ec8d7e479e579d5cc8…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com> Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com> Date: 2019-02-06T17:17:17+01:00 http_async_client: add documentation for new TCP keepalive parameters --- Modified: src/modules/http_async_client/doc/http_async_client_admin.xml --- Diff:
https://github.com/kamailio/kamailio/commit/5afe486375ae1ec8d7e479e579d5cc8…
Patch:
https://github.com/kamailio/kamailio/commit/5afe486375ae1ec8d7e479e579d5cc8…
--- diff --git a/src/modules/http_async_client/doc/http_async_client_admin.xml b/src/modules/http_async_client/doc/http_async_client_admin.xml index 605964e268..73fdf32841 100644 --- a/src/modules/http_async_client/doc/http_async_client_admin.xml +++ b/src/modules/http_async_client/doc/http_async_client_admin.xml @@ -291,6 +291,63 @@ modparam("http_async_client", "tls_client_key", "/etc/kamailio/ssl/clientcert.ke ... modparam("http_async_client", "tls_ca_path", "/etc/kamailio/ssl/ca/") ... +</programlisting> + </example> + </section> + <section> + <title><varname>tcp_keepalive</varname> (integer)</title> + <para> + If defined to a non-zero value, TCP keepalive will be enabled on cURL connections. + </para> + <para> + <emphasis> + Default value is 0 (disabled). + </emphasis> + </para> + <example> + <title>Set <varname>tcp_keepalive</varname> parameter</title> + <programlisting format="linespecific"> +... +modparam("http_async_client", "tcp_keepalive", 1) +... +</programlisting> + </example> + </section> + <section> + <title><varname>tcp_ka_idle</varname> (integer)</title> + <para> + TCP keep-alive idle time wait value (in seconds). + </para> + <para> + <emphasis> + Default value is 0 (use cURL default value, 60s). + </emphasis> + </para> + <example> + <title>Set <varname>tcp_ka_idle</varname> parameter</title> + <programlisting format="linespecific"> +... +modparam("http_async_client", "tcp_ka_idle", 30) +... +</programlisting> + </example> + </section> + <section> + <title><varname>tcp_ka_interval</varname> (integer)</title> + <para> + TCP keep-alive interval (in seconds). + </para> + <para> + <emphasis> + Default value is 0 (use cURL default value, 60s). + </emphasis> + </para> + <example> + <title>Set <varname>tcp_ka_interval</varname> parameter</title> + <programlisting format="linespecific"> +... +modparam("http_async_client", "tcp_ka_interval", 120) +... </programlisting> </example> </section> @@ -397,6 +454,9 @@ xlog("L_INFO", "received reply for query $http_req_id\n"); <listitem><para><emphasis>username</emphasis>: sets the username to use for authenticated requests</para></listitem> <listitem><para><emphasis>password</emphasis>: sets the password to use for authenticated requests</para></listitem> <listitem><para><emphasis>suspend</emphasis>: if set to 0 it doesn't suspend the current transaction before performing the query</para></listitem> + <listitem><para><emphasis>tcp_keepalive</emphasis>: enable TCP keepalive</para></listitem> + <listitem><para><emphasis>tcp_ka_idle</emphasis>: set TCP keepalive idle time wait</para></listitem> + <listitem><para><emphasis>tcp_ka_interval</emphasis>: set TCP keepalive interval</para></listitem> </itemizedlist> <example> <title><literal>$http_req(key)</literal> variable usage</title>
5 years, 9 months
1
0
0
0
git:master:e5453090: uac: error message made warning for loading uac api
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: e54530901c92f2578dc149ac780867d318c54912 URL:
https://github.com/kamailio/kamailio/commit/e54530901c92f2578dc149ac780867d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2019-02-06T15:23:20+01:00 uac: error message made warning for loading uac api - some modules have optional use of uac --- Modified: src/modules/uac/api.h --- Diff:
https://github.com/kamailio/kamailio/commit/e54530901c92f2578dc149ac780867d…
Patch:
https://github.com/kamailio/kamailio/commit/e54530901c92f2578dc149ac780867d…
--- diff --git a/src/modules/uac/api.h b/src/modules/uac/api.h index 47de472ae9..36ec3fc0ee 100644 --- a/src/modules/uac/api.h +++ b/src/modules/uac/api.h @@ -38,7 +38,7 @@ int bind_uac(uac_api_t*); inline static int load_uac_api(uac_api_t *uacb){ bind_uac_f bind_uac_exports; if(!(bind_uac_exports=(bind_uac_f)find_export("bind_uac",1,0))){ - LM_ERR("Failed to import bind_uac\n"); + LM_WARN("failed to import bind_uac\n"); return -1; } return bind_uac_exports(uacb);
5 years, 9 months
1
0
0
0
Re: [sr-dev] [kamailio/kamailio] dialog: do not require dlg_flag parameter to be set (404f403)
by Henning Westerholt
It has been back-ported to 5.1 and 5.2 branch on 9. January 2019. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/commit/404f403786478a917637186446bb285…
5 years, 9 months
1
0
0
0
git:master:fb2ac639: core: removed return never executed
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: fb2ac639037cb911162bb61a541976899fa1bdab URL:
https://github.com/kamailio/kamailio/commit/fb2ac639037cb911162bb61a5419768…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2019-02-05T22:19:34+01:00 core: removed return never executed --- Modified: src/core/locking.c --- Diff:
https://github.com/kamailio/kamailio/commit/fb2ac639037cb911162bb61a5419768…
Patch:
https://github.com/kamailio/kamailio/commit/fb2ac639037cb911162bb61a5419768…
--- diff --git a/src/core/locking.c b/src/core/locking.c index aced1d270c..c03fb15fcd 100644 --- a/src/core/locking.c +++ b/src/core/locking.c @@ -107,7 +107,6 @@ rec_lock_set_t* rec_lock_set_alloc(int n) ls->size=n; } return ls; - return NULL; } /** @@ -153,4 +152,4 @@ void rec_lock_set_release(rec_lock_set_t* lset, int i) { rec_lock_release(&lset->locks[i]); return; -} \ No newline at end of file +}
5 years, 9 months
1
0
0
0
git:5.2:cd797dbf: dispatcher: Fix memleak in destination attributes
by Henning Westerholt
Module: kamailio Branch: 5.2 Commit: cd797dbfdc0c8a27cde66f096c5d592d880d65d8 URL:
https://github.com/kamailio/kamailio/commit/cd797dbfdc0c8a27cde66f096c5d592…
Author: Alex Hermann <alex(a)hexla.nl> Committer: Henning Westerholt <hw(a)kamailio.org> Date: 2019-02-05T21:26:24+01:00 dispatcher: Fix memleak in destination attributes (cherry picked from commit 614b6b05028ea8d364f7acb95a6367f7c9ea1a6d) --- Modified: src/modules/dispatcher/dispatch.c --- Diff:
https://github.com/kamailio/kamailio/commit/cd797dbfdc0c8a27cde66f096c5d592…
Patch:
https://github.com/kamailio/kamailio/commit/cd797dbfdc0c8a27cde66f096c5d592…
--- diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c index 621aca823a..62ad80afa5 100644 --- a/src/modules/dispatcher/dispatch.c +++ b/src/modules/dispatcher/dispatch.c @@ -446,6 +446,8 @@ ds_dest_t *pack_dest(str iuri, int flags, int priority, str *attrs) if(dp != NULL) { if(dp->uri.s != NULL) shm_free(dp->uri.s); + if(dp->attrs.body.s != NULL) + shm_free(dp->attrs.body.s); shm_free(dp); } @@ -502,6 +504,8 @@ int add_dest2list(int id, str uri, int flags, int priority, str *attrs, if(dp != NULL) { if(dp->uri.s != NULL) shm_free(dp->uri.s); + if(dp->attrs.body.s != NULL) + shm_free(dp->attrs.body.s); shm_free(dp); } @@ -3242,6 +3246,10 @@ void ds_avl_destroy(ds_set_t **node_ptr) shm_free(dest->uri.s); dest->uri.s = NULL; } + if (dest->attrs.body.s != NULL) { + shm_free(dest->attrs.body.s); + dest->attrs.body.s = NULL; + } } if(node->dlist != NULL) shm_free(node->dlist);
5 years, 9 months
1
0
0
0
git:5.2:1caa08e1: dispatcher: Stop searching if entry is found
by Henning Westerholt
Module: kamailio Branch: 5.2 Commit: 1caa08e1a3052ed08ec5dc4cf32c14f292e1a823 URL:
https://github.com/kamailio/kamailio/commit/1caa08e1a3052ed08ec5dc4cf32c14f…
Author: Alex Hermann <alex(a)hexla.nl> Committer: Henning Westerholt <hw(a)kamailio.org> Date: 2019-02-05T21:26:07+01:00 dispatcher: Stop searching if entry is found (cherry picked from commit 7a66f44506e4897fef68b5ff927cf276678d3473) --- Modified: src/modules/dispatcher/dispatch.c --- Diff:
https://github.com/kamailio/kamailio/commit/1caa08e1a3052ed08ec5dc4cf32c14f…
Patch:
https://github.com/kamailio/kamailio/commit/1caa08e1a3052ed08ec5dc4cf32c14f…
--- diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c index 5d72f71686..621aca823a 100644 --- a/src/modules/dispatcher/dispatch.c +++ b/src/modules/dispatcher/dispatch.c @@ -2523,7 +2523,6 @@ int ds_update_latency(int group, str *address, int code) int ds_get_state(int group, str *address) { int i = 0; - int state = 0; ds_set_t *idx = NULL; if(_ds_list == NULL || _ds_list_nr <= 0) { @@ -2542,11 +2541,11 @@ int ds_get_state(int group, str *address) && strncasecmp(idx->dlist[i].uri.s, address->s, address->len) == 0) { /* destination address found */ - state = idx->dlist[i].flags; + return idx->dlist[i].flags; } i++; } - return state; + return 0; } /**
5 years, 9 months
1
0
0
0
git:5.2:548955b1: jansson: Fix reverse logic for JSON boolean
by Henning Westerholt
Module: kamailio Branch: 5.2 Commit: 548955b101a1752b8525e8101014ab4e5576dc36 URL:
https://github.com/kamailio/kamailio/commit/548955b101a1752b8525e8101014ab4…
Author: Alex Hermann <alex(a)hexla.nl> Committer: Henning Westerholt <hw(a)kamailio.org> Date: 2019-02-05T21:25:44+01:00 jansson: Fix reverse logic for JSON boolean (cherry picked from commit 0125c1c8d8c1179670def9dc4b3e66d6a8e58360) --- Modified: src/modules/jansson/jansson_utils.c --- Diff:
https://github.com/kamailio/kamailio/commit/548955b101a1752b8525e8101014ab4…
Patch:
https://github.com/kamailio/kamailio/commit/548955b101a1752b8525e8101014ab4…
--- diff --git a/src/modules/jansson/jansson_utils.c b/src/modules/jansson/jansson_utils.c index 29ffc306f6..ae2040bc7c 100644 --- a/src/modules/jansson/jansson_utils.c +++ b/src/modules/jansson/jansson_utils.c @@ -45,7 +45,7 @@ int jansson_to_val(pv_value_t* val, char** freeme, json_t* v) { val->rs.len = strlen(value); val->flags = PV_VAL_STR; }else if(json_is_boolean(v)) { - val->ri = json_is_true(v) ? 0 : 1; + val->ri = json_is_true(v) ? 1 : 0; val->flags = PV_TYPE_INT|PV_VAL_INT; }else if(json_is_real(v)) { char* value = NULL;
5 years, 9 months
1
0
0
0
git:5.2:ac37b2fa: siputils: Return true if options_reply() succeeds
by Henning Westerholt
Module: kamailio Branch: 5.2 Commit: ac37b2faf754548d0f3c6cfb14bc1e547eed03ed URL:
https://github.com/kamailio/kamailio/commit/ac37b2faf754548d0f3c6cfb14bc1e5…
Author: Alex Hermann <alex(a)hexla.nl> Committer: Henning Westerholt <hw(a)kamailio.org> Date: 2019-02-05T21:25:28+01:00 siputils: Return true if options_reply() succeeds (cherry picked from commit 73d29ddde2b38cfea2c9ca4a84f4b8a246b7da50) --- Modified: src/modules/siputils/options.c --- Diff:
https://github.com/kamailio/kamailio/commit/ac37b2faf754548d0f3c6cfb14bc1e5…
Patch:
https://github.com/kamailio/kamailio/commit/ac37b2faf754548d0f3c6cfb14bc1e5…
--- diff --git a/src/modules/siputils/options.c b/src/modules/siputils/options.c index 67cf07856d..484c65f75f 100644 --- a/src/modules/siputils/options.c +++ b/src/modules/siputils/options.c @@ -112,7 +112,7 @@ int opt_reply(struct sip_msg* _msg, char* _foo, char* _bar) { return -1; } else - return 0; + return 1; } else { pkg_free(rpl_hf.s); LM_ERR("add_lump_rpl failed\n"); @@ -124,6 +124,6 @@ int opt_reply(struct sip_msg* _msg, char* _foo, char* _bar) { return -1; } else - return 0; + return 1; }
5 years, 9 months
1
0
0
0
git:5.2:c5f1ac9b: dispatcher: Don't take modulus of hash twice
by Henning Westerholt
Module: kamailio Branch: 5.2 Commit: c5f1ac9be0fe28ab3967f4f0ed085d4a272c7437 URL:
https://github.com/kamailio/kamailio/commit/c5f1ac9be0fe28ab3967f4f0ed085d4…
Author: Alex Hermann <alex(a)hexla.nl> Committer: Henning Westerholt <hw(a)kamailio.org> Date: 2019-02-05T21:25:11+01:00 dispatcher: Don't take modulus of hash twice (cherry picked from commit 5b23ce265b43adda75731a90fdf1a3a47daa3a51) --- Modified: src/modules/dispatcher/dispatch.c --- Diff:
https://github.com/kamailio/kamailio/commit/c5f1ac9be0fe28ab3967f4f0ed085d4…
Patch:
https://github.com/kamailio/kamailio/commit/c5f1ac9be0fe28ab3967f4f0ed085d4…
--- diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c index 59cf1d9302..5d72f71686 100644 --- a/src/modules/dispatcher/dispatch.c +++ b/src/modules/dispatcher/dispatch.c @@ -2096,7 +2096,7 @@ int ds_manage_routes(sip_msg_t *msg, ds_select_state_t *rstate) } break; case DS_ALG_RANDOM: /* 6 - random selection */ - hash = kam_rand() % idx->nr; + hash = kam_rand(); break; case DS_ALG_HASHPV: /* 7 - hash on PV value */ if(ds_hash_pvar(msg, &hash) != 0) {
5 years, 9 months
1
0
0
0
git:5.2:c3065e71: jansson: Log column on parse error
by Henning Westerholt
Module: kamailio Branch: 5.2 Commit: c3065e717f686cc11ceadd8a95fd3d98c2ffe2c7 URL:
https://github.com/kamailio/kamailio/commit/c3065e717f686cc11ceadd8a95fd3d9…
Author: Alex Hermann <alex(a)hexla.nl> Committer: Henning Westerholt <hw(a)kamailio.org> Date: 2019-02-05T21:18:03+01:00 jansson: Log column on parse error (cherry picked from commit 4038a6046bc34c92313817549c93a9f16e993032) --- Modified: src/modules/jansson/jansson_funcs.c --- Diff:
https://github.com/kamailio/kamailio/commit/c3065e717f686cc11ceadd8a95fd3d9…
Patch:
https://github.com/kamailio/kamailio/commit/c3065e717f686cc11ceadd8a95fd3d9…
--- diff --git a/src/modules/jansson/jansson_funcs.c b/src/modules/jansson/jansson_funcs.c index 012f1aba40..7eceae4e96 100644 --- a/src/modules/jansson/jansson_funcs.c +++ b/src/modules/jansson/jansson_funcs.c @@ -41,9 +41,9 @@ int janssonmod_get_helper(sip_msg_t* msg, str *path_s, str *src_s, pv_spec_t *ds json = json_loads(src_s->s, JSON_REJECT_DUPLICATES, &parsing_error); if(!json) { - ERR("failed to parse: %.*s\n", src_s->len, src_s->s); - ERR("json error at line %d: %s\n", - parsing_error.line, parsing_error.text); + ERR("failed to parse json: %.*s\n", src_s->len, src_s->s); + ERR("json error at line %d, col %d: %s\n", + parsing_error.line, parsing_error.column, parsing_error.text); goto fail; }
5 years, 9 months
1
0
0
0
← Newer
1
...
26
27
28
29
30
31
32
33
34
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
Results per page:
10
25
50
100
200