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
April
March
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
List overview
Download
sr-dev
March 2017
----- 2025 -----
April 2025
March 2025
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
sr-dev@lists.kamailio.org
31 participants
269 discussions
Start a n
N
ew thread
git:5.0:8ad3a15c: htable: documentation fix for expires_column parameter
by Ovidiu Sas
01 Mar '17
01 Mar '17
Module: kamailio Branch: 5.0 Commit: 8ad3a15cb62d33afef6f12cef80eaac38794f14d URL:
https://github.com/kamailio/kamailio/commit/8ad3a15cb62d33afef6f12cef80eaac…
Author: Ovidiu Sas <osas(a)voipembedded.com> Committer: Ovidiu Sas <osas(a)voipembedded.com> Date: 2017-03-01T16:04:58-05:00 htable: documentation fix for expires_column parameter (cherry picked from commit f07fc80df5f475606ac81c2885cbedbdb3dca438) --- Modified: src/modules/htable/README Modified: src/modules/htable/doc/
…
[View More]
htable_admin.xml --- Diff:
https://github.com/kamailio/kamailio/commit/8ad3a15cb62d33afef6f12cef80eaac…
Patch:
https://github.com/kamailio/kamailio/commit/8ad3a15cb62d33afef6f12cef80eaac…
[View Less]
1
0
0
0
git:master:c6982e0e: topos_redis: new module to offer redis storage for topos module
by Daniel-Constantin Mierla
01 Mar '17
01 Mar '17
Module: kamailio Branch: master Commit: c6982e0e61d630b07282d497907a22a66ca2b70c URL:
https://github.com/kamailio/kamailio/commit/c6982e0e61d630b07282d497907a22a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-03-01T10:08:50+01:00 topos_redis: new module to offer redis storage for topos module --- Added: src/modules/topos_redis/Makefile Added: src/modules/topos_redis/README Added: src/modules/
…
[View More]
topos_redis/doc/Makefile Added: src/modules/topos_redis/doc/topos_redis.xml Added: src/modules/topos_redis/doc/topos_redis_admin.xml Added: src/modules/topos_redis/topos_redis_mod.c Added: src/modules/topos_redis/topos_redis_storage.c Added: src/modules/topos_redis/topos_redis_storage.h --- Diff:
https://github.com/kamailio/kamailio/commit/c6982e0e61d630b07282d497907a22a…
Patch:
https://github.com/kamailio/kamailio/commit/c6982e0e61d630b07282d497907a22a…
[View Less]
1
0
0
0
git:master:0aaeed77: topos: unique id per dialog reused for both local contacts
by Daniel-Constantin Mierla
01 Mar '17
01 Mar '17
Module: kamailio Branch: master Commit: 0aaeed773316d4763471e723cfdc8d1230dfd5c1 URL:
https://github.com/kamailio/kamailio/commit/0aaeed773316d4763471e723cfdc8d1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-03-01T10:08:50+01:00 topos: unique id per dialog reused for both local contacts - relocated safety checks for storage update --- Modified: src/modules/topos/tps_storage.c --- Diff:
https://
…
[View More]
github.com/kamailio/kamailio/commit/0aaeed773316d4763471e723cfdc8d1…
Patch:
https://github.com/kamailio/kamailio/commit/0aaeed773316d4763471e723cfdc8d1…
--- diff --git a/src/modules/topos/tps_storage.c b/src/modules/topos/tps_storage.c index 9bb416f..1d815ae 100644 --- a/src/modules/topos/tps_storage.c +++ b/src/modules/topos/tps_storage.c @@ -89,6 +89,7 @@ int tps_set_storage_api(tps_storage_api_t *tsa) { if(tsa==NULL) return -1; + LM_DBG("setting new storage api: %p\n", tsa); memcpy(&_tps_storage_api, tsa, sizeof(tps_storage_api_t)); return 0; @@ -197,7 +198,7 @@ int tps_storage_branch_rm(sip_msg_t *msg, tps_data_t *td) /** * */ -int tps_storage_fill_contact(sip_msg_t *msg, tps_data_t *td, int dir) +int tps_storage_fill_contact(sip_msg_t *msg, tps_data_t *td, str *uuid, int dir) { str sv; sip_uri_t puri; @@ -213,9 +214,7 @@ int tps_storage_fill_contact(sip_msg_t *msg, tps_data_t *td, int dir) return 0; } - sruid_next(&_tps_sruid); - - if(td->cp + 8 + (2*_tps_sruid.uid.len) + sv.len >= td->cbuf + TPS_DATA_SIZE) { + if(td->cp + 8 + (2*uuid->len) + sv.len >= td->cbuf + TPS_DATA_SIZE) { LM_ERR("insufficient data buffer\n"); return -1; } @@ -227,8 +226,8 @@ int tps_storage_fill_contact(sip_msg_t *msg, tps_data_t *td, int dir) td->b_uuid.s = td->cp; *td->cp = 'b'; td->cp++; - memcpy(td->cp, _tps_sruid.uid.s, _tps_sruid.uid.len); - td->cp += _tps_sruid.uid.len; + memcpy(td->cp, uuid->s, uuid->len); + td->cp += uuid->len; td->b_uuid.len = td->cp - td->b_uuid.s; td->bs_contact.s = td->cp; @@ -236,8 +235,8 @@ int tps_storage_fill_contact(sip_msg_t *msg, tps_data_t *td, int dir) td->a_uuid.s = td->cp; *td->cp = 'a'; td->cp++; - memcpy(td->cp, _tps_sruid.uid.s, _tps_sruid.uid.len); - td->cp += _tps_sruid.uid.len; + memcpy(td->cp, uuid->s, uuid->len); + td->cp += uuid->len; td->a_uuid.len = td->cp - td->a_uuid.s; td->as_contact.s = td->cp; @@ -255,8 +254,8 @@ int tps_storage_fill_contact(sip_msg_t *msg, tps_data_t *td, int dir) *td->cp = 'a'; } td->cp++; - memcpy(td->cp, _tps_sruid.uid.s, _tps_sruid.uid.len); - td->cp += _tps_sruid.uid.len; + memcpy(td->cp, uuid->s, uuid->len); + td->cp += uuid->len; *td->cp = '@'; td->cp++; memcpy(td->cp, puri.host.s, puri.host.len); @@ -369,9 +368,11 @@ int tps_storage_record(sip_msg_t *msg, tps_data_t *td, int dialog) { int ret; - ret = tps_storage_fill_contact(msg, td, TPS_DIR_DOWNSTREAM); + sruid_next(&_tps_sruid); + + ret = tps_storage_fill_contact(msg, td, &_tps_sruid.uid, TPS_DIR_DOWNSTREAM); if(ret<0) goto error; - ret = tps_storage_fill_contact(msg, td, TPS_DIR_UPSTREAM); + ret = tps_storage_fill_contact(msg, td, &_tps_sruid.uid, TPS_DIR_UPSTREAM); if(ret<0) goto error; ret = tps_storage_link_msg(msg, td, TPS_DIR_DOWNSTREAM); if(ret<0) goto error; @@ -1049,23 +1050,10 @@ int tps_db_update_dialog(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd) db_val_t db_uvals[TPS_NR_KEYS]; int nr_keys; int nr_ucols; - int ret; - if(msg==NULL || md==NULL || sd==NULL || _tps_db_handle==NULL) + if(_tps_db_handle==NULL) return -1; - if(md->s_method_id != METHOD_INVITE) { - return 0; - } - if(msg->first_line.u.reply.statuscode<200 - || msg->first_line.u.reply.statuscode>=300) { - return 0; - } - - - ret = tps_storage_link_msg(msg, md, md->direction); - if(ret<0) return -1; - memset(db_ucols, 0, TPS_NR_KEYS*sizeof(db_key_t)); memset(db_uvals, 0, TPS_NR_KEYS*sizeof(db_val_t)); @@ -1134,6 +1122,22 @@ int tps_db_update_dialog(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd) */ int tps_storage_update_dialog(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd) { + int ret; + + if(msg==NULL || md==NULL || sd==NULL) + return -1; + + if(md->s_method_id != METHOD_INVITE) { + return 0; + } + if(msg->first_line.u.reply.statuscode<200 + || msg->first_line.u.reply.statuscode>=300) { + return 0; + } + + ret = tps_storage_link_msg(msg, md, md->direction); + if(ret<0) return -1; + return _tps_storage_api.update_dialog(msg, md, sd); }
[View Less]
1
0
0
0
git:master:58c1ab8f: topos: restrict storage value to db and redis
by Daniel-Constantin Mierla
01 Mar '17
01 Mar '17
Module: kamailio Branch: master Commit: 58c1ab8fa03c992d201f226eab06d2fbe9999ee5 URL:
https://github.com/kamailio/kamailio/commit/58c1ab8fa03c992d201f226eab06d2f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-03-01T10:08:50+01:00 topos: restrict storage value to db and redis --- Modified: src/modules/topos/topos_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/
…
[View More]
58c1ab8fa03c992d201f226eab06d2f…
Patch:
https://github.com/kamailio/kamailio/commit/58c1ab8fa03c992d201f226eab06d2f…
--- diff --git a/src/modules/topos/topos_mod.c b/src/modules/topos/topos_mod.c index 527b81f..7e33605 100644 --- a/src/modules/topos/topos_mod.c +++ b/src/modules/topos/topos_mod.c @@ -147,6 +147,12 @@ static int mod_init(void) "provide all functions needed\n"); return -1; } + } else { + if(_tps_storage.len!=7 && strncmp(_tps_storage.s, "redis", 5)!=0) { + LM_ERR("unknown storage type: %.*s\n", + _tps_storage.len, _tps_storage.s); + return -1; + } } if(_tps_sanity_checks!=0) {
[View Less]
1
0
0
0
git:master:4fa7a93f: topos: new parameter storage
by Daniel-Constantin Mierla
01 Mar '17
01 Mar '17
Module: kamailio Branch: master Commit: 4fa7a93fb60d8e8468b0f98272c1661d4913c463 URL:
https://github.com/kamailio/kamailio/commit/4fa7a93fb60d8e8468b0f98272c1661…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-03-01T10:08:50+01:00 topos: new parameter storage - specify the storage type to be used - default value is "db", to use database connectors --- Modified: src/modules/topos/topos_mod.c --- Diff:
…
[View More]
https://github.com/kamailio/kamailio/commit/4fa7a93fb60d8e8468b0f98272c1661…
Patch:
https://github.com/kamailio/kamailio/commit/4fa7a93fb60d8e8468b0f98272c1661…
--- diff --git a/src/modules/topos/topos_mod.c b/src/modules/topos/topos_mod.c index 00f75a6..527b81f 100644 --- a/src/modules/topos/topos_mod.c +++ b/src/modules/topos/topos_mod.c @@ -74,6 +74,7 @@ sruid_t _tps_sruid; static str _tps_db_url = str_init(DEFAULT_DB_URL); int _tps_param_mask_callid = 0; int _tps_sanity_checks = 0; +str _tps_storage = str_init("db"); extern int _tps_branch_expire; extern int _tps_dialog_expire; @@ -103,6 +104,7 @@ static cmd_export_t cmds[]={ }; static param_export_t params[]={ + {"storage", PARAM_STR, &_tps_storage}, {"db_url", PARAM_STR, &_tps_db_url}, {"mask_callid", PARAM_INT, &_tps_param_mask_callid}, {"sanity_checks", PARAM_INT, &_tps_sanity_checks}, @@ -134,15 +136,17 @@ struct module_exports exports= { */ static int mod_init(void) { - /* Find a database module */ - if (db_bind_mod(&_tps_db_url, &_tpsdbf)) { - LM_ERR("unable to bind database module\n"); - return -1; - } - if (!DB_CAPABILITY(_tpsdbf, DB_CAP_ALL)) { - LM_CRIT("database modules does not " - "provide all functions needed\n"); - return -1; + if(_tps_storage.len==2 && strncmp(_tps_storage.s, "db", 2)==0) { + /* Find a database module */ + if (db_bind_mod(&_tps_db_url, &_tpsdbf)) { + LM_ERR("unable to bind database module\n"); + return -1; + } + if (!DB_CAPABILITY(_tpsdbf, DB_CAP_ALL)) { + LM_CRIT("database modules does not " + "provide all functions needed\n"); + return -1; + } } if(_tps_sanity_checks!=0) { @@ -185,10 +189,12 @@ static int child_init(int rank) if (rank==PROC_INIT || rank==PROC_MAIN || rank==PROC_TCP_MAIN) return 0; /* do nothing for the main process */ - _tps_db_handle = _tpsdbf.init(&_tps_db_url); - if (!_tps_db_handle) { - LM_ERR("unable to connect database\n"); - return -1; + if(_tps_storage.len==2 && strncmp(_tps_storage.s, "db", 2)==0) { + _tps_db_handle = _tpsdbf.init(&_tps_db_url); + if (!_tps_db_handle) { + LM_ERR("unable to connect database\n"); + return -1; + } } return 0; @@ -199,9 +205,11 @@ static int child_init(int rank) */ static void destroy(void) { - if (_tps_db_handle) { - _tpsdbf.close(_tps_db_handle); - _tps_db_handle = 0; + if(_tps_storage.len==2 && strncmp(_tps_storage.s, "db", 2)==0) { + if (_tps_db_handle) { + _tpsdbf.close(_tps_db_handle); + _tps_db_handle = 0; + } } tps_storage_lock_set_destroy(); }
[View Less]
1
0
0
0
git:master:02725bbc: modules: readme files regenerated - dialog ... [skip ci]
by Kamailio Dev
01 Mar '17
01 Mar '17
Module: kamailio Branch: master Commit: 02725bbc77417b1e04faaf06e7fc309632378997 URL:
https://github.com/kamailio/kamailio/commit/02725bbc77417b1e04faaf06e7fc309…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org> Committer: Kamailio Dev <kamailio.dev(a)kamailio.org> Date: 2017-03-01T08:46:25+01:00 modules: readme files regenerated - dialog ... [skip ci] --- Modified: src/modules/dialog/README --- Diff:
https://github.com/kamailio/kamailio/commit/
…
[View More]
02725bbc77417b1e04faaf06e7fc309…
Patch:
https://github.com/kamailio/kamailio/commit/02725bbc77417b1e04faaf06e7fc309…
[View Less]
1
0
0
0
git:master:307ad0a3: dialog Add missing ka_failed_limit parameter to README
by Olle E. Johansson
01 Mar '17
01 Mar '17
Module: kamailio Branch: master Commit: 307ad0a3e1084a7a03c045dc563421829b46c3e2 URL:
https://github.com/kamailio/kamailio/commit/307ad0a3e1084a7a03c045dc5634218…
Author: Olle E. Johansson <oej(a)edvina.net> Committer: Olle E. Johansson <oej(a)edvina.net> Date: 2017-03-01T08:41:30+01:00 dialog Add missing ka_failed_limit parameter to README --- Modified: src/modules/dialog/doc/dialog_admin.xml --- Diff:
https://github.com/kamailio/kamailio/commit/
…
[View More]
307ad0a3e1084a7a03c045dc5634218…
Patch:
https://github.com/kamailio/kamailio/commit/307ad0a3e1084a7a03c045dc5634218…
--- diff --git a/src/modules/dialog/doc/dialog_admin.xml b/src/modules/dialog/doc/dialog_admin.xml index 8290e54..7b39bc9 100644 --- a/src/modules/dialog/doc/dialog_admin.xml +++ b/src/modules/dialog/doc/dialog_admin.xml @@ -1306,6 +1306,27 @@ modparam("dialog", "ka_interval", 300) </example> </section> + <section id="dialog.p.ka_failed_limit"> + <title><varname>ka_failed_limit</varname> (int)</title> + <para> + The number of failed keep-alive requests that is accepted + before generating a dialog timeout. + </para> + <para> + <emphasis> + Default value is <quote>1</quote>. + </emphasis> + </para> + <example> + <title>Set <varname>ka_failed_limit</varname> parameter</title> + <programlisting format="linespecific"> +... +modparam("dialog", "ka_failed_limit", 5) +... +</programlisting> + </example> + </section> + <section id="dialog.p.timeout_noreset"> <title><varname>timeout_noreset</varname> (int)</title> <para>
[View Less]
1
0
0
0
git:master:1f3884ce: manpage Add proper web address to the project (include https)
by Olle E. Johansson
01 Mar '17
01 Mar '17
Module: kamailio Branch: master Commit: 1f3884ce4cd08c6b7b52c2dd15bb2a5ac1905a63 URL:
https://github.com/kamailio/kamailio/commit/1f3884ce4cd08c6b7b52c2dd15bb2a5…
Author: Olle E. Johansson <oej(a)edvina.net> Committer: Olle E. Johansson <oej(a)edvina.net> Date: 2017-03-01T08:41:30+01:00 manpage Add proper web address to the project (include https) --- Modified: doc/man/kamailio.8 --- Diff:
https://github.com/kamailio/kamailio/commit/1f3884ce4cd08c6b7b52c2dd15bb2a5…
Patch:
…
[View More]
https://github.com/kamailio/kamailio/commit/1f3884ce4cd08c6b7b52c2dd15bb2a5…
--- diff --git a/doc/man/kamailio.8 b/doc/man/kamailio.8 index 01ec058..d2214f1 100644 --- a/doc/man/kamailio.8 +++ b/doc/man/kamailio.8 @@ -4,7 +4,7 @@ .\" groff -man -Tascii kamailio.8 .\" .SH NAME -kamailio \- very fast and configurable SIP server +kamailio \- a very fast and configurable SIP server .SH SYNOPSIS .B kamailio [ @@ -187,7 +187,7 @@ see .PP Full documentation on kamailio, including configuration guidelines, FAQs and licensing conditions, is available at -.I
http://kamailio.org
. +.I
https://www.kamailio.org/
.PP For reporting bugs see .I
[View Less]
1
0
0
0
git:master:958b63b9: lcr: accept DB1_STR and DB1_STRING db types
by Ovidiu Sas
01 Mar '17
01 Mar '17
Module: kamailio Branch: master Commit: 958b63b9fc500152b6671b90e9a813696a6aaadb URL:
https://github.com/kamailio/kamailio/commit/958b63b9fc500152b6671b90e9a8136…
Author: Ovidiu Sas <osas(a)voipembedded.com> Committer: Ovidiu Sas <osas(a)voipembedded.com> Date: 2017-02-28T19:06:05-05:00 lcr: accept DB1_STR and DB1_STRING db types --- Modified: src/modules/lcr/lcr_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/958b63b9fc500152b6671b90e9a8136…
Patch:
https://github.com/kamailio/kamailio/commit/958b63b9fc500152b6671b90e9a8136…
1
0
0
0
← Newer
1
...
24
25
26
27
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
Results per page:
10
25
50
100
200