Re: [sr-dev] [kamailio/kamailio] [4.2] Websockets was blocked when multiple WebRTC clients were disconnected from a MCU (#1419)

2018-02-08 Thread BroWater
Hi,

I tested several times with master branch, and it works well , so far so good. 
:)
Thanks.

-- 
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/1419#issuecomment-364347377___
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] schema: allow null value for active_watchers user-agent column (#1431)

2018-02-08 Thread lazedo
@miconda here 
https://github.com/kamailio/kamailio/blob/master/src/modules/presence/subscribe.c#L183
UA is not sending user-agent header in subscribe and its not mandatory in 
[rfc3265 ](https://www.ietf.org/rfc/rfc3265.txt), the schema should follow the 
standard

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


[sr-dev] git:master:92bd7a31: Makefile.groups: pua_json added to json group

2018-02-08 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: 92bd7a3161e3f8d9ae5b3ddd983424f8e6e96618
URL: 
https://github.com/kamailio/kamailio/commit/92bd7a3161e3f8d9ae5b3ddd983424f8e6e96618

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2018-02-08T19:33:46+01:00

Makefile.groups: pua_json added to json group

- depends on libjson-c

---

Modified: src/Makefile.groups

---

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

---

diff --git a/src/Makefile.groups b/src/Makefile.groups
index 52bad0b12f..b3d8045040 100644
--- a/src/Makefile.groups
+++ b/src/Makefile.groups
@@ -141,7 +141,7 @@ mod_list_sqlite=db_sqlite
 mod_list_oracle=db_oracle
 
 # - modules depending on json library
-mod_list_json=json
+mod_list_json=json pua_json
 
 # - modules depending on json (+libevent) library
 mod_list_json_event=jsonrpcc


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


[sr-dev] git:master:f6346e93: pua_json: better detection of paths for json-c library

2018-02-08 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: f6346e93d27ee1eb6f06ec1c9e7247440f433ab9
URL: 
https://github.com/kamailio/kamailio/commit/f6346e93d27ee1eb6f06ec1c9e7247440f433ab9

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2018-02-08T19:19:29+01:00

pua_json: better detection of paths for json-c library

---

Modified: src/modules/pua_json/Makefile

---

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

---

diff --git a/src/modules/pua_json/Makefile b/src/modules/pua_json/Makefile
index cfbd69d6b5..a496b62584 100644
--- a/src/modules/pua_json/Makefile
+++ b/src/modules/pua_json/Makefile
@@ -8,9 +8,28 @@ include ../../Makefile.defs
 
 auto_gen=
 NAME=pua_json.so
+LIBS=
+JLIB=json
 
-LIBS=-ljson-c
-DEFS+=-I$(LOCALBASE)/include -I/usr/local/include $(shell pkg-config --cflags 
json-c)
+BUILDER = $(shell which pkg-config)
+ifeq ($(BUILDER),)
+   JSONC=$(shell ls $(SYSBASE)/include/lib/libjson*.so 
$(LOCALBASE)/lib/libjson*.so 2>/dev/null | grep json-c)
+else
+   JSONC=$(shell pkg-config --libs json-c 2>/dev/null | grep json-c)
+endif
+
+ifneq ($(JSONC),)
+   JLIB=json-c
+endif
+
+ifeq ($(BUILDER),)
+   DEFS+=-I/usr/include/$(JLIB) -I$(LOCALBASE)/include/$(JLIB) \
+   -I$(LOCALBASE)/include
+   LIBS+=-L$(SYSBASE)/include/lib -L$(LOCALBASE)/lib -l$(JLIB)
+else
+   DEFS+= $(shell pkg-config --cflags $(JLIB))
+   LIBS+= $(shell pkg-config --libs $(JLIB))
+endif
 
 DEFS+=-DKAMAILIO_MOD_INTERFACE
 


___
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] rtpengine: rtpengine_offer is stripping all INVITE multipart bodies except application/sdp (#1434)

2018-02-08 Thread Daniel-Constantin Mierla
Thanks for the report and troubleshooting to the source of the issue.

Can you try with the patch I just pushed, referenced above?

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


[sr-dev] git:master:75c4ca0b: rtpengine: get again body pointer only when read_sdp_pv is set

2018-02-08 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: 75c4ca0bb69bd4f1ba42c6d964697737813fa81e
URL: 
https://github.com/kamailio/kamailio/commit/75c4ca0bb69bd4f1ba42c6d964697737813fa81e

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2018-02-08T19:14:02+01:00

rtpengine: get again body pointer only when read_sdp_pv is set

- reported by GH #1434

---

Modified: src/modules/rtpengine/rtpengine.c

---

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

---

diff --git a/src/modules/rtpengine/rtpengine.c 
b/src/modules/rtpengine/rtpengine.c
index f9e630f60e..3b41789bbf 100644
--- a/src/modules/rtpengine/rtpengine.c
+++ b/src/modules/rtpengine/rtpengine.c
@@ -3351,12 +3351,17 @@ rtpengine_offer_answer(struct sip_msg *msg, const char 
*flags, int op, int more)
pkg_free(newbody.s);
 
} else {
-   /* get the body from the message as body ptr may have 
changed */
-   cur_body.len = 0;
-   cur_body.s = get_body(msg);
-   cur_body.len = msg->buf + msg->len - cur_body.s;
-
-   anchor = del_lump(msg, cur_body.s - msg->buf, 
cur_body.len, 0);
+   if (read_sdp_pvar_str.len > 0) {
+   /* get the body from the message as body ptr 
may have changed
+* when using read_sdp_pv */
+   cur_body.len = 0;
+   cur_body.s = get_body(msg);
+   cur_body.len = msg->buf + msg->len - cur_body.s;
+
+   anchor = del_lump(msg, cur_body.s - msg->buf, 
cur_body.len, 0);
+   } else {
+   anchor = del_lump(msg, body.s - msg->buf, 
body.len, 0);
+   }
if (!anchor) {
LM_ERR("del_lump failed\n");
goto error_free;


___
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] rtpengine: rtpengine_offer is stripping all INVITE multipart bodies except application/sdp (#1434)

2018-02-08 Thread Emmanuel BUU
That is an issue as multipart bodies can be used when geolocation is 
transmitted by value. Typically, a geolocalized INVITE packet body would 
contain an SDP part and a second part with an LO-PIDF payload.

https://www.rfc-editor.org/rfc/rfc6442.txt

section 5.1

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


[sr-dev] [kamailio/kamailio] rtpengine: rtpengine_offer is stripping all INVITE multipart bodies except application/sdp (#1434)

2018-02-08 Thread foucse


### Description



When processing a multipart INVITE using the rtpengine module. The 
rtpengine_offer configuration function (called with default arguments) is 
stripping all bodies except the application/sdp MIME type body.

### Troubleshooting

 Reproduction



A client is sending an INVITE through a kamailio proxy paired with a rtpengine.

```
Client   Proxy  
 Server
  xINVITE (SDP) x x 
x
  x qq> x x 
x 
  x 100 Trying  x x 
x 
  x  x 
  x x x 100 
Trying  x 
  x x x 


```
(paste your debugging data here)
```

 Log Messages



```
(paste your log messages here)
```

 SIP Traffic



```
(paste your sip traffic here)
```

### Possible Solutions



This issue has been introduced by the following commit : 
36cb753441a78bd13ded119cd468f32623f09fbf.

rtpengine.c :

``` diff
@@ -3328,6 +3328,7 @@ rtpengine_offer_answer(struct sip_msg *msg, const char 
*flags, int op, int more)
str body, newbody;
struct lump *anchor;
pv_value_t pv_val;
 +  str cur_body = {0, 0};
  
dict = rtpp_function_call_ok(, msg, op, flags, );
if (!dict)
 @@ -3357,7 +3358,12 @@ rtpengine_offer_answer(struct sip_msg *msg, const char 
*flags, int op, int more)
pkg_free(newbody.s);
  
} else {
 -  anchor = del_lump(msg, body.s - msg->buf, body.len, 0);
 +  /* get the body from the message as body ptr may have 
changed */
 +  cur_body.len = 0;
 +  cur_body.s = get_body(msg);
 +  cur_body.len = msg->buf + msg->len - cur_body.s;
 +
 +  anchor = del_lump(msg, cur_body.s - msg->buf, 
cur_body.len, 0);
if (!anchor) {
LM_ERR("del_lump failed\n");
goto error_free;
```
If this commit is removed, the previous behavior is restored.

This commit fixes a segfault: "rtpengine: fixed segfault when using 
read_sdp_pv", so it appears to me that this may be useful.

For, now I am not seeing why this is happening.

### Additional Information

  * **Kamailio Version** - output of `kamailio -v`

seen on: 

```
version: kamailio 5.1.0 (x86_64/linux)
flags: STATS: Off, EXTRA_DEBUG, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, 
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, 
F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, 
USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled on 15:29:43 Feb  8 2018 with gcc 4.8.4
```

but I think that the same behavior will be seen on master.

* **Operating System**:



```
(paste your output here)
```


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


[sr-dev] git:master:4244ccd3: pua_json: remove contributors from source

2018-02-08 Thread Emmanuel Schmidbauer
Module: kamailio
Branch: master
Commit: 4244ccd34f525a2dbabfd7734747aaac2caa9318
URL: 
https://github.com/kamailio/kamailio/commit/4244ccd34f525a2dbabfd7734747aaac2caa9318

Author: Emmanuel Schmidbauer 
Committer: Emmanuel Schmidbauer 
Date: 2018-02-08T09:29:47-05:00

pua_json: remove contributors from source

---

Modified: src/modules/pua_json/defs.h
Modified: src/modules/pua_json/pua_json_publish.c
Modified: src/modules/pua_json/pua_json_publish.h

---

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

---

diff --git a/src/modules/pua_json/defs.h b/src/modules/pua_json/defs.h
index 47db1434b8..f8c3b6a209 100644
--- a/src/modules/pua_json/defs.h
+++ b/src/modules/pua_json/defs.h
@@ -19,9 +19,6 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
- * Contributor(s):
- * 2600Hz Team
- * Emmanuel Schmidbauer 
  *
  */
 
diff --git a/src/modules/pua_json/pua_json_publish.c 
b/src/modules/pua_json/pua_json_publish.c
index e601337476..dd2334bd3d 100644
--- a/src/modules/pua_json/pua_json_publish.c
+++ b/src/modules/pua_json/pua_json_publish.c
@@ -19,9 +19,6 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
- * Contributor(s):
- * 2600Hz Team
- * Emmanuel Schmidbauer 
  *
  */
 
diff --git a/src/modules/pua_json/pua_json_publish.h 
b/src/modules/pua_json/pua_json_publish.h
index 2379247089..749e35ca3a 100644
--- a/src/modules/pua_json/pua_json_publish.h
+++ b/src/modules/pua_json/pua_json_publish.h
@@ -19,9 +19,6 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
- * Contributor(s):
- * 2600Hz Team
- * Emmanuel Schmidbauer 
  *
  */
 


___
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] pua_json: new module to update presence using JSON data objects (#1424)

2018-02-08 Thread Emmanuel Schmidbauer
Merged #1424.

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


[sr-dev] git:master:407d85be: presence: pass `replace` parameter to force hard presentity update

2018-02-08 Thread Emmanuel Schmidbauer
Module: kamailio
Branch: master
Commit: 407d85be91b16035d01fb357d8a26de51c4018d0
URL: 
https://github.com/kamailio/kamailio/commit/407d85be91b16035d01fb357d8a26de51c4018d0

Author: Emmanuel Schmidbauer 
Committer: Emmanuel Schmidbauer 
Date: 2018-02-01T10:13:49-07:00

presence: pass `replace` parameter to force hard presentity update

---

Modified: src/modules/presence/bind_presence.h
Modified: src/modules/presence/presence_dmq.c
Modified: src/modules/presence/presentity.c
Modified: src/modules/presence/presentity.h
Modified: src/modules/presence/publish.c

---

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


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


[sr-dev] git:master:02cb90c9: Merge pull request #1424 from kamailio/eschmidbauer/pua_json

2018-02-08 Thread GitHub
Module: kamailio
Branch: master
Commit: 02cb90c978bde896e541d69ac2c9b64ef49dada7
URL: 
https://github.com/kamailio/kamailio/commit/02cb90c978bde896e541d69ac2c9b64ef49dada7

Author: Emmanuel Schmidbauer 
Committer: GitHub 
Date: 2018-02-08T09:27:42-05:00

Merge pull request #1424 from kamailio/eschmidbauer/pua_json

pua_json: new module to update presence using JSON data objects

---

Added: src/modules/pua_json/Makefile
Added: src/modules/pua_json/README
Added: src/modules/pua_json/defs.h
Added: src/modules/pua_json/doc/Makefile
Added: src/modules/pua_json/doc/pua_json.xml
Added: src/modules/pua_json/doc/pua_json_admin.xml
Added: src/modules/pua_json/pua_json_mod.c
Added: src/modules/pua_json/pua_json_mod.h
Added: src/modules/pua_json/pua_json_publish.c
Added: src/modules/pua_json/pua_json_publish.h
Modified: src/modules/presence/bind_presence.h
Modified: src/modules/presence/presence_dmq.c
Modified: src/modules/presence/presentity.c
Modified: src/modules/presence/presentity.h
Modified: src/modules/presence/publish.c

---

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


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


[sr-dev] git:master:81aa7c1f: pua_json: new module to update presence using JSON data objects

2018-02-08 Thread Emmanuel Schmidbauer
Module: kamailio
Branch: master
Commit: 81aa7c1f56a2d8842001b6a0ddb255bc757e2100
URL: 
https://github.com/kamailio/kamailio/commit/81aa7c1f56a2d8842001b6a0ddb255bc757e2100

Author: Emmanuel Schmidbauer 
Committer: Emmanuel Schmidbauer 
Date: 2018-02-01T10:14:21-07:00

pua_json: new module to update presence using JSON data objects

---

Added: src/modules/pua_json/Makefile
Added: src/modules/pua_json/README
Added: src/modules/pua_json/defs.h
Added: src/modules/pua_json/doc/Makefile
Added: src/modules/pua_json/doc/pua_json.xml
Added: src/modules/pua_json/doc/pua_json_admin.xml
Added: src/modules/pua_json/pua_json_mod.c
Added: src/modules/pua_json/pua_json_mod.h
Added: src/modules/pua_json/pua_json_publish.c
Added: src/modules/pua_json/pua_json_publish.h

---

Diff:  
https://github.com/kamailio/kamailio/commit/81aa7c1f56a2d8842001b6a0ddb255bc757e2100.diff
Patch: 
https://github.com/kamailio/kamailio/commit/81aa7c1f56a2d8842001b6a0ddb255bc757e2100.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_redis: Implement db_redis generic db driver (#1432)

2018-02-08 Thread Andreas Granig
@agranig pushed 1 commit.

2378fb9  db_redis: Fix missed freeing redis reply objects


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/kamailio/kamailio/pull/1432/files/dcb86110b481a32071d1b87a7c6066dbc8ce810c..2378fb9371a5ccd564c0b06d6d80d9fb7dfbb6f5
___
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] Modules: db_redis for usrloc module (#1422)

2018-02-08 Thread Daniel-Constantin Mierla
The module is very tight to usrloc module, embedding even the default column 
names for location table. If this is going to be merge in this state, I would 
suggest to name it like `db_redisuloc` or something else that suggests the 
constraints with its usage. Later can be renamed.

Regarding the issue with snprintf size parameter reported above, I spotted like:

```
return_code = snprintf(table_name,(CON_TABLE(_h)->len+1) * 
sizeof(char),"%s%.*s%s",CON_TQUOTESZ(_h), CON_TABLE(_h)->len, CON_TABLE(_h)->s, 
CON_TQUOTESZ(_h));
```
Another aspect that needs to be take care is to check if pkg_malloc() returns 
NULL or not -- if there is no sufficient memory, it will cause a crash.

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


[sr-dev] [kamailio/kamailio] app_lua // crash // realloc(): invalid next size: (#1433)

2018-02-08 Thread amoizard
### Description

When starting my kamailio with my complete kamailio.cfg, I have crash reporting
*** Error in `/usr/sbin/kamailio': realloc(): invalid next size: 
0x01060980 ***

The issue looks to be related to using "app_lua" module. However, the issue 
don't
always show up. If I remove ONE modules, it won't crash. I've been trying to 
get a
simple config to crash, but I have to keep many modules to reproduce the crash.

The crash is happening line 228 of app_lua_api.c: 

if(luaL_dostring(L, "sr.probe()")!=0)

### Troubleshooting

Can't start kamailio.

 Reproduction

I have attached my minimal kamailio4.cfg file to reproduce the crash. I have 
removed
my DBURL credentials.
[kamailio4.cfg.txt](https://github.com/kamailio/kamailio/files/1707085/kamailio4.cfg.txt)

I'm starting kamailio with:
/usr/sbin/kamailio -D -f kamailio4.cfg -e -E -ddd

 Debugging Data

Core was generated by `/usr/sbin/kamailio -D -f kamailio4.cfg -e -E -ddd'.
Program terminated with signal SIGABRT, Aborted.
#0  0x7f8ecfb62067 in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
56  ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x7f8ecfb62067 in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x7f8ecfb63448 in __GI_abort () at abort.c:89
#2  0x7f8ecfba01b4 in __libc_message (do_abort=do_abort@entry=1, 
fmt=fmt@entry=0x7f8ecfc95210 "*** Error in `%s': %s: 0x%s ***\n") at 
../sysdeps/posix/libc_fatal.c:175
#3  0x7f8ecfba598e in malloc_printerr (action=1, str=0x7f8ecfc9142a 
"realloc(): invalid next size", ptr=) at malloc.c:4996
#4  0x7f8ecfba876b in _int_realloc (av=av@entry=0x7f8ecfed2620 
, oldp=oldp@entry=0x1060970, oldsize=oldsize@entry=736, 
nb=nb@entry=1552) at malloc.c:4234
#5  0x7f8ecfba9769 in __GI___libc_realloc (oldmem=0x1060980, bytes=1536) at 
malloc.c:3029
#6  0x7f8ec324acae in luaM_realloc_ (L=L@entry=0x10605c0, 
block=block@entry=0x1060980, osize=720, nsize=nsize@entry=1536) at lmem.c:79
#7  0x7f8ec32469aa in luaD_reallocstack (L=0x10605c0, newsize=90) at 
ldo.c:145
#8  0x7f8ec324b66d in open_func (ls=ls@entry=0x7ffe459b9720, 
fs=fs@entry=0x7ffe459b9780) at lparser.c:350
#9  0x7f8ec324e0b3 in luaY_parser (L=0x10605c0, z=0x7ffe459b9bf0, 
buff=, name=) at lparser.c:388
#10 0x7f8ec3246cd1 in f_parser (L=L@entry=0x10605c0, 
ud=ud@entry=0x7ffe459b9ba0) at ldo.c:498
#11 0x7f8ec324692e in luaD_rawrunprotected (L=L@entry=0x10605c0, 
f=f@entry=0x7f8ec3246c80 , ud=ud@entry=0x7ffe459b9ba0) at ldo.c:116
#12 0x7f8ec32477bb in luaD_pcall (L=L@entry=0x10605c0, 
func=func@entry=0x7f8ec3246c80 , u=u@entry=0x7ffe459b9ba0, 
old_top=672, ef=) at ldo.c:464
#13 0x7f8ec32478c2 in luaD_protectedparser (L=L@entry=0x10605c0, 
z=z@entry=0x7ffe459b9bf0, name=name@entry=0x7f8ec350547e "sr.probe()") at 
ldo.c:514
#14 0x7f8ec3243528 in lua_load (L=0x10605c0, 
reader=reader@entry=0x7f8ec3252940 , data=data@entry=0x7ffe459b9c40, 
chunkname=0x7f8ec350547e "sr.probe()") at lapi.c:869
#15 0x7f8ec3253d8c in luaL_loadbuffer (L=, buff=, size=, name=) at lauxlib.c:614
#16 0x7f8ec34e87d7 in lua_sr_init_probe () from 
/usr/lib/x86_64-linux-gnu/kamailio/modules/app_lua.so
#17 0x7f8ec347497d in ?? () from 
/usr/lib/x86_64-linux-gnu/kamailio/modules/app_lua.so
#18 0x00549a00 in ?? ()
#19 0x00549d92 in init_child ()
#20 0x004214c8 in main_loop ()
#21 0x0042aae9 in main ()
(gdb) 
(gdb) info locals 
resultvar = 0
pid = 23353
selftid = 23353



 Log Messages

I'm copy/pasting a few logs from the app_lua module. If you wish more, let me 
know.

0(23353) DEBUG: app_lua [app_lua_sr.c:1975]: lua_sr_kemi_register_libs(): 
initializing kemi sub-module: KSR.hdr (hdr)
 0(23353) DEBUG: app_lua [app_lua_sr.c:1975]: lua_sr_kemi_register_libs(): 
initializing kemi sub-module: KSR.jsonrpcs (jsonrpcs)
 0(23353) DEBUG: app_lua [app_lua_sr.c:1975]: lua_sr_kemi_register_libs(): 
initializing kemi sub-module: KSR.kex (kex)
 0(23353) DEBUG: app_lua [app_lua_sr.c:1975]: lua_sr_kemi_register_libs(): 
initializing kemi sub-module: KSR.tm (tm)
 0(23353) DEBUG: app_lua [app_lua_sr.c:1975]: lua_sr_kemi_register_libs(): 
initializing kemi sub-module: KSR.tmx (tmx)
 0(23353) DEBUG: app_lua [app_lua_sr.c:1975]: lua_sr_kemi_register_libs(): 
initializing kemi sub-module: KSR.sl (sl)
 0(23353) DEBUG: app_lua [app_lua_sr.c:1975]: lua_sr_kemi_register_libs(): 
initializing kemi sub-module: KSR.tsilo (tsilo)
 0(23353) DEBUG: app_lua [app_lua_sr.c:1975]: lua_sr_kemi_register_libs(): 
initializing kemi sub-module: KSR.rr (rr)
 0(23353) DEBUG: app_lua [app_lua_sr.c:1975]: lua_sr_kemi_register_libs(): 
initializing kemi sub-module: KSR.pvx (pvx)
 0(23353) DEBUG: app_lua [app_lua_sr.c:1975]: lua_sr_kemi_register_libs(): 
initializing kemi sub-module: KSR.maxfwd (maxfwd)
 0(23353) DEBUG: app_lua [app_lua_sr.c:1975]: lua_sr_kemi_register_libs(): 
initializing kemi sub-module: 

Re: [sr-dev] [kamailio/kamailio] pua_json: new module to update presence using JSON data objects (#1424)

2018-02-08 Thread Daniel-Constantin Mierla
This can be merged, but then remove the Contributors from C code files (can be 
a follow up commit) -- we removed history/contributors in most of the code 
files, with the goal to do it everywhere, so make no sense to add new ones. The 
git commit can be used to see the contributions over the time and explicit 
listing of names/companies can be done in the README file. Having in C code 
file can end up with a large listing over many years.

-- 
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/1424#issuecomment-364102967___
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] schema: allow null value for active_watchers user-agent column (#1431)

2018-02-08 Thread Daniel-Constantin Mierla
Why the default value is no longer left to '' (empty string)? Allowing NULL 
should be ok also with having a default value.

Then, changing the database structure for this situation is not going to be 
backported, all updates of minor 5.0.x and 5.1.x will fail to just restart.

I think a better option is just to allow NULL, let the default to be '' and 
eventually fix in the code if there is a case in 5.0.x or 5.1.x when NULL is 
inserted and insert '' -- can you point in the code where the issue was exposed 
for you? Anyhow, this won't change the structure dramatically to require a 
version number update.

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


[sr-dev] git:master:09291d8b: modules: readme files regenerated - textops ... [skip ci]

2018-02-08 Thread Kamailio Dev
Module: kamailio
Branch: master
Commit: 09291d8b956336db20caa39a1a6fa83cf91cf1fe
URL: 
https://github.com/kamailio/kamailio/commit/09291d8b956336db20caa39a1a6fa83cf91cf1fe

Author: Kamailio Dev 
Committer: Kamailio Dev 
Date: 2018-02-08T13:46:35+01:00

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

---

Modified: src/modules/textops/README

---

Diff:  
https://github.com/kamailio/kamailio/commit/09291d8b956336db20caa39a1a6fa83cf91cf1fe.diff
Patch: 
https://github.com/kamailio/kamailio/commit/09291d8b956336db20caa39a1a6fa83cf91cf1fe.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] Textops in list prefix function (#1423)

2018-02-08 Thread Daniel-Constantin Mierla
Merged #1423.

-- 
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/1423#event-1464475682___
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] Textops in list prefix function (#1423)

2018-02-08 Thread Daniel-Constantin Mierla
Thanks, specially also for exporting to kemi.

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


[sr-dev] git:master:2d7e24b6: Merge pull request #1423 from kamailio/textops_in_list_prefix_function

2018-02-08 Thread GitHub
Module: kamailio
Branch: master
Commit: 2d7e24b60a9c79b97ed106ce46111f6aabf34ad4
URL: 
https://github.com/kamailio/kamailio/commit/2d7e24b60a9c79b97ed106ce46111f6aabf34ad4

Author: Daniel-Constantin Mierla 
Committer: GitHub 
Date: 2018-02-08T13:41:31+01:00

Merge pull request #1423 from kamailio/textops_in_list_prefix_function

Textops in list prefix function

---

Modified: src/modules/textops/doc/textops_admin.xml
Modified: src/modules/textops/textops.c

---

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


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


[sr-dev] git:master:751c6765: textops: function in_list_prefix

2018-02-08 Thread Vicente Hernando
Module: kamailio
Branch: master
Commit: 751c67652cb09614f2f2d430885b7b6c7422b1cd
URL: 
https://github.com/kamailio/kamailio/commit/751c67652cb09614f2f2d430885b7b6c7422b1cd

Author: Vicente Hernando 
Committer: Vicente Hernando 
Date: 2018-02-01T11:26:30+01:00

textops: function in_list_prefix

---

Modified: src/modules/textops/doc/textops_admin.xml
Modified: src/modules/textops/textops.c

---

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


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


[sr-dev] git:master:508befcb: textops: mismatch parenthesis in doc

2018-02-08 Thread Vicente Hernando
Module: kamailio
Branch: master
Commit: 508befcbddc7b88b6a68b188d881b52943682cc8
URL: 
https://github.com/kamailio/kamailio/commit/508befcbddc7b88b6a68b188d881b52943682cc8

Author: Vicente Hernando 
Committer: Vicente Hernando 
Date: 2018-02-01T11:23:42+01:00

textops: mismatch parenthesis in doc

---

Modified: src/modules/textops/doc/textops_admin.xml

---

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

---

diff --git a/src/modules/textops/doc/textops_admin.xml 
b/src/modules/textops/doc/textops_admin.xml
index f94183dabf..44b72a0265 100644
--- a/src/modules/textops/doc/textops_admin.xml
+++ b/src/modules/textops/doc/textops_admin.xml
@@ -1323,7 +1323,7 @@ if(is_privacy("id"))
 ...
 $var(subject) = "fi";
 $var(list) = "dk,fi,no,se";
-if (in_list("$var(subject)", "$var(list)", ",") {
+if (in_list("$var(subject)", "$var(list)", ",")) {
 xlog("L_INFO", "subject is found in list\n");
 }
 ...


___
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] Transactions kept in memory, shared memory runs out and Kamailio gives up hope of life. (#1220)

2018-02-08 Thread Daniel-Constantin Mierla
OK, good it was sorted out, tm is quite important and used pretty much 
everywhere.

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1220#issuecomment-364099842___
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_redis: Implement db_redis generic db driver (#1432)

2018-02-08 Thread Andreas Granig
@agranig pushed 1 commit.

dcb8611  db_redis: Cleanups and fixes


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/kamailio/kamailio/pull/1432/files/aab86a5595b4b6294d9a1073321d623520f3fc0c..dcb86110b481a32071d1b87a7c6066dbc8ce810c
___
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] Transactions kept in memory, shared memory runs out and Kamailio gives up hope of life. (#1220)

2018-02-08 Thread Olle E. Johansson
Must have been a third-party library or something that messed up Kamailio. We 
reinstalled the server, built a new Kamailio and the problem is totally gone. 
Will continue testing a few days more, but will likely just close this issue 
and go hide somewhere.

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1220#issuecomment-364094767___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:1dfab04c: modules: readme files regenerated - uac ... [skip ci]

2018-02-08 Thread Kamailio Dev
Module: kamailio
Branch: master
Commit: 1dfab04c128f26cfd82b5db85666e805e794610f
URL: 
https://github.com/kamailio/kamailio/commit/1dfab04c128f26cfd82b5db85666e805e794610f

Author: Kamailio Dev 
Committer: Kamailio Dev 
Date: 2018-02-08T10:01:49+01:00

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

---

Modified: src/modules/uac/README

---

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

---

diff --git a/src/modules/uac/README b/src/modules/uac/README
index 848279a2c2..5ac08ebbb3 100644
--- a/src/modules/uac/README
+++ b/src/modules/uac/README
@@ -811,7 +811,7 @@ event_route[uac:reply] {
 
  * regtotal: Total number of registrations
  * regactive: Total number of active registrations (successfully
-   registred with service)
+   registered with service)
  * regdisabled: Total number of disabled registrations (no longer
active)
 


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


[sr-dev] git:master:f68eb2b6: core: fix typos

2018-02-08 Thread Victor Seva
Module: kamailio
Branch: master
Commit: f68eb2b6074336804bce04427bb6abf0cba4771a
URL: 
https://github.com/kamailio/kamailio/commit/f68eb2b6074336804bce04427bb6abf0cba4771a

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-08T09:53:43+01:00

core: fix typos

Thanks, lintian
> I: kamailio: spelling-error-in-binary usr/sbin/kamailio lenght length
> I: kamailio: spelling-error-in-binary usr/sbin/kamailio orderd ordered
> I: kamailio: spelling-error-in-binary usr/sbin/kamailio uknown unknown

---

Modified: src/core/basex.c
Modified: src/core/basex.h
Modified: src/core/dns_cache.c
Modified: src/core/dns_cache.h
Modified: src/core/parser/sdp/sdp.c
Modified: src/core/parser/sdp/sdp_helpr_funcs.c
Modified: src/core/tcp_read.c

---

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


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


[sr-dev] git:master:70b153df: uid_gflags: fix typo

2018-02-08 Thread Victor Seva
Module: kamailio
Branch: master
Commit: 70b153df3a78cb83fea2a295d7043f20f30d54ae
URL: 
https://github.com/kamailio/kamailio/commit/70b153df3a78cb83fea2a295d7043f20f30d54ae

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-08T09:47:35+01:00

uid_gflags: fix typo

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/uid_gflags.so successfuly 
> successfully

---

Modified: src/modules/uid_gflags/uid_gflags.c

---

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

---

diff --git a/src/modules/uid_gflags/uid_gflags.c 
b/src/modules/uid_gflags/uid_gflags.c
index af02697c57..4e35a939f4 100644
--- a/src/modules/uid_gflags/uid_gflags.c
+++ b/src/modules/uid_gflags/uid_gflags.c
@@ -361,7 +361,7 @@ int save_gflags(unsigned int flags)
return -1;
}
 
-   LM_DBG("successfuly stored in database\n");
+   LM_DBG("successfully stored in database\n");
return 0;
 }
 


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


[sr-dev] git:master:00789c60: uac: fix typo

2018-02-08 Thread Victor Seva
Module: kamailio
Branch: master
Commit: 00789c6067e17fbed185e5e1e6043247d26d9af4
URL: 
https://github.com/kamailio/kamailio/commit/00789c6067e17fbed185e5e1e6043247d26d9af4

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-08T09:46:42+01:00

uac: fix typo

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/uac.so registred registered

---

Modified: src/modules/uac/doc/uac_admin.xml
Modified: src/modules/uac/uac_reg.c

---

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

---

diff --git a/src/modules/uac/doc/uac_admin.xml 
b/src/modules/uac/doc/uac_admin.xml
index 052bc2dc7a..7b7fbf95d8 100644
--- a/src/modules/uac/doc/uac_admin.xml
+++ b/src/modules/uac/doc/uac_admin.xml
@@ -953,7 +953,7 @@ event_route[uac:reply] {
regtotal: Total number of 
registrations


-   regactive: Total number of 
active registrations (successfully registred with service)
+   regactive: Total number of 
active registrations (successfully registered with service)


regdisabled: Total number 
of disabled registrations (no longer active)
diff --git a/src/modules/uac/uac_reg.c b/src/modules/uac/uac_reg.c
index 4b636a5891..f9ecef7eae 100644
--- a/src/modules/uac/uac_reg.c
+++ b/src/modules/uac/uac_reg.c
@@ -172,7 +172,7 @@ static void uac_reg_counter_init()
 {
LM_DBG("*** Initializing UAC reg counters\n");
counter_register(, "uac", "regtotal", 0, 0, 0, "Total number 
of registration accounts in memory", 0);
-   counter_register(, "uac", "regactive", 0, 0, 0, "Number of 
successfully registred accounts (200 OK)", 0);
+   counter_register(, "uac", "regactive", 0, 0, 0, "Number of 
successfully registered accounts (200 OK)", 0);
counter_register(, "uac", "regdisabled", 0, 0, 0, "Counter 
of failed registrations (not 200 OK)", 0);
 }
 


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


[sr-dev] git:master:bd680f78: sipcapture: fix typo

2018-02-08 Thread Victor Seva
Module: kamailio
Branch: master
Commit: bd680f78958e038de950931c82079d4d85a328bd
URL: 
https://github.com/kamailio/kamailio/commit/bd680f78958e038de950931c82079d4d85a328bd

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-08T09:44:08+01:00

sipcapture: fix typo

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/sipcapture.so skiping skipping

---

Modified: src/modules/sipcapture/sipcapture.c

---

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

---

diff --git a/src/modules/sipcapture/sipcapture.c 
b/src/modules/sipcapture/sipcapture.c
index 6e6faa1ad4..53735000f1 100644
--- a/src/modules/sipcapture/sipcapture.c
+++ b/src/modules/sipcapture/sipcapture.c
@@ -2351,7 +2351,7 @@ int raw_capture_rcv_loop(int rsock, int port1, int port2, 
int ipip)
 
/* if the message has not alpha */
if(!isalnum((buf + offset)[0])) {
-   DBG("not alpha and not digit... skiping...\n");
+   DBG("not alpha and not digit... skipping...\n");
continue;
}
 


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


[sr-dev] git:master:5ef5ddda: tsilo: fix typo

2018-02-08 Thread Victor Seva
Module: kamailio
Branch: master
Commit: 5ef5ddda58bbb6376c11ac75bba6793ce6b73378
URL: 
https://github.com/kamailio/kamailio/commit/5ef5ddda58bbb6376c11ac75bba6793ce6b73378

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-08T09:44:56+01:00

tsilo: fix typo

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/tsilo.so uknown unknown

---

Modified: src/modules/tsilo/ts_handlers.c

---

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

---

diff --git a/src/modules/tsilo/ts_handlers.c b/src/modules/tsilo/ts_handlers.c
index 9015fcaa36..d50c3d1586 100644
--- a/src/modules/tsilo/ts_handlers.c
+++ b/src/modules/tsilo/ts_handlers.c
@@ -95,7 +95,7 @@ void ts_onreply(struct cell* t, int type, struct tmcb_params 
*param)
LM_DBG("transaction %u:%u not found\n",cb_ptr->tindex, 
cb_ptr->tlabel);
unlock_entry(_e);
} else {
-   LM_DBG("called with uknown type %d\n", type);
+   LM_DBG("called with unknown type %d\n", type);
}
 
return;


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


[sr-dev] git:master:3d68ecbb: seas: fix typos

2018-02-08 Thread Victor Seva
Module: kamailio
Branch: master
Commit: 3d68ecbb73886cfe31066f37386ea3ec31824b61
URL: 
https://github.com/kamailio/kamailio/commit/3d68ecbb73886cfe31066f37386ea3ec31824b61

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-08T09:42:57+01:00

seas: fix typos

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/seas.so didnt didn't
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/seas.so Uncomplete Incomplete

---

Modified: src/modules/seas/encode_content_type.c
Modified: src/modules/seas/event_dispatcher.c

---

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

---

diff --git a/src/modules/seas/encode_content_type.c 
b/src/modules/seas/encode_content_type.c
index 4a2bb5db5a..33d415b33c 100644
--- a/src/modules/seas/encode_content_type.c
+++ b/src/modules/seas/encode_content_type.c
@@ -165,7 +165,7 @@ int print_encoded_mime_type(FILE *fd,char *hdr,int 
hdrlen,unsigned int* payload,
 chsubtype="SUBTYPE_UNKNOWN";
 break;
   default:
-chsubtype="(didnt know this subtype existed)";
+chsubtype="(didn't know this subtype existed)";
}
 
fprintf(fd,"%sTYPE:[%s]\n",prefix,chtype);
diff --git a/src/modules/seas/event_dispatcher.c 
b/src/modules/seas/event_dispatcher.c
index b9c720f7c4..e371601a19 100644
--- a/src/modules/seas/event_dispatcher.c
+++ b/src/modules/seas/event_dispatcher.c
@@ -183,7 +183,7 @@ int dispatcher_main_loop(void)
   sig_flag=0;
   clean_index=0;
   LM_INFO("polling [2 ServSock] [1 pipe] [%d App Servers]"
- " [%d Uncomplete AS]\n",as_nr,unc_as_nr);
+ " [%d Incomplete AS]\n",as_nr,unc_as_nr);
   poll_events = poll(poll_fds,3+unc_as_nr+as_nr,-1);
   if (poll_events == -1) {
 if(errno==EINTR){


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


[sr-dev] git:master:a2c77805: rtjson: fix typo

2018-02-08 Thread Victor Seva
Module: kamailio
Branch: master
Commit: a2c77805f1ef5e2b264da69ecb9f591c4cff203c
URL: 
https://github.com/kamailio/kamailio/commit/a2c77805f1ef5e2b264da69ecb9f591c4cff203c

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-08T09:41:37+01:00

rtjson: fix typo

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/rtjson.so diabled disabled

---

Modified: src/modules/rtjson/rtjson_routing.c

---

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

---

diff --git a/src/modules/rtjson/rtjson_routing.c 
b/src/modules/rtjson/rtjson_routing.c
index 6a44b822f2..99e80b 100644
--- a/src/modules/rtjson/rtjson_routing.c
+++ b/src/modules/rtjson/rtjson_routing.c
@@ -54,11 +54,11 @@ static uac_api_t uacb;
 int rtjson_init(void)
 {
if (load_tm_api(  ) == -1) {
-   LM_NOTICE("cannot load the TM API - some features are 
diabled\n");
+   LM_NOTICE("cannot load the TM API - some features are 
disabled\n");
memset(, 0, sizeof(struct tm_binds));
}
if (load_uac_api() < 0) {
-   LM_NOTICE("cannot bind to UAC API - some features are 
diabled\n");
+   LM_NOTICE("cannot bind to UAC API - some features are 
disabled\n");
memset(, 0, sizeof(uac_api_t));
}
return 0;


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


[sr-dev] git:master:cdc96895: pipelimit: fix typo

2018-02-08 Thread Victor Seva
Module: kamailio
Branch: master
Commit: cdc96895b2998d329f725a9445068b4fc1ad9ca0
URL: 
https://github.com/kamailio/kamailio/commit/cdc96895b2998d329f725a9445068b4fc1ad9ca0

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-08T09:40:50+01:00

pipelimit: fix typo

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/pipelimit.so algoritm algorithm

---

Modified: src/modules/pipelimit/pipelimit.c

---

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

---

diff --git a/src/modules/pipelimit/pipelimit.c 
b/src/modules/pipelimit/pipelimit.c
index a15e2ca696..da30bcbd31 100644
--- a/src/modules/pipelimit/pipelimit.c
+++ b/src/modules/pipelimit/pipelimit.c
@@ -700,7 +700,7 @@ static int w_pl_check3(struct sip_msg* msg, char *p1pipe, 
char *p2alg,
if(fixup_get_svalue(msg, (gparam_t*)p2alg, )!=0
|| alg.s == 0)
{
-   LM_ERR("invalid algoritm parameter");
+   LM_ERR("invalid algorithm parameter");
return -1;
}
 


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


[sr-dev] git:master:f3948157: permissions: fix typo

2018-02-08 Thread Victor Seva
Module: kamailio
Branch: master
Commit: f394815724590f3e5f78583aa71329601b66c78e
URL: 
https://github.com/kamailio/kamailio/commit/f394815724590f3e5f78583aa71329601b66c78e

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-08T09:39:56+01:00

permissions: fix typo

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/permissions.so Colums Columns

---

Modified: src/modules/permissions/address.c

---

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

---

diff --git a/src/modules/permissions/address.c 
b/src/modules/permissions/address.c
index 46d135bf6d..42418b96f8 100644
--- a/src/modules/permissions/address.c
+++ b/src/modules/permissions/address.c
@@ -146,7 +146,7 @@ int reload_address_table(void)
/* basic checks to db values */
if (ROW_N(row + i) != 5)
{
-   LM_DBG("failure during checks of db address table: 
Colums %d - expected 5\n", ROW_N(row + i));
+   LM_DBG("failure during checks of db address table: 
Columns %d - expected 5\n", ROW_N(row + i));
goto dberror;
}
if ((VAL_TYPE(val) != DB1_INT) || VAL_NULL(val) || 
(VAL_INT(val) <= 0))


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


[sr-dev] git:master:dac801f5: drouting: fix typo

2018-02-08 Thread Victor Seva
Module: kamailio
Branch: master
Commit: dac801f5b1b4903eb4dd4668fb449bf9e4c1171d
URL: 
https://github.com/kamailio/kamailio/commit/dac801f5b1b4903eb4dd4668fb449bf9e4c1171d

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-08T09:30:17+01:00

drouting: fix typo

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/drouting.so colum column

---

Modified: src/modules/drouting/dr_load.c

---

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

---

diff --git a/src/modules/drouting/dr_load.c b/src/modules/drouting/dr_load.c
index e849944940..768392f957 100644
--- a/src/modules/drouting/dr_load.c
+++ b/src/modules/drouting/dr_load.c
@@ -87,7 +87,7 @@ static struct dr_gwl_tmp *dr_gw_lists = NULL;
 #define check_val(_val, _type, _not_null, _is_empty_str) \
do { \
if((_val)->type != _type) {  \
-   LM_ERR("bad colum type\n");  \
+   LM_ERR("bad column type\n");  \
goto error;  \
}\
if(_not_null && (_val)->nul) {   \


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


[sr-dev] git:master:74157701: jsonrpcs: fix typos

2018-02-08 Thread Victor Seva
Module: kamailio
Branch: master
Commit: 741577013fba2689de93cb587c4b750c15f9c29e
URL: 
https://github.com/kamailio/kamailio/commit/741577013fba2689de93cb587c4b750c15f9c29e

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-08T09:32:30+01:00

jsonrpcs: fix typos

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/jsonrpcs.so existance existence
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/jsonrpcs.so lenght length

---

Modified: src/modules/jsonrpcs/jsonrpcs_sock.c

---

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

---

diff --git a/src/modules/jsonrpcs/jsonrpcs_sock.c 
b/src/modules/jsonrpcs/jsonrpcs_sock.c
index 3529941f1d..dd20902879 100644
--- a/src/modules/jsonrpcs/jsonrpcs_sock.c
+++ b/src/modules/jsonrpcs/jsonrpcs_sock.c
@@ -106,7 +106,7 @@ int jsonrpc_dgram_mod_init(void)
int sep;
 
/* checking the mi_socket module param */
-   LM_DBG("testing socket existance...\n");
+   LM_DBG("testing socket existence...\n");
 
if( jsonrpc_dgram_socket==NULL || *jsonrpc_dgram_socket == 0) {
LM_ERR("no DATAGRAM_ socket configured\n");
@@ -118,7 +118,7 @@ int jsonrpc_dgram_mod_init(void)
memset( _dgram_addr, 0, sizeof(jsonrpc_dgram_sockaddr_t) );
 
if(strlen(jsonrpc_dgram_socket)<6) {
-   LM_ERR("lenght of socket address is too short: %s\n",
+   LM_ERR("length of socket address is too short: %s\n",
jsonrpc_dgram_socket);
return -1;
}


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


[sr-dev] git:master:db18d4a3: msrp: fix typo

2018-02-08 Thread Victor Seva
Module: kamailio
Branch: master
Commit: db18d4a31df29561dfa1563886e891450d0dde0f
URL: 
https://github.com/kamailio/kamailio/commit/db18d4a31df29561dfa1563886e891450d0dde0f

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-08T09:33:42+01:00

msrp: fix typo

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/msrp.so lenght length

---

Modified: src/modules/msrp/msrp_cmap.c

---

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

---

diff --git a/src/modules/msrp/msrp_cmap.c b/src/modules/msrp/msrp_cmap.c
index bdcccbd6fe..73ce96c35a 100644
--- a/src/modules/msrp/msrp_cmap.c
+++ b/src/modules/msrp/msrp_cmap.c
@@ -215,7 +215,7 @@ int msrp_cmap_save(msrp_frame_t *mf)

ip_addr2a(>tcpinfo->rcv->src_ip),

(int)mf->tcpinfo->rcv->src_port);
if(srcaddr.len<0 || srcaddr.len>=MSRP_SBUF_SIZE) {
-   LM_ERR("failure or address lenght too big (%d)\n", srcaddr.len);
+   LM_ERR("failure or address length too big (%d)\n", srcaddr.len);
return -1;
}
srcaddr.s = sbuf;


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