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
October 2017
----- 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
33 participants
301 discussions
Start a n
N
ew thread
git:master:e4800a83: timer: use route_lookup() instead of route_get() to find a route block
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: e4800a83439cb04eb3a5d4e106ad767a3d6776a5 URL:
https://github.com/kamailio/kamailio/commit/e4800a83439cb04eb3a5d4e106ad767…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-10-27T16:44:56+02:00 timer: use route_lookup() instead of route_get() to find a route block - avoids creating an empty route block structure - split code for dedicated cfg function wrapper --- Modified: src/modules/timer/timer.c --- Diff:
https://github.com/kamailio/kamailio/commit/e4800a83439cb04eb3a5d4e106ad767…
Patch:
https://github.com/kamailio/kamailio/commit/e4800a83439cb04eb3a5d4e106ad767…
--- diff --git a/src/modules/timer/timer.c b/src/modules/timer/timer.c index 4a09a94c2b..009bc6a95d 100644 --- a/src/modules/timer/timer.c +++ b/src/modules/timer/timer.c @@ -252,12 +252,8 @@ static int timer_enable_fixup(void** param, int param_no) return 0; } -static int timer_enable_func(sip_msg_t* m, char* timer_act, char* enable) +static int timer_enable_helper(sip_msg_t* m, timer_action_t* a, int en) { - timer_action_t* a; - int en; - a = (void*) timer_act; - en = (int)(long) enable; /* timer is not deleted immediately but is removed from handler * by itself because timer_del may be slow blocking procedure * Disable and enable in sequence may be tricky @@ -282,6 +278,16 @@ static int timer_enable_func(sip_msg_t* m, char* timer_act, char* enable) return 1; } +static int timer_enable_func(sip_msg_t* m, char* timer_act, char* enable) +{ + timer_action_t* a; + int en; + a = (void*) timer_act; + en = (int)(long) enable; + + return timer_enable_helper(m, a, en); +} + static int get_next_part(char** s, str* part, char delim) { char *c, *c2; @@ -331,7 +337,7 @@ static int declare_timer(modparam_t type, char* param) c = s.s[s.len]; s.s[s.len] = '\0'; - n = route_get(&main_rt, s.s); + n = route_lookup(&main_rt, s.s); s.s[s.len] = c; if (n == -1) goto err; route_no = n;
7 years
1
0
0
0
git:master:17f5db5b: modules: readme files regenerated - timer ... [skip ci]
by Kamailio Dev
Module: kamailio Branch: master Commit: 17f5db5b934a6ba35835aa99545d79deb99b35af URL:
https://github.com/kamailio/kamailio/commit/17f5db5b934a6ba35835aa99545d79d…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org> Committer: Kamailio Dev <kamailio.dev(a)kamailio.org> Date: 2017-10-27T15:31:22+02:00 modules: readme files regenerated - timer ... [skip ci] --- Modified: src/modules/timer/README --- Diff:
https://github.com/kamailio/kamailio/commit/17f5db5b934a6ba35835aa99545d79d…
Patch:
https://github.com/kamailio/kamailio/commit/17f5db5b934a6ba35835aa99545d79d…
--- diff --git a/src/modules/timer/README b/src/modules/timer/README index 23cd3e49b9..bc20dd0953 100644 --- a/src/modules/timer/README +++ b/src/modules/timer/README @@ -26,10 +26,13 @@ Tomas Mandys 5. Functions 5.1. timer_enable(timer_id, enable_disable) - 5.2. @timer.timer.timer_id.enabled - 5.3. @timer.executed - 6. Examples + 6. Selects + + 6.1. @timer.timer.timer_id.enabled + 6.2. @timer.executed + + 7. Examples List of Examples @@ -58,10 +61,13 @@ Chapter 1. Admin Guide 5. Functions 5.1. timer_enable(timer_id, enable_disable) - 5.2. @timer.timer.timer_id.enabled - 5.3. @timer.executed - 6. Examples + 6. Selects + + 6.1. @timer.timer.timer_id.enabled + 6.2. @timer.executed + + 7. Examples 1. Overview @@ -87,11 +93,13 @@ Chapter 1. Admin Guide 3. ABNF syntax +... timer_id = alphanum slow_fast = "slow" | "fast" declare_timer_syntax = timer_id "=" (route#|route_name) "," interval "," slow_fast "," ["enable"] enable_disable = "0" | "1" +... 4. Parameters @@ -115,16 +123,13 @@ Chapter 1. Admin Guide timer_enable to start it later. Example 1.1. Example declare_timer - ... - modparam("timer", "declare_timer", "MY_TIMER=MY_TIMER_ROUTE,10,slow,enab -le"); - ... +... +modparam("timer", "declare_timer", "MY_TIMER=MY_TIMER_ROUTE,10,slow,enable"); +... 5. Functions 5.1. timer_enable(timer_id, enable_disable) - 5.2. @timer.timer.timer_id.enabled - 5.3. @timer.executed 5.1. timer_enable(timer_id, enable_disable) @@ -136,34 +141,44 @@ le"); * enable_distable - set to 1 to enable timer, to 0 to disable. Example 1.2. timer_enable usage - ... - timer_enable("MY_TIMER", 1); - ... +... +timer_enable("MY_TIMER", 1); +... + +6. Selects -5.2. @timer.timer.timer_id.enabled + 6.1. @timer.timer.timer_id.enabled + 6.2. @timer.executed + +6.1. @timer.timer.timer_id.enabled Return true ("1") if timer specified by timer_id is enabled, otherwise returns false ("0"). Example 1.3. timer.timer.timer_id.enabled usage - if (@timer.timer.MY_TIMER.enabled == "1") { - .... - } +... +if (@timer.timer.MY_TIMER.enabled == "1") { + ... +} +... -5.3. @timer.executed +6.2. @timer.executed Returns name of timer which has been executed, i.e. non empty value is returned only when handler is being processed. Example 1.4. timer.executed usage - if (@timer.executed != "") { - # timer is being handled - .... - } +... +if (@timer.executed != "") { + # timer is being handled + ... +} +... -6. Examples +7. Examples Example 1.5. timer common example +... loadmodule "modules/xprint/xprint.so" loadmodule "modules/timer/timer.so" @@ -184,18 +199,20 @@ route["ONTIMER2"] { timer_enable("tmr1", 0); route("print"); } +... Example 1.6. Using timer module for testing a functionality The timer module may be used to test a functionality being developed and not requiring real request. A developer may put tested code in route section which is called once after Kamailio starts. +... loadmodule "timer"; loadmodule "xprint"; modparam("timer", "declare_timer", "TIMER_TEST=TEST,100,,enable"); -route { +request_route { xplog("L_E","main route"); } @@ -206,4 +223,5 @@ route[TEST] { # add here tested functionality xplog("L_E","test end\n"); -} + } +...
7 years
1
0
0
0
git:master:25a775cf: timer: docs - split selects from functions section
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 25a775cf44bc9c88ce8b6afc906968e2677dbf37 URL:
https://github.com/kamailio/kamailio/commit/25a775cf44bc9c88ce8b6afc906968e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-10-27T15:11:49+02:00 timer: docs - split selects from functions section --- Modified: src/modules/timer/doc/timer.xml --- Diff:
https://github.com/kamailio/kamailio/commit/25a775cf44bc9c88ce8b6afc906968e…
Patch:
https://github.com/kamailio/kamailio/commit/25a775cf44bc9c88ce8b6afc906968e…
7 years
1
0
0
0
git:master:e9d0e799: timer: use typedefs, updated log macros
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: e9d0e799309b807b2376fd3eb30bd74a36997168 URL:
https://github.com/kamailio/kamailio/commit/e9d0e799309b807b2376fd3eb30bd74…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-10-27T15:01:41+02:00 timer: use typedefs, updated log macros --- Modified: src/modules/timer/timer.c --- Diff:
https://github.com/kamailio/kamailio/commit/e9d0e799309b807b2376fd3eb30bd74…
Patch:
https://github.com/kamailio/kamailio/commit/e9d0e799309b807b2376fd3eb30bd74…
7 years
1
0
0
0
git:master:3386e345: timer: code formatting
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 3386e34593da78fcbf6f72f45ad2e6e8d3a72525 URL:
https://github.com/kamailio/kamailio/commit/3386e34593da78fcbf6f72f45ad2e6e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-10-27T14:52:22+02:00 timer: code formatting --- Modified: src/modules/timer/timer.c --- Diff:
https://github.com/kamailio/kamailio/commit/3386e34593da78fcbf6f72f45ad2e6e…
Patch:
https://github.com/kamailio/kamailio/commit/3386e34593da78fcbf6f72f45ad2e6e…
7 years
1
0
0
0
[kamailio/kamailio] dialog: remove replicated dialog from profile as soon as gets to term… (#1284)
by Charles Chance
…inated state - matches local (non-replicated) behaviour introduced in edf61ac You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1284
-- Commit Summary -- * dialog: remove replicated dialog from profile as soon as gets to terminated state -- File Changes -- M src/modules/dialog/dlg_dmq.c (7) -- Patch Links --
https://github.com/kamailio/kamailio/pull/1284.patch
https://github.com/kamailio/kamailio/pull/1284.diff
-- 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/pull/1284
7 years
2
2
0
0
git:master:0a3ba3ca: Merge pull request #1284 from kamailio/cchance/dialog
by GitHub
Module: kamailio Branch: master Commit: 0a3ba3ca39d7215a9ac6b8906768e2835f6de353 URL:
https://github.com/kamailio/kamailio/commit/0a3ba3ca39d7215a9ac6b8906768e28…
Author: Charles Chance <charles.chance(a)sipcentric.com> Committer: GitHub <noreply(a)github.com> Date: 2017-10-27T11:34:32+01:00 Merge pull request #1284 from kamailio/cchance/dialog dialog: remove replicated dialog from profile as soon as gets to term⦠--- Modified: src/modules/dialog/dlg_dmq.c --- Diff:
https://github.com/kamailio/kamailio/commit/0a3ba3ca39d7215a9ac6b8906768e28…
Patch:
https://github.com/kamailio/kamailio/commit/0a3ba3ca39d7215a9ac6b8906768e28…
--- diff --git a/src/modules/dialog/dlg_dmq.c b/src/modules/dialog/dlg_dmq.c index 668bdbdef4..1a27842254 100644 --- a/src/modules/dialog/dlg_dmq.c +++ b/src/modules/dialog/dlg_dmq.c @@ -323,6 +323,13 @@ int dlg_dmq_handle_msg(struct sip_msg* msg, peer_reponse_t* resp, dmq_node_t* no dlg, dlg->h_entry, dlg->h_id); } } + + /* remove dialog from profiles when no longer active */ + if (dlg->profile_links!=NULL) { + destroy_linkers(dlg->profile_links); + dlg->profile_links = NULL; + } + /* prevent DB sync */ dlg->dflags |= DLG_FLAG_NEW; /* keep dialog around for a bit, to prevent out-of-order
7 years
1
0
0
0
git:master:22e4031c: dialog: remove replicated dialog from profile as soon as gets to terminated state
by Charles Chance
Module: kamailio Branch: master Commit: 22e4031cdcc7ba7c90553bd569e289043c0c64cf URL:
https://github.com/kamailio/kamailio/commit/22e4031cdcc7ba7c90553bd569e2890…
Author: Charles Chance <charles.chance(a)sipcentric.com> Committer: Charles Chance <charles.chance(a)sipcentric.com> Date: 2017-10-25T15:29:07+01:00 dialog: remove replicated dialog from profile as soon as gets to terminated state - matches local (non-replicated) behaviour introduced in edf61ac --- Modified: src/modules/dialog/dlg_dmq.c --- Diff:
https://github.com/kamailio/kamailio/commit/22e4031cdcc7ba7c90553bd569e2890…
Patch:
https://github.com/kamailio/kamailio/commit/22e4031cdcc7ba7c90553bd569e2890…
--- diff --git a/src/modules/dialog/dlg_dmq.c b/src/modules/dialog/dlg_dmq.c index 668bdbdef4..1a27842254 100644 --- a/src/modules/dialog/dlg_dmq.c +++ b/src/modules/dialog/dlg_dmq.c @@ -323,6 +323,13 @@ int dlg_dmq_handle_msg(struct sip_msg* msg, peer_reponse_t* resp, dmq_node_t* no dlg, dlg->h_entry, dlg->h_id); } } + + /* remove dialog from profiles when no longer active */ + if (dlg->profile_links!=NULL) { + destroy_linkers(dlg->profile_links); + dlg->profile_links = NULL; + } + /* prevent DB sync */ dlg->dflags |= DLG_FLAG_NEW; /* keep dialog around for a bit, to prevent out-of-order
7 years
1
0
0
0
[kamailio/kamailio] pkg/kamailio/obs: git cherry-pick to 5.0 branch (#1285)
by sergey-safarov
pkg/kamailio/obs: git cherry-pick to 5.0 branch You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1285
-- Commit Summary -- * pkg/kamailio/obs: Updated SPEC file * pkg/kamailio/obs Fixed build of perl module * pkg/kamailio/obs: Added support of OpenSUSE Tumbleweed -- File Changes -- M pkg/kamailio/obs/kamailio.service (2) M pkg/kamailio/obs/kamailio.spec (193) M pkg/kamailio/obs/meta (9) A pkg/kamailio/obs/prjconf (5) -- Patch Links --
https://github.com/kamailio/kamailio/pull/1285.patch
https://github.com/kamailio/kamailio/pull/1285.diff
-- 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/pull/1285
7 years
2
3
0
0
git:5.0:dd50f9a0: Merge pull request #1285 from sergey-safarov/5.0
by GitHub
Module: kamailio Branch: 5.0 Commit: dd50f9a07250b431402d3a7ee8ebe2e04be931b5 URL:
https://github.com/kamailio/kamailio/commit/dd50f9a07250b431402d3a7ee8ebe2e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: GitHub <noreply(a)github.com> Date: 2017-10-27T10:52:20+02:00 Merge pull request #1285 from sergey-safarov/5.0 pkg/kamailio/obs: git cherry-pick to 5.0 branch --- Added: pkg/kamailio/obs/prjconf Modified: pkg/kamailio/obs/kamailio.service Modified: pkg/kamailio/obs/kamailio.spec Modified: pkg/kamailio/obs/meta --- Diff:
https://github.com/kamailio/kamailio/commit/dd50f9a07250b431402d3a7ee8ebe2e…
Patch:
https://github.com/kamailio/kamailio/commit/dd50f9a07250b431402d3a7ee8ebe2e…
7 years
1
0
0
0
← Newer
1
...
9
10
11
12
13
14
15
...
31
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
Results per page:
10
25
50
100
200