[sr-dev] git:master:bbb9c335: modules: readme files regenerated - db_postgres ... [skip ci]

2017-10-11 Thread Kamailio Dev
Module: kamailio
Branch: master
Commit: bbb9c3353324f41e94e5b5fd9dc8020c0edfcf3d
URL: 
https://github.com/kamailio/kamailio/commit/bbb9c3353324f41e94e5b5fd9dc8020c0edfcf3d

Author: Kamailio Dev 
Committer: Kamailio Dev 
Date: 2017-10-11T18:31:26+02:00

modules: readme files regenerated - db_postgres ... [skip ci]

---

Modified: src/modules/db_postgres/README

---

Diff:  
https://github.com/kamailio/kamailio/commit/bbb9c3353324f41e94e5b5fd9dc8020c0edfcf3d.diff
Patch: 
https://github.com/kamailio/kamailio/commit/bbb9c3353324f41e94e5b5fd9dc8020c0edfcf3d.patch

---

diff --git a/src/modules/db_postgres/README b/src/modules/db_postgres/README
index 7bfd597402..7640f36c18 100644
--- a/src/modules/db_postgres/README
+++ b/src/modules/db_postgres/README
@@ -26,6 +26,7 @@ Greg Fausak
   3.1. retries (integer)
   3.2. timeout (integer)
   3.3. tcp_keepalive (integer)
+  3.4. lockset (integer)
 
 4. Functions
 
@@ -34,6 +35,7 @@ Greg Fausak
1.1. Set retries parameter
1.2. Set timeout parameter
1.3. Set tcp_keepalive parameter
+   1.4. Set lockset parameter
 
 Chapter 1. Admin Guide
 
@@ -50,6 +52,7 @@ Chapter 1. Admin Guide
 3.1. retries (integer)
 3.2. timeout (integer)
 3.3. tcp_keepalive (integer)
+3.4. lockset (integer)
 
4. Functions
 
@@ -81,6 +84,7 @@ Chapter 1. Admin Guide
3.1. retries (integer)
3.2. timeout (integer)
3.3. tcp_keepalive (integer)
+   3.4. lockset (integer)
 
 3.1. retries (integer)
 
@@ -127,6 +131,18 @@ modparam("db_postgres", "timeout", 10)
 modparam("db_postgres", "tcp_keepalive", 600)
 ...
 
+3.4. lockset (integer)
+
+   The value is used as power of two to compute the size of the lock set
+   needed to implement the equivalent of REPLACE SQL statement.
+
+   Default value is 4 (lock set size is 16).
+
+   Example 1.4. Set lockset parameter
+...
+modparam("db_postgres", "lockset", 6)
+...
+
 4. Functions
 
NONE


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:5.0:9e3096e1: core: add safety check to rval_get_tmp_str()

2017-10-11 Thread Victor Seva
Module: kamailio
Branch: 5.0
Commit: 9e3096e16ac233e1667110904e1d944753d53c7a
URL: 
https://github.com/kamailio/kamailio/commit/9e3096e16ac233e1667110904e1d944753d53c7a

Author: Victor Seva 
Committer: Victor Seva 
Date: 2017-10-11T18:31:37+02:00

core: add safety check to rval_get_tmp_str()

See #1263

(cherry picked from commit c6e921e45f1257913848110189eab82a34aa2f8b)

---

Modified: src/core/rvalue.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/9e3096e16ac233e1667110904e1d944753d53c7a.diff
Patch: 
https://github.com/kamailio/kamailio/commit/9e3096e16ac233e1667110904e1d944753d53c7a.patch

---

diff --git a/src/core/rvalue.c b/src/core/rvalue.c
index 540f26620a..fcb238d111 100644
--- a/src/core/rvalue.c
+++ b/src/core/rvalue.c
@@ -1099,6 +1099,10 @@ int rval_get_tmp_str(struct run_act_ctx* h, struct 
sip_msg* msg,
avp_t* r_avp;
int i;
 
+   if(rv==NULL) {
+   return -1;
+   }
+
switch(rv->type){
case RV_INT:
tmpv->s=sint2strbuf(rv->v.l, tmp_cache->i2s,


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] crash on infinite loop processing a call (#1263)

2017-10-11 Thread Daniel-Constantin Mierla
Should it be backported?

-- 
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/issues/1263#issuecomment-335868178___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:7d27b682: db_postgres: documentation for lockset parameter

2017-10-11 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: 7d27b682cc6259b1f6bcd21584b9f1d5bbfc9a36
URL: 
https://github.com/kamailio/kamailio/commit/7d27b682cc6259b1f6bcd21584b9f1d5bbfc9a36

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2017-10-11T18:27:50+02:00

db_postgres: documentation for lockset parameter

---

Modified: src/modules/db_postgres/doc/db_postgres_admin.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/7d27b682cc6259b1f6bcd21584b9f1d5bbfc9a36.diff
Patch: 
https://github.com/kamailio/kamailio/commit/7d27b682cc6259b1f6bcd21584b9f1d5bbfc9a36.patch

---

diff --git a/src/modules/db_postgres/doc/db_postgres_admin.xml 
b/src/modules/db_postgres/doc/db_postgres_admin.xml
index 49bd88286f..e218294736 100644
--- a/src/modules/db_postgres/doc/db_postgres_admin.xml
+++ b/src/modules/db_postgres/doc/db_postgres_admin.xml
@@ -11,9 +11,9 @@
 
 
 
-   
+

-   
+

Overview
The module is an implementation of the internal DB API v1 and v2
@@ -130,6 +130,27 @@ modparam("db_postgres", "tcp_keepalive", 600)
 


+
+   
+   lockset (integer)
+   
+   The value is used as power of two to compute the size 
of the
+   lock set needed to implement the equivalent of REPLACE 
SQL
+   statement.
+   
+   
+   Default value is 4 (lock set size is 16).
+   
+   
+   Set lockset parameter
+   
+...
+modparam("db_postgres", "lockset", 6)
+...
+
+   
+   
+

 



___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:60f177bf: db_postgres: clang format of the code

2017-10-11 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: 60f177bf04cd116b1e34f5563f594da327af8c09
URL: 
https://github.com/kamailio/kamailio/commit/60f177bf04cd116b1e34f5563f594da327af8c09

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2017-10-11T18:23:19+02:00

db_postgres: clang format of the code

---

Modified: src/modules/db_postgres/db_postgres.c
Modified: src/modules/db_postgres/km_dbase.c
Modified: src/modules/db_postgres/km_dbase.h
Modified: src/modules/db_postgres/km_pg_con.c
Modified: src/modules/db_postgres/km_pg_con.h
Modified: src/modules/db_postgres/km_pg_type.h
Modified: src/modules/db_postgres/km_res.c
Modified: src/modules/db_postgres/km_res.h
Modified: src/modules/db_postgres/km_val.c
Modified: src/modules/db_postgres/km_val.h
Modified: src/modules/db_postgres/pg_cmd.c
Modified: src/modules/db_postgres/pg_cmd.h
Modified: src/modules/db_postgres/pg_con.c
Modified: src/modules/db_postgres/pg_con.h
Modified: src/modules/db_postgres/pg_fld.c
Modified: src/modules/db_postgres/pg_fld.h
Modified: src/modules/db_postgres/pg_mod.c
Modified: src/modules/db_postgres/pg_oid.c
Modified: src/modules/db_postgres/pg_oid.h
Modified: src/modules/db_postgres/pg_res.c
Modified: src/modules/db_postgres/pg_res.h
Modified: src/modules/db_postgres/pg_sql.c
Modified: src/modules/db_postgres/pg_sql.h
Modified: src/modules/db_postgres/pg_uri.c
Modified: src/modules/db_postgres/pg_uri.h

---

Diff:  
https://github.com/kamailio/kamailio/commit/60f177bf04cd116b1e34f5563f594da327af8c09.diff
Patch: 
https://github.com/kamailio/kamailio/commit/60f177bf04cd116b1e34f5563f594da327af8c09.patch


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] DB Postgres BLOB conversion for presence (#1255)

2017-10-11 Thread Daniel-Constantin Mierla
Have you found a solution for this one? I know people were using postgres with 
presence quite a lot in the past and they didn't have any such issue.

-- 
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/issues/1255#issuecomment-335863767___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] crash on infinite loop processing a call (#1263)

2017-10-11 Thread Victor Seva
Closed #1263.

-- 
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/issues/1263#event-1288547909___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] registrar: function "registered(...)" different workers integrity (#1267)

2017-10-11 Thread Daniel-Constantin Mierla
Does this happen only during the start up interval (and shortly after)? If yes, 
this could be because the location records are loaded by the first worker 
process in order to have a fast (re)start, at the expense that the saved 
records are not available immediately. 

-- 
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/issues/1267#issuecomment-335863106___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] tmx: t_reuse_branch() doesn't copy $du into new branch (#1264)

2017-10-11 Thread Daniel-Constantin Mierla
This is how the function was developed and it is documented in the readme:

  * 
https://www.kamailio.org/docs/modules/stable/modules/tmx.html#tmx.f.t_reuse_branch

I looked a bit and dst uri is not saved directly in the transaction branch 
structure, so there needs to be a larger patch involved to add this enhancement.

-- 
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/issues/1264#issuecomment-335862378___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev