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
January 2019
----- 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
27 participants
301 discussions
Start a n
N
ew thread
git:master:ffdec6d3: pipelimit: Fix memleak on shutdown
by Alex Hermann
Module: kamailio Branch: master Commit: ffdec6d38d0935d8af2633e3d3ded8a985ddfcca URL:
https://github.com/kamailio/kamailio/commit/ffdec6d38d0935d8af2633e3d3ded8a…
Author: Alex Hermann <alex(a)speakup.nl> Committer: Alex Hermann <alex(a)speakup.nl> Date: 2019-01-22T16:10:19+01:00 pipelimit: Fix memleak on shutdown --- Modified: src/modules/pipelimit/pl_ht.c --- Diff:
https://github.com/kamailio/kamailio/commit/ffdec6d38d0935d8af2633e3d3ded8a…
Patch:
https://github.com/kamailio/kamailio/commit/ffdec6d38d0935d8af2633e3d3ded8a…
--- diff --git a/src/modules/pipelimit/pl_ht.c b/src/modules/pipelimit/pl_ht.c index 518254f1fa..319d97b1ff 100644 --- a/src/modules/pipelimit/pl_ht.c +++ b/src/modules/pipelimit/pl_ht.c @@ -102,6 +102,7 @@ int pl_init_htable(unsigned int hsize) void pl_pipe_free(pl_pipe_t *it) { + shm_free(it); return; }
5 years, 11 months
1
0
0
0
git:master:ceaeefd4: Merge pull request #1820 from kamailio/presence-fix-debug-msg
by GitHub
Module: kamailio Branch: master Commit: ceaeefd4f0add9123054b68b4f2f30707f487249 URL:
https://github.com/kamailio/kamailio/commit/ceaeefd4f0add9123054b68b4f2f307…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: GitHub <noreply(a)github.com> Date: 2019-01-24T14:47:50+01:00 Merge pull request #1820 from kamailio/presence-fix-debug-msg presence: switch warning to debug --- Modified: src/modules/presence/presentity.c --- Diff:
https://github.com/kamailio/kamailio/commit/ceaeefd4f0add9123054b68b4f2f307…
Patch:
https://github.com/kamailio/kamailio/commit/ceaeefd4f0add9123054b68b4f2f307…
--- diff --git a/src/modules/presence/presentity.c b/src/modules/presence/presentity.c index 635ddcefe6..f496f4a583 100644 --- a/src/modules/presence/presentity.c +++ b/src/modules/presence/presentity.c @@ -427,7 +427,7 @@ int delete_presentity_if_dialog_id_exists( old_presentity.event = presentity->event; old_presentity.etag = tmp_db_etag; - LM_WARN("Presentity already exists - deleting it\n"); + LM_DBG("Presentity found - deleting it\n"); if(delete_presentity(&old_presentity, NULL) < 0) { LM_ERR("failed to delete presentity\n");
5 years, 11 months
1
0
0
0
git:master:a4669173: presence: switch warning to debug
by Emmanuel Schmidbauer
Module: kamailio Branch: master Commit: a466917378d516025062f7c1d5cf2958c70aa0b9 URL:
https://github.com/kamailio/kamailio/commit/a466917378d516025062f7c1d5cf295…
Author: Emmanuel Schmidbauer <emmanuel(a)getweave.com> Committer: Emmanuel Schmidbauer <emmanuel(a)getweave.com> Date: 2019-01-23T08:39:27-05:00 presence: switch warning to debug --- Modified: src/modules/presence/presentity.c --- Diff:
https://github.com/kamailio/kamailio/commit/a466917378d516025062f7c1d5cf295…
Patch:
https://github.com/kamailio/kamailio/commit/a466917378d516025062f7c1d5cf295…
--- diff --git a/src/modules/presence/presentity.c b/src/modules/presence/presentity.c index 635ddcefe6..f496f4a583 100644 --- a/src/modules/presence/presentity.c +++ b/src/modules/presence/presentity.c @@ -427,7 +427,7 @@ int delete_presentity_if_dialog_id_exists( old_presentity.event = presentity->event; old_presentity.etag = tmp_db_etag; - LM_WARN("Presentity already exists - deleting it\n"); + LM_DBG("Presentity found - deleting it\n"); if(delete_presentity(&old_presentity, NULL) < 0) { LM_ERR("failed to delete presentity\n");
5 years, 11 months
1
0
0
0
[kamailio/kamailio] presence: switch warning to debug (#1820)
by Emmanuel Schmidbauer
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1820
-- Commit Summary -- * switch warning to debug -- File Changes -- M src/modules/presence/presentity.c (2) -- Patch Links --
https://github.com/kamailio/kamailio/pull/1820.patch
https://github.com/kamailio/kamailio/pull/1820.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/1820
5 years, 11 months
2
1
0
0
git:master:4badb27c: Merge pull request #1814 from kamailio/lazedo/pv-def
by GitHub
Module: kamailio Branch: master Commit: 4badb27c07be39fcfaf58686394810ac15e80111 URL:
https://github.com/kamailio/kamailio/commit/4badb27c07be39fcfaf58686394810a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: GitHub <noreply(a)github.com> Date: 2019-01-24T14:47:19+01:00 Merge pull request #1814 from kamailio/lazedo/pv-def pv: add $def pseudo variable --- Modified: src/core/cfg.lex Modified: src/core/ppcfg.c Modified: src/modules/pv/pv.c Modified: src/modules/pv/pv_core.c Modified: src/modules/pv/pv_core.h --- Diff:
https://github.com/kamailio/kamailio/commit/4badb27c07be39fcfaf58686394810a…
Patch:
https://github.com/kamailio/kamailio/commit/4badb27c07be39fcfaf58686394810a…
--- diff --git a/src/core/cfg.lex b/src/core/cfg.lex index 6e4d6971e5..9912d111bc 100644 --- a/src/core/cfg.lex +++ b/src/core/cfg.lex @@ -113,7 +113,7 @@ struct sr_yy_fname *next; } *sr_yy_fname_list = 0; - static str *pp_define_get(int len, const char * text); + str *pp_define_get(int len, const char * text); static int pp_ifdef_type(int pos); static void pp_ifdef_var(int len, const char * text); static void pp_ifdef(); @@ -1856,7 +1856,7 @@ int pp_define_set(int len, char *text) return 0; } -static str *pp_define_get(int len, const char * text) +str *pp_define_get(int len, const char * text) { str var = {(char *)text, len}; int i; diff --git a/src/core/ppcfg.c b/src/core/ppcfg.c index 1ff3103f52..a06795f760 100644 --- a/src/core/ppcfg.c +++ b/src/core/ppcfg.c @@ -32,6 +32,7 @@ #include "dprint.h" #include "ppcfg.h" +#include "fmsg.h" typedef struct _pp_subst_rule { char *indata; @@ -184,7 +185,8 @@ int pp_subst_run(char **data) i = 0; while(pr) { - result=subst_str(*data, 0, + sip_msg_t *fmsg = faked_msg_get_next(); + result=subst_str(*data, fmsg, (struct subst_expr*)pr->ppdata, 0); /* pkg malloc'ed result */ if(result!=NULL) { diff --git a/src/modules/pv/pv.c b/src/modules/pv/pv.c index 06f831bd97..0df9353606 100644 --- a/src/modules/pv/pv.c +++ b/src/modules/pv/pv.c @@ -189,6 +189,8 @@ static pv_export_t mod_pvs[] = { {{"dd", (sizeof("dd")-1)}, /* */ PVT_OTHER, pv_get_dsturi_attr, 0, 0, 0, pv_init_iname, 1}, + {{"def", (sizeof("env")-1)}, PVT_OTHER, pv_get_def, 0, + pv_parse_def_name, 0, 0, 0}, {{"di", (sizeof("di")-1)}, /* */ PVT_OTHER, pv_get_diversion, 0, 0, 0, pv_init_iname, 1}, diff --git a/src/modules/pv/pv_core.c b/src/modules/pv/pv_core.c index 01cebc8534..2e54253eb4 100644 --- a/src/modules/pv/pv_core.c +++ b/src/modules/pv/pv_core.c @@ -3658,3 +3658,28 @@ int pv_get_env(sip_msg_t *msg, pv_param_t *param, pv_value_t *res) return pv_get_null(msg, param, res); } +int pv_parse_def_name(pv_spec_p sp, str *in) +{ + if (in == NULL || in->s == NULL || sp == NULL) { + LM_ERR("INVALID DEF NAME\n"); + return -1; + } + sp->pvp.pvn.type = PV_NAME_INTSTR; + sp->pvp.pvn.u.isname.type = AVP_NAME_STR; + sp->pvp.pvn.u.isname.name.s = *in; + return 0; + +} + +extern str *pp_define_get(int len, const char * text); + +int pv_get_def(sip_msg_t *msg, pv_param_t *param, pv_value_t *res) +{ + str *val = pp_define_get(param->pvn.u.isname.name.s.len, param->pvn.u.isname.name.s.s); + + if (val) { + return pv_get_strval(msg, param, res, val); + } + return pv_get_null(msg, param, res); +} + diff --git a/src/modules/pv/pv_core.h b/src/modules/pv/pv_core.h index 411f2f8aac..86629e66e0 100644 --- a/src/modules/pv/pv_core.h +++ b/src/modules/pv/pv_core.h @@ -379,5 +379,8 @@ int pv_parse_ksr_attrs_name(pv_spec_p sp, str *in); int pv_get_ksr_attrs(sip_msg_t *msg, pv_param_t *param, pv_value_t *res); +int pv_parse_def_name(pv_spec_p sp, str *in); +int pv_get_def(sip_msg_t *msg, pv_param_t *param, pv_value_t *res); + #endif
5 years, 11 months
1
0
0
0
git:master:43aeb98f: pv: add $def pseudo variable
by lazedo
Module: kamailio Branch: master Commit: 43aeb98fbe3902cb8a1c5d653ce0ff8f4551d99a URL:
https://github.com/kamailio/kamailio/commit/43aeb98fbe3902cb8a1c5d653ce0ff8…
Author: lazedo <luis.azedo(a)factorlusitano.com> Committer: lazedo <luis.azedo(a)factorlusitano.com> Date: 2019-01-18T13:25:24Z pv: add $def pseudo variable --- Modified: src/modules/pv/pv.c Modified: src/modules/pv/pv_core.c Modified: src/modules/pv/pv_core.h --- Diff:
https://github.com/kamailio/kamailio/commit/43aeb98fbe3902cb8a1c5d653ce0ff8…
Patch:
https://github.com/kamailio/kamailio/commit/43aeb98fbe3902cb8a1c5d653ce0ff8…
--- diff --git a/src/modules/pv/pv.c b/src/modules/pv/pv.c index 06f831bd97..0df9353606 100644 --- a/src/modules/pv/pv.c +++ b/src/modules/pv/pv.c @@ -189,6 +189,8 @@ static pv_export_t mod_pvs[] = { {{"dd", (sizeof("dd")-1)}, /* */ PVT_OTHER, pv_get_dsturi_attr, 0, 0, 0, pv_init_iname, 1}, + {{"def", (sizeof("env")-1)}, PVT_OTHER, pv_get_def, 0, + pv_parse_def_name, 0, 0, 0}, {{"di", (sizeof("di")-1)}, /* */ PVT_OTHER, pv_get_diversion, 0, 0, 0, pv_init_iname, 1}, diff --git a/src/modules/pv/pv_core.c b/src/modules/pv/pv_core.c index 01cebc8534..2e54253eb4 100644 --- a/src/modules/pv/pv_core.c +++ b/src/modules/pv/pv_core.c @@ -3658,3 +3658,28 @@ int pv_get_env(sip_msg_t *msg, pv_param_t *param, pv_value_t *res) return pv_get_null(msg, param, res); } +int pv_parse_def_name(pv_spec_p sp, str *in) +{ + if (in == NULL || in->s == NULL || sp == NULL) { + LM_ERR("INVALID DEF NAME\n"); + return -1; + } + sp->pvp.pvn.type = PV_NAME_INTSTR; + sp->pvp.pvn.u.isname.type = AVP_NAME_STR; + sp->pvp.pvn.u.isname.name.s = *in; + return 0; + +} + +extern str *pp_define_get(int len, const char * text); + +int pv_get_def(sip_msg_t *msg, pv_param_t *param, pv_value_t *res) +{ + str *val = pp_define_get(param->pvn.u.isname.name.s.len, param->pvn.u.isname.name.s.s); + + if (val) { + return pv_get_strval(msg, param, res, val); + } + return pv_get_null(msg, param, res); +} + diff --git a/src/modules/pv/pv_core.h b/src/modules/pv/pv_core.h index 411f2f8aac..86629e66e0 100644 --- a/src/modules/pv/pv_core.h +++ b/src/modules/pv/pv_core.h @@ -379,5 +379,8 @@ int pv_parse_ksr_attrs_name(pv_spec_p sp, str *in); int pv_get_ksr_attrs(sip_msg_t *msg, pv_param_t *param, pv_value_t *res); +int pv_parse_def_name(pv_spec_p sp, str *in); +int pv_get_def(sip_msg_t *msg, pv_param_t *param, pv_value_t *res); + #endif
5 years, 11 months
1
0
0
0
git:master:83a43714: core: allow pp_define_get to be used by modules
by lazedo
Module: kamailio Branch: master Commit: 83a437144bad5d31f5ce1bfc10b03f613524852f URL:
https://github.com/kamailio/kamailio/commit/83a437144bad5d31f5ce1bfc10b03f6…
Author: lazedo <luis.azedo(a)factorlusitano.com> Committer: lazedo <luis.azedo(a)factorlusitano.com> Date: 2019-01-18T13:18:01Z core: allow pp_define_get to be used by modules --- Modified: src/core/cfg.lex --- Diff:
https://github.com/kamailio/kamailio/commit/83a437144bad5d31f5ce1bfc10b03f6…
Patch:
https://github.com/kamailio/kamailio/commit/83a437144bad5d31f5ce1bfc10b03f6…
--- diff --git a/src/core/cfg.lex b/src/core/cfg.lex index 6e4d6971e5..9912d111bc 100644 --- a/src/core/cfg.lex +++ b/src/core/cfg.lex @@ -113,7 +113,7 @@ struct sr_yy_fname *next; } *sr_yy_fname_list = 0; - static str *pp_define_get(int len, const char * text); + str *pp_define_get(int len, const char * text); static int pp_ifdef_type(int pos); static void pp_ifdef_var(int len, const char * text); static void pp_ifdef(); @@ -1856,7 +1856,7 @@ int pp_define_set(int len, char *text) return 0; } -static str *pp_define_get(int len, const char * text) +str *pp_define_get(int len, const char * text) { str var = {(char *)text, len}; int i;
5 years, 11 months
1
0
0
0
git:master:2a436316: core: allow pvar resolve in subsdef
by lazedo
Module: kamailio Branch: master Commit: 2a43631692285346050ae906f772a1c111906c5b URL:
https://github.com/kamailio/kamailio/commit/2a43631692285346050ae906f772a1c…
Author: lazedo <luis.azedo(a)factorlusitano.com> Committer: lazedo <luis.azedo(a)factorlusitano.com> Date: 2019-01-18T13:17:02Z core: allow pvar resolve in subsdef --- Modified: src/core/ppcfg.c --- Diff:
https://github.com/kamailio/kamailio/commit/2a43631692285346050ae906f772a1c…
Patch:
https://github.com/kamailio/kamailio/commit/2a43631692285346050ae906f772a1c…
--- diff --git a/src/core/ppcfg.c b/src/core/ppcfg.c index 1ff3103f52..a06795f760 100644 --- a/src/core/ppcfg.c +++ b/src/core/ppcfg.c @@ -32,6 +32,7 @@ #include "dprint.h" #include "ppcfg.h" +#include "fmsg.h" typedef struct _pp_subst_rule { char *indata; @@ -184,7 +185,8 @@ int pp_subst_run(char **data) i = 0; while(pr) { - result=subst_str(*data, 0, + sip_msg_t *fmsg = faked_msg_get_next(); + result=subst_str(*data, fmsg, (struct subst_expr*)pr->ppdata, 0); /* pkg malloc'ed result */ if(result!=NULL) {
5 years, 11 months
1
0
0
0
git:master:91c0e143: presence_mwi: small improvement to error log message
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 91c0e1434d743b8af7bcaa7d993029b6a3c15cb8 URL:
https://github.com/kamailio/kamailio/commit/91c0e1434d743b8af7bcaa7d993029b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2019-01-24T12:46:57+01:00 presence_mwi: small improvement to error log message --- Modified: src/modules/presence_mwi/add_events.c --- Diff:
https://github.com/kamailio/kamailio/commit/91c0e1434d743b8af7bcaa7d993029b…
Patch:
https://github.com/kamailio/kamailio/commit/91c0e1434d743b8af7bcaa7d993029b…
--- diff --git a/src/modules/presence_mwi/add_events.c b/src/modules/presence_mwi/add_events.c index 94c606de75..001034ade4 100644 --- a/src/modules/presence_mwi/add_events.c +++ b/src/modules/presence_mwi/add_events.c @@ -106,8 +106,8 @@ int mwi_publ_handl(struct sip_msg* msg) return 1; err: - LM_ERR("check of body <%.*s> failed at character number %d\n", - body.len, body.s, (int)(at - body.s + 1)); + LM_ERR("check of body <%.*s> failed at character index %d (hexa: 0x%x)\n", + body.len, body.s, (int)(at - body.s + 1), (int)(*at)); return -1; }
5 years, 11 months
1
0
0
0
git:master:c02c05d5: modules: readme files regenerated - jsonrpcs ... [skip ci]
by Kamailio Dev
Module: kamailio Branch: master Commit: c02c05d50762e14981c9a1817f303e1d10a8ea90 URL:
https://github.com/kamailio/kamailio/commit/c02c05d50762e14981c9a1817f303e1…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org> Committer: Kamailio Dev <kamailio.dev(a)kamailio.org> Date: 2019-01-23T23:01:41+01:00 modules: readme files regenerated - jsonrpcs ... [skip ci] --- Modified: src/modules/jsonrpcs/README --- Diff:
https://github.com/kamailio/kamailio/commit/c02c05d50762e14981c9a1817f303e1…
Patch:
https://github.com/kamailio/kamailio/commit/c02c05d50762e14981c9a1817f303e1…
--- diff --git a/src/modules/jsonrpcs/README b/src/modules/jsonrpcs/README index 3854db4a74..a16d628fae 100644 --- a/src/modules/jsonrpcs/README +++ b/src/modules/jsonrpcs/README @@ -363,13 +363,13 @@ children=2 tcp_accept_no_cl=yes -mpath="modules/" - loadmodule "sl.so" loadmodule "pv.so" loadmodule "xhttp.so" loadmodule "jsonrpcs.so" +modparam("jsonrpcs", "transport", 1) + request_route { send_reply("404", "not found"); exit;
5 years, 11 months
1
0
0
0
← Newer
1
...
11
12
13
14
15
16
17
...
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