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
December 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
17 participants
312 discussions
Start a n
N
ew thread
git:master:90d1485c: topos_htable: Small update to doc
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 90d1485c62bdfe509ff14b1b05baf0752b1a946e URL:
https://github.com/kamailio/kamailio/commit/90d1485c62bdfe509ff14b1b05baf07…
Author: Stefan Mititelu <stefan.mititelu(a)net2phone.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2024-12-14T11:52:02+01:00 topos_htable: Small update to doc --- Modified: src/modules/topos_htable/doc/topos_htable.xml --- Diff:
https://github.com/kamailio/kamailio/commit/90d1485c62bdfe509ff14b1b05baf07…
Patch:
https://github.com/kamailio/kamailio/commit/90d1485c62bdfe509ff14b1b05baf07…
--- diff --git a/src/modules/topos_htable/doc/topos_htable.xml b/src/modules/topos_htable/doc/topos_htable.xml index 66344832065..d42066155a9 100644 --- a/src/modules/topos_htable/doc/topos_htable.xml +++ b/src/modules/topos_htable/doc/topos_htable.xml @@ -10,36 +10,22 @@ <book xmlns:xi="
http://www.w3.org/2001/XInclude
"> <bookinfo> - <title>TOPOS_REDIS Module</title> + <title>TOPOS_HTABLE Module</title> <productname class="trade">
kamailio.org
</productname> <authorgroup> - <author> - <firstname>Daniel-Constantin</firstname> - <surname>Mierla</surname> - <email>miconda(a)gmail.com</email> - </author> <editor> - <firstname>Daniel-Constantin</firstname> - <surname>Mierla</surname> - <email>miconda(a)gmail.com</email> - </editor> - <editor> - <firstname>Frederic</firstname> - <surname>Gaisnon</surname> - <email>frederic.gaisnon(a)gmail.com</email> + <firstname>Stefan</firstname> + <surname>Mititelu</surname> + <email>stefan.mititelu(a)net2phone.com</email> </editor> </authorgroup> <copyright> - <year>2017</year> + <year>2024</year> <holder>
kamailio.org
</holder> </copyright> <copyright> - <year>2017</year> - <holder>
flowroute.com
</holder> - </copyright> - <copyright> - <year>2021</year> - <holder>MomentTech</holder> + <year>2024</year> + <holder>
net2phone.com
</holder> </copyright> </bookinfo> <toc></toc>
1 week, 1 day
1
0
0
0
git:master:df48b373: topos_htable: Initial commit
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: df48b373c39d631f49cb3632f7547f65b58eda3e URL:
https://github.com/kamailio/kamailio/commit/df48b373c39d631f49cb3632f7547f6…
Author: Stefan Mititelu <stefan.mititelu(a)net2phone.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2024-12-14T11:52:02+01:00 topos_htable: Initial commit --- Added: src/modules/topos_htable/Makefile Added: src/modules/topos_htable/doc/Makefile Added: src/modules/topos_htable/doc/topos_htable.xml Added: src/modules/topos_htable/doc/topos_htable_admin.xml Added: src/modules/topos_htable/topos_htable_mod.c Added: src/modules/topos_htable/topos_htable_storage.c Added: src/modules/topos_htable/topos_htable_storage.h Modified: src/Makefile.groups --- Diff:
https://github.com/kamailio/kamailio/commit/df48b373c39d631f49cb3632f7547f6…
Patch:
https://github.com/kamailio/kamailio/commit/df48b373c39d631f49cb3632f7547f6…
1 week, 1 day
1
0
0
0
git:master:bd70a78c: topos: Updates for topos_htable module
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: bd70a78ce22ab419a52e8733bc7ee27765d14cac URL:
https://github.com/kamailio/kamailio/commit/bd70a78ce22ab419a52e8733bc7ee27…
Author: Stefan Mititelu <stefan.mititelu(a)net2phone.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2024-12-14T11:52:02+01:00 topos: Updates for topos_htable module Add htable storage modparam. End storage dialog on negative replies. --- Modified: src/modules/topos/doc/topos_admin.xml Modified: src/modules/topos/topos_mod.c Modified: src/modules/topos/tps_msg.c --- Diff:
https://github.com/kamailio/kamailio/commit/bd70a78ce22ab419a52e8733bc7ee27…
Patch:
https://github.com/kamailio/kamailio/commit/bd70a78ce22ab419a52e8733bc7ee27…
--- diff --git a/src/modules/topos/doc/topos_admin.xml b/src/modules/topos/doc/topos_admin.xml index 4ccc4b7790f..f4fa47556e2 100644 --- a/src/modules/topos/doc/topos_admin.xml +++ b/src/modules/topos/doc/topos_admin.xml @@ -99,6 +99,11 @@ <emphasis>redis</emphasis> - Redis Backend </para> </listitem> + <listitem> + <para> + <emphasis>htable</emphasis> - htable module Backend + </para> + </listitem> </itemizedlist> <para> <emphasis> diff --git a/src/modules/topos/topos_mod.c b/src/modules/topos/topos_mod.c index 3214bdeb66d..c0db6ec72ec 100644 --- a/src/modules/topos/topos_mod.c +++ b/src/modules/topos/topos_mod.c @@ -288,6 +288,9 @@ static int mod_init(void) _tpsdbf.close(topos_db_con); topos_db_con = NULL; } + } else if(_tps_storage.len == 6 + && strncmp(_tps_storage.s, "htable", 6) == 0) { + // use htable module api } else { if(_tps_storage.len != 7 && strncmp(_tps_storage.s, "redis", 5) != 0) { LM_ERR("unknown storage type: %.*s\n", _tps_storage.len, diff --git a/src/modules/topos/tps_msg.c b/src/modules/topos/tps_msg.c index e0e1c211923..7fff763fe26 100644 --- a/src/modules/topos/tps_msg.c +++ b/src/modules/topos/tps_msg.c @@ -1081,6 +1081,14 @@ int tps_response_received(sip_msg_t *msg) tps_reappend_rr(msg, &btsd, &btsd.x_rr); tps_append_xbranch(msg, &mtsd.x_vbranch1); + if(msg->first_line.u.reply.statuscode > 299 + && (get_cseq(msg)->method_id + & (METHOD_INVITE | METHOD_SUBSCRIBE))) { + LM_DBG("%d reply end dialog storage\n", + msg->first_line.u.reply.statuscode); + tps_storage_end_dialog(msg, &mtsd, &stsd); + } + return 0; error:
1 week, 1 day
1
0
0
0
git:master:69db5823: htable: Updates for topos_htable module
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 69db5823fc9b8ee98c59d591517a1ecef91b16db URL:
https://github.com/kamailio/kamailio/commit/69db5823fc9b8ee98c59d591517a1ec…
Author: Stefan Mititelu <stefan.mititelu(a)net2phone.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2024-12-14T11:52:02+01:00 htable: Updates for topos_htable module Export table create api functions Fix ht_cell_pkg_copy str pointers. Otherwise, pkg cell str pointers will still point to shm memory. Set the pkg cell str pointers similar to how ht_cell_new sets the str pointers. --- Modified: src/modules/htable/api.c Modified: src/modules/htable/api.h Modified: src/modules/htable/ht_api.c --- Diff:
https://github.com/kamailio/kamailio/commit/69db5823fc9b8ee98c59d591517a1ec…
Patch:
https://github.com/kamailio/kamailio/commit/69db5823fc9b8ee98c59d591517a1ec…
--- diff --git a/src/modules/htable/api.c b/src/modules/htable/api.c index 57b2b4e75f1..94095d3d5d4 100644 --- a/src/modules/htable/api.c +++ b/src/modules/htable/api.c @@ -147,6 +147,16 @@ int ht_api_count_cells_re(str *hname, str *sre, int mode) return 0; } +int ht_api_table_spec(char *spec) +{ + return ht_table_spec(spec); +} + +int ht_api_init_tables(void) +{ + return ht_init_tables(); +} + /** * */ @@ -156,6 +166,8 @@ int bind_htable(htable_api_t *api) ERR("Invalid parameter value\n"); return -1; } + api->table_spec = ht_api_table_spec; + api->init_tables = ht_api_init_tables; api->set = ht_api_set_cell; api->get_clone = ht_api_get_cell_clone; api->rm = ht_api_del_cell; diff --git a/src/modules/htable/api.h b/src/modules/htable/api.h index 15e5207f1b2..8f67e5ca71a 100644 --- a/src/modules/htable/api.h +++ b/src/modules/htable/api.h @@ -25,6 +25,8 @@ #include "../../core/sr_module.h" #include "../../core/usr_avp.h" +typedef int (*ht_api_table_spec_f)(char *spec); +typedef int (*ht_api_init_tables_f)(void); typedef int (*ht_api_set_cell_f)( str *hname, str *name, int type, int_str *val, int mode); typedef ht_cell_t *(*ht_api_get_cell_clone_f)(str *hname, str *name); @@ -40,6 +42,8 @@ typedef int (*ht_api_count_cells_re_f)(str *hname, str *sre, int mode); typedef struct htable_api { + ht_api_table_spec_f table_spec; + ht_api_init_tables_f init_tables; ht_api_set_cell_f set; ht_api_get_cell_clone_f get_clone; ht_api_del_cell_f rm; diff --git a/src/modules/htable/ht_api.c b/src/modules/htable/ht_api.c index ecc49b547d6..8655c2bf443 100644 --- a/src/modules/htable/ht_api.c +++ b/src/modules/htable/ht_api.c @@ -359,6 +359,11 @@ int ht_init_tables(void) ht = _ht_root; while(ht) { + if(ht->entries != NULL) { + ht = ht->next; + continue; + } + LM_DBG("initializing htable [%.*s] with nr. of slots: %d\n", ht->name.len, ht->name.s, ht->htsize); if(ht->name.len + sizeof("htable:expired:") < HT_EVEX_NAME_SIZE) { @@ -860,8 +865,14 @@ ht_cell_t *ht_cell_pkg_copy(ht_t *ht, str *name, ht_cell_t *old) } } cell = (ht_cell_t *)pkg_malloc(it->msize); - if(cell != NULL) + if(cell != NULL) { memcpy(cell, it, it->msize); + + cell->name.s = (char *)cell + sizeof(ht_cell_t); + if(cell->flags & AVP_VAL_STR) { + cell->value.s.s = (char *)cell->name.s + cell->name.len + 1; + } + } ht_slot_unlock(ht, idx); return cell; }
1 week, 1 day
1
0
0
0
git:master:fbf2fef1: lwsc: add fixup_free* to exported functions
by Victor Seva
Module: kamailio Branch: master Commit: fbf2fef1ff0f3289cb4734f66b86f0a4f82f2407 URL:
https://github.com/kamailio/kamailio/commit/fbf2fef1ff0f3289cb4734f66b86f0a…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org> Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org> Date: 2024-12-13T20:12:07+01:00 lwsc: add fixup_free* to exported functions --- Modified: src/modules/lwsc/lwsc_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/fbf2fef1ff0f3289cb4734f66b86f0a…
Patch:
https://github.com/kamailio/kamailio/commit/fbf2fef1ff0f3289cb4734f66b86f0a…
--- diff --git a/src/modules/lwsc/lwsc_mod.c b/src/modules/lwsc/lwsc_mod.c index b1645448276..c38779ad712 100644 --- a/src/modules/lwsc/lwsc_mod.c +++ b/src/modules/lwsc/lwsc_mod.c @@ -51,6 +51,8 @@ static int w_lwsc_request_proto( static int w_lwsc_notify(sip_msg_t *msg, char *pwsurl, char *pdata); static int w_lwsc_notify_proto( sip_msg_t *msg, char *pwsurl, char *pwsproto, char *pdata); +static int lwsc_pv_get(sip_msg_t *msg, pv_param_t *param, pv_value_t *res); +static int lwsc_pv_parse_name(pv_spec_t *sp, str *in); static int _lwsc_timeout_connect = 0; static int _lwsc_timeout_send = 0; @@ -60,16 +62,17 @@ static str _lwsc_protocol = str_init("kmsg"); static int _lwsc_verbosity = 0; /* clang-format off */ -static cmd_export_t cmds[] = {{"lwsc_request", (cmd_function)w_lwsc_request, 2, - fixup_spve_all, 0, ANY_ROUTE}, +static cmd_export_t cmds[] = { + {"lwsc_request", (cmd_function)w_lwsc_request, 2, + fixup_spve_all, fixup_free_spve_all, ANY_ROUTE}, {"lwsc_request_proto", (cmd_function)w_lwsc_request_proto, 3, - fixup_spve_all, fixup_free_spve_all, ANY_ROUTE}, - {"lwsc_notify", (cmd_function)w_lwsc_notify, 2, fixup_spve_all, fixup_free_spve_all, - ANY_ROUTE}, + fixup_spve_all, fixup_free_spve_all, ANY_ROUTE}, + {"lwsc_notify", (cmd_function)w_lwsc_notify, 2, + fixup_spve_all, fixup_free_spve_all, ANY_ROUTE}, {"lwsc_notify_proto", (cmd_function)w_lwsc_notify_proto, 3, - fixup_spve_all, fixup_free_spve_all, ANY_ROUTE}, + fixup_spve_all, fixup_free_spve_all, ANY_ROUTE}, {"bind_lwsc", (cmd_function)bind_lwsc, 0, 0, 0, 0}, - {0, 0, 0, 0, 0, 0} + {0, 0, 0, 0, 0, 0} }; static param_export_t params[] = { @@ -82,9 +85,6 @@ static param_export_t params[] = { {0, 0, 0} }; -static int lwsc_pv_get(sip_msg_t *msg, pv_param_t *param, pv_value_t *res); -static int lwsc_pv_parse_name(pv_spec_t *sp, str *in); - static pv_export_t mod_pvs[] = { {{"lwsc", sizeof("lwsc") - 1}, PVT_OTHER, lwsc_pv_get, 0, lwsc_pv_parse_name, 0, 0, 0},
1 week, 2 days
1
0
0
0
git:master:e4f51d15: modules: readme files regenerated - dialog ... [skip ci]
by Kamailio Dev
Module: kamailio Branch: master Commit: e4f51d15aab7642e62da84877fed464f8461d643 URL:
https://github.com/kamailio/kamailio/commit/e4f51d15aab7642e62da84877fed464…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org> Committer: Kamailio Dev <kamailio.dev(a)kamailio.org> Date: 2024-12-13T20:01:09+01:00 modules: readme files regenerated - dialog ... [skip ci] --- Modified: src/modules/dialog/README --- Diff:
https://github.com/kamailio/kamailio/commit/e4f51d15aab7642e62da84877fed464…
Patch:
https://github.com/kamailio/kamailio/commit/e4f51d15aab7642e62da84877fed464…
1 week, 2 days
1
0
0
0
git:master:aae99e8e: dialog: update fields on dlg_set_state() changes
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: aae99e8e6d9cf959719b09360ff0cfc37386d722 URL:
https://github.com/kamailio/kamailio/commit/aae99e8e6d9cf959719b09360ff0cfc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2024-12-13T19:50:44+01:00 dialog: update fields on dlg_set_state() changes --- Modified: src/modules/dialog/dlg_handlers.c --- Diff:
https://github.com/kamailio/kamailio/commit/aae99e8e6d9cf959719b09360ff0cfc…
Patch:
https://github.com/kamailio/kamailio/commit/aae99e8e6d9cf959719b09360ff0cfc…
--- diff --git a/src/modules/dialog/dlg_handlers.c b/src/modules/dialog/dlg_handlers.c index 167e4602b88..0aeff6c02fd 100644 --- a/src/modules/dialog/dlg_handlers.c +++ b/src/modules/dialog/dlg_handlers.c @@ -1888,7 +1888,7 @@ int dlg_set_state(sip_msg_t *msg, int istate) str st = STR_NULL; dlg_cell_t *dlg = NULL; unsigned int dir = 0; - int oldstate = 0; + int ostate = 0; if(msg->callid == NULL && ((parse_headers(msg, HDR_CALLID_F, 0) == -1) @@ -1918,16 +1918,24 @@ int dlg_set_state(sip_msg_t *msg, int istate) LM_DBG("dialog not found\n"); return -1; } - oldstate = dlg->state; + ostate = dlg->state; dlg->state = istate; + /* updates for terminated dialogs */ + if(ostate == DLG_STATE_CONFIRMED && istate == DLG_STATE_DELETED) { + /* updating timestamps, flags, dialog stats */ + dlg->init_ts = (unsigned int)(time(0)); + dlg->end_ts = (unsigned int)(time(0)); + } + dlg->dflags |= DLG_FLAG_CHANGED; if(msg->first_line.type == SIP_REQUEST) { - LM_DBG("handling request - oldstate: %d newstate: %d\n", oldstate, + LM_DBG("handling request - oldstate: %d newstate: %d\n", ostate, istate); } else { - LM_DBG("handling response - oldstate: %d newstate: %d\n", oldstate, + LM_DBG("handling response - oldstate: %d newstate: %d\n", ostate, istate); } dlg_release(dlg); + return 0; }
1 week, 2 days
1
0
0
0
git:master:1e971674: dialog: docs for dlg_set_state(...) function
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 1e97167477b7a8a4b436fa6c1b07c6346afa3204 URL:
https://github.com/kamailio/kamailio/commit/1e97167477b7a8a4b436fa6c1b07c63…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2024-12-13T19:50:44+01:00 dialog: docs for dlg_set_state(...) function --- Modified: src/modules/dialog/doc/dialog_admin.xml --- Diff:
https://github.com/kamailio/kamailio/commit/1e97167477b7a8a4b436fa6c1b07c63…
Patch:
https://github.com/kamailio/kamailio/commit/1e97167477b7a8a4b436fa6c1b07c63…
--- diff --git a/src/modules/dialog/doc/dialog_admin.xml b/src/modules/dialog/doc/dialog_admin.xml index 180a25623eb..4a522cd553e 100644 --- a/src/modules/dialog/doc/dialog_admin.xml +++ b/src/modules/dialog/doc/dialog_admin.xml @@ -2708,6 +2708,50 @@ dlg_reset_property("timeout-noreset"); </example> </section> + <section id="dialog.f.dlg_set_state"> + <title> + <function moreinfo="none">dlg_set_state(newstate)</function> + </title> + <para> + Set the state for dialog matching current message. + </para> + <para>Meaning of the parameters is as follows:</para> + <itemizedlist> + <listitem> + <para><emphasis>newstate</emphasis> - the new state. It can be: + <itemizedlist> + <listitem> + 'unconfirmed' + </listitem> + <listitem> + 'early' + </listitem> + <listitem> + 'answered' + </listitem> + <listitem> + 'confirmed' + </listitem> + <listitem> + 'deleted' + </listitem> + </itemizedlist> + </para> + </listitem> + </itemizedlist> + <para> + This function can be used from ANY_ROUTE. + </para> + <example> + <title><function>dlg_set_state</function> usage</title> + <programlisting format="linespecific"> +... +dlg_set_state("early"); +... +</programlisting> + </example> + </section> + </section>
1 week, 2 days
1
0
0
0
git:master:dd1b6d4f: dialog: new function dlg_set_state(newstate) - set the state for a dialog
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: dd1b6d4ff1d15c71dc3f5cf0533478006f7aeefb URL:
https://github.com/kamailio/kamailio/commit/dd1b6d4ff1d15c71dc3f5cf05334780…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2024-12-13T19:50:44+01:00 dialog: new function dlg_set_state(newstate) - set the state for a dialog --- Modified: src/modules/dialog/dialog.c Modified: src/modules/dialog/dlg_handlers.c Modified: src/modules/dialog/dlg_handlers.h --- Diff:
https://github.com/kamailio/kamailio/commit/dd1b6d4ff1d15c71dc3f5cf05334780…
Patch:
https://github.com/kamailio/kamailio/commit/dd1b6d4ff1d15c71dc3f5cf05334780…
1 week, 2 days
1
0
0
0
git:master:498d2d54: dialog: docs for dlg_mode parameter
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 498d2d5468b29cedf781f92d3946d6c83950f152 URL:
https://github.com/kamailio/kamailio/commit/498d2d5468b29cedf781f92d3946d6c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2024-12-13T19:50:44+01:00 dialog: docs for dlg_mode parameter --- Modified: src/modules/dialog/doc/dialog_admin.xml --- Diff:
https://github.com/kamailio/kamailio/commit/498d2d5468b29cedf781f92d3946d6c…
Patch:
https://github.com/kamailio/kamailio/commit/498d2d5468b29cedf781f92d3946d6c…
--- diff --git a/src/modules/dialog/doc/dialog_admin.xml b/src/modules/dialog/doc/dialog_admin.xml index d1547b367a6..180a25623eb 100644 --- a/src/modules/dialog/doc/dialog_admin.xml +++ b/src/modules/dialog/doc/dialog_admin.xml @@ -1743,6 +1743,28 @@ modparam("dialog", "debug_variables", 1) </example> </section> + <section id="dialog.p.dlg_mode"> + <title><varname>dlg_mode</varname> (int)</title> + <para> + Control how dialog state management is done. If set to 0, the + the management is done with tm module callbacks; if set to 1, + tm callbacks are not used, states have to be set from config. + </para> + <para> + <emphasis> + Default value is <quote>0</quote>. + </emphasis> + </para> + <example> + <title>Set <varname>dlg_mode</varname> parameter</title> + <programlisting format="linespecific"> +... +modparam("dialog", "dlg_mode", 1) +... +</programlisting> + </example> + </section> + </section> <section>
1 week, 2 days
1
0
0
0
← Newer
1
...
9
10
11
12
13
14
15
...
32
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
Results per page:
10
25
50
100
200