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
January 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
538 discussions
Start a n
N
ew thread
git:master:18e3327b: kamctl: added DBPORT option
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 18e3327bedc1647a5abe0d377b15b74b2e860ef4 URL:
https://github.com/kamailio/kamailio/commit/18e3327bedc1647a5abe0d377b15b74…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-01-09T20:35:47+01:00 kamctl: added DBPORT option - allows to specify database engine (mysql/psql) port - requested by GH #916 --- Modified: utils/kamctl/kamctl.mysql Modified: utils/kamctl/kamctl.pgsql Modified: utils/kamctl/kamctlrc Modified: utils/kamctl/kamdbctl.mysql Modified: utils/kamctl/kamdbctl.pgsql --- Diff:
https://github.com/kamailio/kamailio/commit/18e3327bedc1647a5abe0d377b15b74…
Patch:
https://github.com/kamailio/kamailio/commit/18e3327bedc1647a5abe0d377b15b74…
7 years, 10 months
1
0
0
0
git:master:dad79f34: kamcmd: add /usr/local to C defs and libs if readline is detected in the path
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: dad79f34077eb818604293fe90b6565fa6a4f365 URL:
https://github.com/kamailio/kamailio/commit/dad79f34077eb818604293fe90b6565…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-01-09T18:18:18+01:00 kamcmd: add /usr/local to C defs and libs if readline is detected in the path - reported by GH#920 --- Modified: utils/kamcmd/Makefile --- Diff:
https://github.com/kamailio/kamailio/commit/dad79f34077eb818604293fe90b6565…
Patch:
https://github.com/kamailio/kamailio/commit/dad79f34077eb818604293fe90b6565…
--- diff --git a/utils/kamcmd/Makefile b/utils/kamcmd/Makefile index 1af68e2..aae4f13 100644 --- a/utils/kamcmd/Makefile +++ b/utils/kamcmd/Makefile @@ -14,8 +14,9 @@ else NAME?=kamcmd endif +readline_localpath=$(LOCALBASE)/include/readline/readline.h readline_locations= /usr/include/readline/readline.h \ - $(LOCALBASE)/include/readline/readline.h + $(readline_localpath) use_readline ?= ifneq (,$(MAKECMDGOALS)) @@ -58,7 +59,7 @@ endif ifeq ($(OS), darwin) readline_locations= /opt/local/include/readline/readline.h \ /usr/include/readline/readline.h \ - $(LOCALBASE)/include/readline/readline.h + $(readline_localpath) LIBS:= -lresolv endif ifneq (,$(findstring cygwin, $(OS))) @@ -77,13 +78,21 @@ endif endif ifeq ($(use_readline),1) + ifneq (,$(findstring opt, $(readline_path))) DEFS+=-DUSE_READLINE -I /opt/local/include - LIBS+=-L /opt/local/lib -lreadline -lncurses + LIBS+=-L/opt/local/lib -lreadline -lncurses else + +ifeq ($(readline_path),$(readline_localpath)) + DEFS+=-I$(LOCALBASE)/include + LIBS+=-L$(LOCALBASE)/lib +endif + DEFS+=-DUSE_READLINE LIBS+=-lreadline -lncurses endif + endif
7 years, 10 months
1
0
0
0
git:master:bbee3295: examples: kemi - update lua script to use KSR.x.exit()
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: bbee329599b1a3a7575723dc08d5bf86e5d4eb0f URL:
https://github.com/kamailio/kamailio/commit/bbee329599b1a3a7575723dc08d5bf8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-01-09T14:39:10+01:00 examples: kemi - update lua script to use KSR.x.exit() --- Modified: misc/examples/kemi/kamailio-basic-kemi-lua.lua --- Diff:
https://github.com/kamailio/kamailio/commit/bbee329599b1a3a7575723dc08d5bf8…
Patch:
https://github.com/kamailio/kamailio/commit/bbee329599b1a3a7575723dc08d5bf8…
7 years, 10 months
1
0
0
0
git:master:b511d907: app_lua: aligned kemi api for KSR.x.drop()
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: b511d90766c3dcf5643c8a29d02eb382b740a413 URL:
https://github.com/kamailio/kamailio/commit/b511d90766c3dcf5643c8a29d02eb38…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-01-09T14:18:23+01:00 app_lua: aligned kemi api for KSR.x.drop() --- Modified: src/modules/app_lua/app_lua_sr.c --- Diff:
https://github.com/kamailio/kamailio/commit/b511d90766c3dcf5643c8a29d02eb38…
Patch:
https://github.com/kamailio/kamailio/commit/b511d90766c3dcf5643c8a29d02eb38…
--- diff --git a/src/modules/app_lua/app_lua_sr.c b/src/modules/app_lua/app_lua_sr.c index b5d8e67..3b18ff5 100644 --- a/src/modules/app_lua/app_lua_sr.c +++ b/src/modules/app_lua/app_lua_sr.c @@ -1745,9 +1745,26 @@ static int sr_kemi_lua_exit (lua_State *L) /** * */ +static int sr_kemi_lua_drop (lua_State *L) +{ + str *s; + + LM_DBG("script drop call\n"); + sr_kemi_core_drop(NULL); + s = sr_kemi_lua_exit_string_get(); + lua_getglobal(L, "error"); + lua_pushstring(L, s->s); + lua_call(L, 1, 0); + return 0; +} + +/** + * + */ static const luaL_Reg _sr_kemi_x_Map [] = { {"modf", lua_sr_modf}, {"exit", sr_kemi_lua_exit}, + {"drop", sr_kemi_lua_drop}, {NULL, NULL} };
7 years, 10 months
1
0
0
0
git:master:6830fbf1: app_lua: enable compat mode for newer lua versions
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 6830fbf17b37a2860827171dd99304bf0975ebf7 URL:
https://github.com/kamailio/kamailio/commit/6830fbf17b37a2860827171dd99304b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-01-09T14:15:27+01:00 app_lua: enable compat mode for newer lua versions --- Modified: src/modules/app_lua/Makefile --- Diff:
https://github.com/kamailio/kamailio/commit/6830fbf17b37a2860827171dd99304b…
Patch:
https://github.com/kamailio/kamailio/commit/6830fbf17b37a2860827171dd99304b…
--- diff --git a/src/modules/app_lua/Makefile b/src/modules/app_lua/Makefile index 0292c32..0b630e6 100644 --- a/src/modules/app_lua/Makefile +++ b/src/modules/app_lua/Makefile @@ -26,7 +26,7 @@ ifeq ($(BUILDER),) DEFS+= -DLUA_COMPAT_MODULE -I$(LOCALBASE)/include/lua5.2 LIBS+= -llua5.2 else - DEFS+= -I$(LOCALBASE)/include/lua + DEFS+= -DLUA_COMPAT_MODULE -I$(LOCALBASE)/include/lua LIBS+= -llua endif endif @@ -62,7 +62,7 @@ ifeq ($(BUILDER),) DEFS+= -DLUA_COMPAT_MODULE -I/usr/include/lua5.2 LIBS = -llua5.2 -lm else - DEFS+= -I/usr/include/lua + DEFS+= -DLUA_COMPAT_MODULE -I/usr/include/lua LIBS = -llua -lm endif endif @@ -76,9 +76,11 @@ ifeq ($(BUILDER),) LIBS = $(shell pkg-config --libs lua-5.1) else ifeq ($(LUAVER),52) - DEFS+= -DLUA_COMPAT_MODULE $(shell pkg-config --cflags lua5.2) + DEFS+= -DLUA_COMPAT_MODULE + DEFS+= $(shell pkg-config --cflags lua5.2) LIBS = $(shell pkg-config --libs lua5.2) else + DEFS+= -DLUA_COMPAT_MODULE DEFS+= $(shell pkg-config --cflags lua) LIBS = $(shell pkg-config --libs lua) endif
7 years, 10 months
1
0
0
0
git:master:2c1a3d12: Merge pull request #917 from kamailio/cchance/presence
by GitHub
Module: kamailio Branch: master Commit: 2c1a3d122a7fc18f1563a3cc4bec27604e0adb5a URL:
https://github.com/kamailio/kamailio/commit/2c1a3d122a7fc18f1563a3cc4bec276…
Author: Charles Chance <charles.chance(a)sipcentric.com> Committer: GitHub <noreply(a)github.com> Date: 2017-01-09T10:41:16Z Merge pull request #917 from kamailio/cchance/presence presence: delay aux_body_processing until after subscription has been updated --- Modified: src/modules/presence/notify.c Modified: src/modules/presence/notify.h Modified: src/modules/presence/presence.c Modified: src/modules/presence/subscribe.c --- Diff:
https://github.com/kamailio/kamailio/commit/2c1a3d122a7fc18f1563a3cc4bec276…
Patch:
https://github.com/kamailio/kamailio/commit/2c1a3d122a7fc18f1563a3cc4bec276…
7 years, 10 months
1
0
0
0
git:master:b429f625: presence: delay aux_body_processing until after subscription has been updated
by Charles Chance
Module: kamailio Branch: master Commit: b429f625ba409cb668b00155996a5f4a4f1733d8 URL:
https://github.com/kamailio/kamailio/commit/b429f625ba409cb668b00155996a5f4…
Author: Charles Chance <charles.chance(a)sipcentric.com> Committer: Charles Chance <charles.chance(a)sipcentric.com> Date: 2017-01-06T23:21:52Z presence: delay aux_body_processing until after subscription has been updated - fixes out-of-sequence version when subs_db_mode <> 3 and fast_notify is enabled --- Modified: src/modules/presence/notify.c Modified: src/modules/presence/notify.h Modified: src/modules/presence/presence.c Modified: src/modules/presence/subscribe.c --- Diff:
https://github.com/kamailio/kamailio/commit/b429f625ba409cb668b00155996a5f4…
Patch:
https://github.com/kamailio/kamailio/commit/b429f625ba409cb668b00155996a5f4…
7 years, 10 months
1
0
0
0
git:master:0b4c0450: modules: readme files regenerated - sqlops ...
by Kamailio Dev
Module: kamailio Branch: master Commit: 0b4c045052943893e22a935f933e4699e4f9d593 URL:
https://github.com/kamailio/kamailio/commit/0b4c045052943893e22a935f933e469…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org> Committer: Kamailio Dev <kamailio.dev(a)kamailio.org> Date: 2017-01-08T22:31:15+01:00 modules: readme files regenerated - sqlops ... --- Modified: src/modules/sqlops/README --- Diff:
https://github.com/kamailio/kamailio/commit/0b4c045052943893e22a935f933e469…
Patch:
https://github.com/kamailio/kamailio/commit/0b4c045052943893e22a935f933e469…
--- diff --git a/src/modules/sqlops/README b/src/modules/sqlops/README index b04f8ea..7e919f1 100644 --- a/src/modules/sqlops/README +++ b/src/modules/sqlops/README @@ -28,6 +28,7 @@ Daniel-Constantin Mierla 3.1. sqlcon (str) 3.2. sqlres (str) + 3.3. tr_buf_size (int) 4. Functions @@ -46,13 +47,14 @@ Daniel-Constantin Mierla 1.1. Set sqlcon parameter 1.2. Set sqlres parameter - 1.3. sql_query() usage - 1.4. sql_xquery() usage - 1.5. sql_pvquery() usage - 1.6. sql_result_free() usage - 1.7. sql_query_async() usage - 1.8. $dbr(result=>key) usage - 1.9. $sqlrows(con) usage + 1.3. Set tr_buf_size parameter + 1.4. sql_query() usage + 1.5. sql_xquery() usage + 1.6. sql_pvquery() usage + 1.7. sql_result_free() usage + 1.8. sql_query_async() usage + 1.9. $dbr(result=>key) usage + 1.10. $sqlrows(con) usage Chapter 1. Admin Guide @@ -68,6 +70,7 @@ Chapter 1. Admin Guide 3.1. sqlcon (str) 3.2. sqlres (str) + 3.3. tr_buf_size (int) 4. Functions @@ -128,6 +131,7 @@ Chapter 1. Admin Guide 3.1. sqlcon (str) 3.2. sqlres (str) + 3.3. tr_buf_size (int) 3.1. sqlcon (str) @@ -166,6 +170,17 @@ modparam("sqlops","sqlcon","ca=>dbdriver://username:password@dbhost/dbname") modparam("sqlops", "sqlres", "ra") ... +3.3. tr_buf_size (int) + + The size of the transformations for SQL operations. + + Default value is 2048. + + Example 1.3. Set tr_buf_size parameter +... +modparam("sqlops", "tr_buf_size", 4096) +... + 4. Functions 4.1. sql_query(connection, query[, result]) @@ -194,7 +209,7 @@ modparam("sqlops", "sqlres", "ra") This function can be used from ANY_ROUTE. - Example 1.3. sql_query() usage + Example 1.4. sql_query() usage ... modparam("sqlops","sqlcon","ca=>dbdriver://username:password@dbhost/dbname") ... @@ -214,7 +229,7 @@ sql_result_free("ra"); This function can be used from ANY_ROUTE. - Example 1.4. sql_xquery() usage + Example 1.5. sql_xquery() usage ... modparam("sqlops","sqlcon","ca=>dbdriver://username:password@dbhost/dbname") ... @@ -252,7 +267,7 @@ if (sql_xquery("ca", "select * from domain", "ra") == 1) { successful query, 2 if query provided no result set, 3 if result is ignored (no result parameter given) - Example 1.5. sql_pvquery() usage + Example 1.6. sql_pvquery() usage ... modparam("sqlops","sqlcon","ca=>dbdriver://username:password@dbhost/dbname") ... @@ -266,7 +281,7 @@ sql_pvquery("ca", "select 'col1', 2, NULL, 'sip:test@example.com'", This function can be used from ANY_ROUTE. - Example 1.6. sql_result_free() usage + Example 1.7. sql_result_free() usage ... modparam("sqlops","sqlcon","ca=>dbdriver://username:password@dbhost/dbname") ... @@ -290,7 +305,7 @@ sql_result_free("ra"); This function can be used from ANY_ROUTE. - Example 1.7. sql_query_async() usage + Example 1.8. sql_query_async() usage ... modparam("sqlops","sqlcon","ca=>dbdriver://username:password@dbhost/dbname") ... @@ -317,7 +332,7 @@ sql_query_async("ca", "delete from domain"); integer. * colname[N] - return the name of the N-th column in the result set. - Example 1.8. $dbr(result=>key) usage + Example 1.9. $dbr(result=>key) usage ... modparam("sqlops","sqlcon","ca=>dbdriver://username:password@dbhost/dbname") ... @@ -376,7 +391,7 @@ if (sql_xquery("ca", "select * from domain", "ra") == 1) “con” must be the name identifying a DB connection. - Example 1.9. $sqlrows(con) usage + Example 1.10. $sqlrows(con) usage ... modparam("sqlops","sqlcon","ca=>dbdriver://username:password@dbhost/dbname") ...
7 years, 10 months
1
0
0
0
git:master:ac566990: sqlops: allow to set the size of sql escape buffer for transformations
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: ac5669901693a67051775673763fde6eb8f37c38 URL:
https://github.com/kamailio/kamailio/commit/ac5669901693a67051775673763fde6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-01-08T22:10:59+01:00 sqlops: allow to set the size of sql escape buffer for transformations - alternative to GH #899 --- Modified: src/modules/sqlops/doc/sqlops_admin.xml Modified: src/modules/sqlops/sql_trans.c Modified: src/modules/sqlops/sql_trans.h Modified: src/modules/sqlops/sqlops.c --- Diff:
https://github.com/kamailio/kamailio/commit/ac5669901693a67051775673763fde6…
Patch:
https://github.com/kamailio/kamailio/commit/ac5669901693a67051775673763fde6…
7 years, 10 months
1
0
0
0
git:master:9077a879: app_jsdt: exposed KSR.x.drop()
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: 9077a87978ff57ff369f8fbc103d8c52b92be622 URL:
https://github.com/kamailio/kamailio/commit/9077a87978ff57ff369f8fbc103d8c5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-01-08T14:01:58+01:00 app_jsdt: exposed KSR.x.drop() --- Modified: src/modules/app_jsdt/app_jsdt_api.c --- Diff:
https://github.com/kamailio/kamailio/commit/9077a87978ff57ff369f8fbc103d8c5…
Patch:
https://github.com/kamailio/kamailio/commit/9077a87978ff57ff369f8fbc103d8c5…
--- diff --git a/src/modules/app_jsdt/app_jsdt_api.c b/src/modules/app_jsdt/app_jsdt_api.c index bf6686a..a903375 100644 --- a/src/modules/app_jsdt/app_jsdt_api.c +++ b/src/modules/app_jsdt/app_jsdt_api.c @@ -411,6 +411,17 @@ static int jsdt_sr_exit (duk_context *J) /** * */ +static int jsdt_sr_drop (duk_context *J) +{ + sr_kemi_core_drop(NULL); + duk_eval_string_noresult(J, JSDT_SR_EXIT_EXEC_STR); + return 0; +} + + +/** + * + */ static int jsdt_sr_modf (duk_context *J) { int ret; @@ -572,6 +583,7 @@ static int jsdt_sr_modf (duk_context *J) const duk_function_list_entry _sr_kemi_x_J_Map[] = { { "exit", jsdt_sr_exit, 0 /* 0 args */ }, + { "drop", jsdt_sr_drop, 0 /* 0 args */ }, { "modf", jsdt_sr_modf, DUK_VARARGS /* var args */ }, { NULL, NULL, 0 } };
7 years, 10 months
1
0
0
0
← Newer
1
...
30
31
32
33
34
35
36
...
54
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Results per page:
10
25
50
100
200