Re: [sr-dev] [kamailio/kamailio] Feature Request: possibility to reload dialogs from db without restarting kamailio (#1274)

2018-02-07 Thread paolovisintin
Sorry , re-reading this issue I saw I made a mistake, the correct usage shoud 
be : 
```
if(!is_known_dlg()) {
load_dialog_vars_from_db($ci);
}
```
as `$dlg(callid)` at that point is not set

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


[sr-dev] git:master:23ae1997: domain: fix typo

2018-02-07 Thread Victor Seva
Module: kamailio
Branch: master
Commit: 23ae1997201a6207b7cc2746ee3a132cc6f06670
URL: 
https://github.com/kamailio/kamailio/commit/23ae1997201a6207b7cc2746ee3a132cc6f06670

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-07T17:53:08+01:00

domain: fix typo

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/domain.so paramter parameter

---

Modified: src/modules/domain/domain.c

---

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

---

diff --git a/src/modules/domain/domain.c b/src/modules/domain/domain.c
index 1dbdd2f5d5..a986bba332 100644
--- a/src/modules/domain/domain.c
+++ b/src/modules/domain/domain.c
@@ -188,7 +188,7 @@ int w_is_domain_local(struct sip_msg *_msg, char *_sp, char 
*_s2)
str sdomain;
 
if(fixup_get_svalue(_msg, (gparam_t *)_sp, &sdomain) < 0) {
-   LM_ERR("cannot get domain paramter\n");
+   LM_ERR("cannot get domain parameter\n");
return -1;
}
 
@@ -206,7 +206,7 @@ int ki_lookup_domain_prefix(struct sip_msg *_msg, str 
*_sdomain, str *_sprefix)
unsigned short flags;
 
if(_sdomain==NULL || _sdomain->s==NULL) {
-   LM_ERR("invalid domain paramter\n");
+   LM_ERR("invalid domain parameter\n");
return -1;  }
 
if(hash_table_lookup(_sdomain, &did, &attrs) != 1) {
@@ -286,12 +286,12 @@ int w_lookup_domain(struct sip_msg *_msg, char *_sp, char 
*_prefix)
str sprefix;
 
if(fixup_get_svalue(_msg, (gparam_t *)_sp, &sdomain) < 0) {
-   LM_ERR("cannot get domain paramter\n");
+   LM_ERR("cannot get domain parameter\n");
return -1;
}
if(_prefix) {
if(fixup_get_svalue(_msg, (gparam_t *)_prefix, &sprefix) < 0) {
-   LM_ERR("cannot get prefix paramter\n");
+   LM_ERR("cannot get prefix parameter\n");
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:2b9ad2a6: db2_ops: fix typo

2018-02-07 Thread Victor Seva
Module: kamailio
Branch: master
Commit: 2b9ad2a628c17d73412e09aad7723b1e01eab871
URL: 
https://github.com/kamailio/kamailio/commit/2b9ad2a628c17d73412e09aad7723b1e01eab871

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-07T17:51:36+01:00

db2_ops: fix typo

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/db2_ops.so formating formatting

---

Modified: src/modules/db2_ops/db2_ops.c

---

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

---

diff --git a/src/modules/db2_ops/db2_ops.c b/src/modules/db2_ops/db2_ops.c
index 433d5293fc..61c152c7cf 100644
--- a/src/modules/db2_ops/db2_ops.c
+++ b/src/modules/db2_ops/db2_ops.c
@@ -488,7 +488,7 @@ static int parse_xlstr(struct xlstr* s) {
 
if (!s->s) return 0;
if (!strchr(s->s, '%')) return 0;
-   /* probably xl_log formating */
+   /* probably xl_log formatting */
 
if (!xl_print) {
xl_print=(xl_print_log_f*)find_export("xprint", NO_SCRIPT, 0);
@@ -535,7 +535,7 @@ static int eval_xlstr(struct sip_msg* msg, struct xlstr* s) 
{
if (s->xlfmt) {
len = xlbuf_size - (xlbuf_tail-xlbuf);
if (xl_print(msg, s->xlfmt, xlbuf_tail, &len) < 0) {
-   ERR(MODULE_NAME": eval_xlstr: Error while formating 
result\n");
+   ERR(MODULE_NAME": eval_xlstr: Error while formatting 
result\n");
return E_UNSPEC;
}
 


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


[sr-dev] git:master:22ba499f: ctl: fix typos

2018-02-07 Thread Victor Seva
Module: kamailio
Branch: master
Commit: 22ba499fa8bcd87fab5b718f7a011d1be047b858
URL: 
https://github.com/kamailio/kamailio/commit/22ba499fa8bcd87fab5b718f7a011d1be047b858

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-07T17:47:29+01:00

ctl: fix typos

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/ctl.so emtpy empty
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/ctl.so errror error

---

Modified: src/modules/ctl/binrpc_run.c
Modified: src/modules/ctl/fifo_server.c
Modified: src/modules/ctl/io_listener.c

---

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

---

diff --git a/src/modules/ctl/binrpc_run.c b/src/modules/ctl/binrpc_run.c
index efff292081..064b32b487 100644
--- a/src/modules/ctl/binrpc_run.c
+++ b/src/modules/ctl/binrpc_run.c
@@ -700,7 +700,7 @@ int process_rpc_req(unsigned char* buf, int size, int* 
bytes_needed,
 error:
if (f_ctx.replied==0){
rpc_fault(&f_ctx, 500, "internal server error");
-   LOG(L_ERR, "ERROR: unknown rpc errror\n");
+   LOG(L_ERR, "ERROR: unknown rpc error\n");
}
*bytes_needed=0; /* we don't need anymore crap */
destroy_binrpc_ctx(&f_ctx);
diff --git a/src/modules/ctl/fifo_server.c b/src/modules/ctl/fifo_server.c
index b37aa47f00..e057148059 100644
--- a/src/modules/ctl/fifo_server.c
+++ b/src/modules/ctl/fifo_server.c
@@ -819,7 +819,7 @@ int init_fifo_fd(char* fifo, int fifo_mode, int fifo_uid, 
int fifo_gid,
return -1;
}
if (strlen(fifo) == 0) {
-   ERR("emtpy fifo: fifo disabled\n");
+   ERR("empty fifo: fifo disabled\n");
return -1;
}

diff --git a/src/modules/ctl/io_listener.c b/src/modules/ctl/io_listener.c
index 8da2ba2933..5d8a22e880 100644
--- a/src/modules/ctl/io_listener.c
+++ b/src/modules/ctl/io_listener.c
@@ -711,7 +711,7 @@ inline static int handle_io(struct fd_map* fm, short 
events, int idx)
break;
 #endif
case F_T_RESERVED:
-   LOG(L_CRIT, "BUG: io listen handle_io: emtpy fd map\n");
+   LOG(L_CRIT, "BUG: io listen handle_io: empty fd map\n");
goto error;
default:
LOG(L_CRIT, "BUG: io listen handle_io: unknown fd type 
%d\n",


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


[sr-dev] git:master:f907e19e: avp: fix typo

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

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-07T17:36:41+01:00

avp: fix typo

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/avp.so formating formatting

---

Modified: src/modules/avp/avp.c

---

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

---

diff --git a/src/modules/avp/avp.c b/src/modules/avp/avp.c
index 1b13dd492b..f9956a39bd 100644
--- a/src/modules/avp/avp.c
+++ b/src/modules/avp/avp.c
@@ -701,7 +701,7 @@ static int xl_printstr(struct sip_msg* msg, xl_elog_t* 
format, char** res, int*
 
len = xlbuf_size;
if (xl_print(msg, format, xlbuf, &len)<0) {
-   LOG(L_ERR, "xl_printstr: Error while formating result\n");
+   LOG(L_ERR, "xl_printstr: Error while formatting result\n");
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:bbb7920c: cfg_rpc: fix typo

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

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-07T17:44:47+01:00

cfg_rpc: fix typo

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/cfg_rpc.so Delte Delete

---

Modified: src/modules/cfg_rpc/cfg_rpc.c

---

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

---

diff --git a/src/modules/cfg_rpc/cfg_rpc.c b/src/modules/cfg_rpc/cfg_rpc.c
index d865eae561..43ea61acc0 100644
--- a/src/modules/cfg_rpc/cfg_rpc.c
+++ b/src/modules/cfg_rpc/cfg_rpc.c
@@ -642,7 +642,7 @@ static void rpc_add_group_inst(rpc_t* rpc, void* c)
 }
 
 static const char* rpc_del_group_inst_doc[2] = {
-   "Delte an instance of a configuration group",
+   "Delete an instance of a configuration group",
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:1512771f: avpops: fix typos

2018-02-07 Thread Victor Seva
Module: kamailio
Branch: master
Commit: 1512771ff78c8e52934fb805e837ee46ee163745
URL: 
https://github.com/kamailio/kamailio/commit/1512771ff78c8e52934fb805e837ee46ee163745

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-07T17:43:03+01:00

avpops: fix typos

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/avpops.so arround around
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/avpops.so complet complete

---

Modified: src/modules/avpops/avpops_impl.c
Modified: src/modules/avpops/avpops_parse.c

---

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

---

diff --git a/src/modules/avpops/avpops_impl.c b/src/modules/avpops/avpops_impl.c
index 235929046a..c760becb43 100644
--- a/src/modules/avpops/avpops_impl.c
+++ b/src/modules/avpops/avpops_impl.c
@@ -327,7 +327,7 @@ int ops_dbload_avps (struct sip_msg* msg, struct fis_param 
*sp,
/* check uri */
if(!uri.user.s|| !uri.user.len|| !uri.host.len|| !uri.host.s)
{
-   LM_ERR("incomplet uri <%.*s>\n", uuid.len, uuid.s);
+   LM_ERR("incomplete uri <%.*s>\n", uuid.len, uuid.s);
goto error;
}
if((sp->opd&AVPOPS_FLAG_URI0)||(sp->opd&AVPOPS_FLAG_USER0))
@@ -468,7 +468,7 @@ int ops_dbdelete_avps (struct sip_msg* msg, struct 
fis_param *sp,
/* check uri */
if(!uri.user.s|| !uri.user.len|| !uri.host.len|| !uri.host.s)
{
-   LM_ERR("incomplet uri <%.*s>\n", uuid.len, uuid.s);
+   LM_ERR("incomplete uri <%.*s>\n", uuid.len, uuid.s);
goto error;
}
if((sp->opd&AVPOPS_FLAG_URI0)||(sp->opd&AVPOPS_FLAG_USER0))
@@ -588,7 +588,7 @@ int ops_dbstore_avps (struct sip_msg* msg, struct fis_param 
*sp,
/* check uri */
if(!uri.user.s|| !uri.user.len|| !uri.host.len|| !uri.host.s)
{
-   LM_ERR("incomplet uri <%.*s>\n", uuid.len, uuid.s);
+   LM_ERR("incomplete uri <%.*s>\n", uuid.len, uuid.s);
goto error;
}
if((sp->opd&AVPOPS_FLAG_URI0)||(sp->opd&AVPOPS_FLAG_USER0))
diff --git a/src/modules/avpops/avpops_parse.c 
b/src/modules/avpops/avpops_parse.c
index a5fc02c013..7877eefd4f 100644
--- a/src/modules/avpops/avpops_parse.c
+++ b/src/modules/avpops/avpops_parse.c
@@ -196,7 +196,7 @@ int parse_avp_db(char *s, struct db_param *dbp, int 
allow_scheme)
if (dbp->a.opd&AVPOPS_VAL_NONE)
{
LM_ERR("inconsistent usage of "
-   "DB scheme without complet 
specification of AVP name\n");
+   "DB scheme without complete 
specification of AVP name\n");
goto error;
}
have_scheme = 1;
@@ -260,7 +260,7 @@ struct fis_param* parse_intstr_value(char *p, int len)
len -= 2;
if (*p==0 || len<=0 )
{
-   LM_ERR("parse error arround <%.*s>\n",len,p);
+   LM_ERR("parse error around <%.*s>\n",len,p);
goto error;
}
} else {


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


[sr-dev] git:master:900d9fd0: auth_xkeys: fix typos

2018-02-07 Thread Victor Seva
Module: kamailio
Branch: master
Commit: 900d9fd0dbc489221cf3516f03399f8ac4980f15
URL: 
https://github.com/kamailio/kamailio/commit/900d9fd0dbc489221cf3516f03399f8ac4980f15

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-07T17:35:36+01:00

auth_xkeys: fix typos

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/auth_xkeys.so maching matching

---

Modified: src/modules/auth_xkeys/auth_xkeys.c

---

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

---

diff --git a/src/modules/auth_xkeys/auth_xkeys.c 
b/src/modules/auth_xkeys/auth_xkeys.c
index ad3bed70d6..980260988e 100644
--- a/src/modules/auth_xkeys/auth_xkeys.c
+++ b/src/modules/auth_xkeys/auth_xkeys.c
@@ -311,7 +311,7 @@ int auth_xkeys_check(sip_msg_t* msg, str *hdr, str *key,
if(hbody.len!=SHA256_DIGEST_STRING_LENGTH-1
&& hbody.len!=SHA384_DIGEST_STRING_LENGTH-1
&& hbody.len!=SHA512_DIGEST_STRING_LENGTH-1) {
-   LM_DBG("not maching digest size for [%.*s]\n",
+   LM_DBG("not matching digest size for [%.*s]\n",
hf->body.len, hf->body.s);
return -1;
}
@@ -337,7 +337,7 @@ int auth_xkeys_check(sip_msg_t* msg, str *hdr, str *key,
strncpy(xdata.s + itc->kvalue.len + 1, data->s, data->len);
if(alg->len==6 && strncasecmp(alg->s, "sha256", 6)==0) {
if(hbody.len!=SHA256_DIGEST_STRING_LENGTH-1) {
-   LM_DBG("not maching sha256 digest size for 
[%.*s]\n",
+   LM_DBG("not matching sha256 digest size for 
[%.*s]\n",
hf->body.len, hf->body.s);
return -1;
}
@@ -349,7 +349,7 @@ int auth_xkeys_check(sip_msg_t* msg, str *hdr, str *key,
}
} else if(alg->len==6 && strncasecmp(alg->s, "sha384", 6)==0) {
if(hbody.len!=SHA384_DIGEST_STRING_LENGTH-1) {
-   LM_DBG("not maching sha384 digest size for 
[%.*s]\n",
+   LM_DBG("not matching sha384 digest size for 
[%.*s]\n",
hf->body.len, hf->body.s);
return -1;
}
@@ -361,7 +361,7 @@ int auth_xkeys_check(sip_msg_t* msg, str *hdr, str *key,
}
} else if(alg->len==6 && strncasecmp(alg->s, "sha512", 6)==0) {
if(hbody.len!=SHA512_DIGEST_STRING_LENGTH-1) {
-   LM_DBG("not maching sha512 digest size for 
[%.*s]\n",
+   LM_DBG("not matching sha512 digest size for 
[%.*s]\n",
hf->body.len, hf->body.s);
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:0efef480: auth_diameter: fix typo

2018-02-07 Thread Victor Seva
Module: kamailio
Branch: master
Commit: 0efef4800cfa5c7572adbc2fde69b91acaa4c22e
URL: 
https://github.com/kamailio/kamailio/commit/0efef4800cfa5c7572adbc2fde69b91acaa4c22e

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-07T17:34:13+01:00

auth_diameter: fix typo

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/auth_diameter.so droped dropped

---

Modified: src/modules/auth_diameter/message.c

---

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

---

diff --git a/src/modules/auth_diameter/message.c 
b/src/modules/auth_diameter/message.c
index 43d27737c5..ad81816a42 100644
--- a/src/modules/auth_diameter/message.c
+++ b/src/modules/auth_diameter/message.c
@@ -309,7 +309,7 @@ AAAMessage* AAATranslateMessage( unsigned char* source, 
unsigned int sourceLen,
//AAAPrintMessage( msg );
return  msg;
 error:
-   LM_ERR(" message conversion droped!!\n");
+   LM_ERR(" message conversion dropped!!\n");
AAAFreeMessage(&msg);
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:a61bd0f7: acc_diameter: fix typos

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

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-07T17:31:14+01:00

acc_diameter: fix typos

Thanks, lintian
> I: kamailio: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/acc_diameter.so droped dropped

---

Modified: src/modules/acc_diameter/diam_message.c

---

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

---

diff --git a/src/modules/acc_diameter/diam_message.c 
b/src/modules/acc_diameter/diam_message.c
index 614318b26d..841dfe16a5 100644
--- a/src/modules/acc_diameter/diam_message.c
+++ b/src/modules/acc_diameter/diam_message.c
@@ -315,7 +315,7 @@ AAAMessage* AAATranslateMessage( unsigned char* source, 
unsigned int sourceLen,
//AAAPrintMessage( msg );
return  msg;
 error:
-   LM_ERR("message conversion droped!!\n");
+   LM_ERR("message conversion dropped!!\n");
AAAFreeMessage(&msg);
return 0;
 }


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


[sr-dev] [kamailio/kamailio] db_redis: Implement db_redis generic db driver (#1432)

2018-02-07 Thread Andreas Granig
This module implements a generic db driver for kamailio. It
requires a "schema" and "key" definition of "tables" and corresponding
keys for redis in the kamailio config file, otherwise it's supposed to
work with every module.

Implemented methods are query (w/o order-by), insert, update, delete.

Tested with usrloc and acc.





 Pre-Submission Checklist



- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, 
...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [ ] No commits to README files for modules (changes must be done to docbook 
files
in `doc/` subfolder, the README file is autogenerated)

 Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)

 Checklist:

- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [x] Related to issue #1137 

 Description

This module implements a generic db driver for redis, to be used by any module 
(with the help of some schema configuration in the config file).

You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1432

-- Commit Summary --

  * db_redis: Implement db_redis generic db driver

-- File Changes --

M src/Makefile.groups (2)
A src/modules/db_redis/Makefile (37)
A src/modules/db_redis/README (199)
A src/modules/db_redis/db_redis_mod.c (109)
A src/modules/db_redis/db_redis_mod.h (31)
A src/modules/db_redis/doc/Makefile (4)
A src/modules/db_redis/doc/db_redis.xml (37)
A src/modules/db_redis/doc/db_redis_admin.xml (190)
A src/modules/db_redis/redis_connection.c (287)
A src/modules/db_redis/redis_connection.h (71)
A src/modules/db_redis/redis_dbase.c (2056)
A src/modules/db_redis/redis_dbase.h (92)
A src/modules/db_redis/redis_table.c (697)
A src/modules/db_redis/redis_table.h (63)

-- Patch Links --

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


[sr-dev] git:master:911f81fc: presence: fix typos

2018-02-07 Thread Victor Seva
Module: kamailio
Branch: master
Commit: 911f81fc5d8945aabb49c3dca176a73320b8d0de
URL: 
https://github.com/kamailio/kamailio/commit/911f81fc5d8945aabb49c3dca176a73320b8d0de

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-07T16:54:57+01:00

presence: fix typos

Thanks, lintian
> I: kamailio-presence-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/presence.so pres press
> I: kamailio-presence-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/presence.so stucture structure
> I: kamailio-presence-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/presence.so unsuccessfull 
> unsuccessful

---

Modified: src/modules/presence/presence.c
Modified: src/modules/presence/presentity.c
Modified: src/modules/presence/publish.c

---

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

---

diff --git a/src/modules/presence/presence.c b/src/modules/presence/presence.c
index 721506292b..8131720cc4 100644
--- a/src/modules/presence/presence.c
+++ b/src/modules/presence/presence.c
@@ -1396,7 +1396,7 @@ static int update_pw_dialogs(subs_t* subs, unsigned int 
hash_code, subs_t** subs
cs= mem_copy_subs(s, PKG_MEM_TYPE);
if(cs== NULL)
{
-   LM_ERR( "copying subs_t stucture\n");
+   LM_ERR( "copying subs_t structure\n");
lock_release(&subs_htable[hash_code].lock);
return -1;
}
diff --git a/src/modules/presence/presentity.c 
b/src/modules/presence/presentity.c
index a824bd0a20..231f9a8bd5 100644
--- a/src/modules/presence/presentity.c
+++ b/src/modules/presence/presentity.c
@@ -73,7 +73,7 @@ char* generate_ETag(int publ_count)
size = snprintf (etag, ETAG_LEN, "%c.%d.%d.%d.%d",prefix, startup_time, 
pid, counter, publ_count);
if( size <0 )
{
-   LM_ERR("unsuccessfull snprintf\n ");
+   LM_ERR("unsuccessful snprintf\n ");
pkg_free(etag);
return NULL;
}
diff --git a/src/modules/presence/publish.c b/src/modules/presence/publish.c
index 69533b0e39..bf5a3bcd56 100644
--- a/src/modules/presence/publish.c
+++ b/src/modules/presence/publish.c
@@ -148,7 +148,7 @@ void msg_presentity_clean(unsigned int ticks,void *param)
/* delete from hash table */
if(publ_cache_enabled && delete_phtable(&uri, 
pres.event->evp->type)< 0)
{
-   LM_ERR("deleting from pres hash table\n");
+   LM_ERR("deleting from presentity hash table\n");
goto error;
}
 


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


[sr-dev] git:master:50859124: ims_dialog: fix typos

2018-02-07 Thread Victor Seva
Module: kamailio
Branch: master
Commit: 50859124b767f20313501a7883b138c0b16c1607
URL: 
https://github.com/kamailio/kamailio/commit/50859124b767f20313501a7883b138c0b16c1607

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-07T16:41:00+01:00

ims_dialog: fix typos

Thanks, lintian
> I: kamailio-ims-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/ims_dialog.so Deleteing Deleting
> I: kamailio-ims-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/ims_dialog.so regsiter register

---

Modified: src/modules/ims_dialog/dlg_hash.c
Modified: src/modules/ims_dialog/ims_dialog.c

---

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

---

diff --git a/src/modules/ims_dialog/dlg_hash.c 
b/src/modules/ims_dialog/dlg_hash.c
index a7afdbc432..9a07eb4fe7 100644
--- a/src/modules/ims_dialog/dlg_hash.c
+++ b/src/modules/ims_dialog/dlg_hash.c
@@ -680,7 +680,7 @@ void dlg_remove_dlg_out(struct dlg_cell_out 
*dlg_out_do_not_remove, struct dlg_c
 dlg->dlg_entry_out.first = dlg->dlg_entry_out.last = 0;
 } else {
 if (!only_mark) {
-LM_DBG("Deleteing dlg out structure\n");
+LM_DBG("Deleting dlg out structure\n");
 if (dlg_out->prev) {
 dlg_out->prev->next = dlg_out->next;
 }
diff --git a/src/modules/ims_dialog/ims_dialog.c 
b/src/modules/ims_dialog/ims_dialog.c
index 70f9f956f1..8430c86283 100644
--- a/src/modules/ims_dialog/ims_dialog.c
+++ b/src/modules/ims_dialog/ims_dialog.c
@@ -505,17 +505,17 @@ static int mod_init(void) {
 }
 
 if (register_script_cb(profile_cleanup, POST_SCRIPT_CB | REQUEST_CB, 0) < 
0) {
-LM_ERR("cannot regsiter script callback");
+LM_ERR("cannot register script callback");
 return -1;
 }
 if (register_script_cb(dlg_cfg_cb,
 PRE_SCRIPT_CB | REQUEST_CB, 0) < 0) {
-LM_ERR("cannot regsiter pre-script ctx callback\n");
+LM_ERR("cannot register pre-script ctx callback\n");
 return -1;
 }
 if (register_script_cb(dlg_cfg_cb,
 POST_SCRIPT_CB | REQUEST_CB, 0) < 0) {
-LM_ERR("cannot regsiter post-script ctx callback\n");
+LM_ERR("cannot register post-script ctx callback\n");
 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:60b64f5a: pua_rpc: fix typos

2018-02-07 Thread Victor Seva
Module: kamailio
Branch: master
Commit: 60b64f5a9b61df88cd977fef8e929c2fc60e4953
URL: 
https://github.com/kamailio/kamailio/commit/60b64f5a9b61df88cd977fef8e929c2fc60e4953

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-07T16:59:34+01:00

pua_rpc: fix typos

Thanks, lintian
> I: kamailio-presence-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/pua_rpc.so pres press

---

Modified: src/modules/pua_rpc/pua_rpc.c

---

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

---

diff --git a/src/modules/pua_rpc/pua_rpc.c b/src/modules/pua_rpc/pua_rpc.c
index 86bb231b4f..08c196d7c7 100644
--- a/src/modules/pua_rpc/pua_rpc.c
+++ b/src/modules/pua_rpc/pua_rpc.c
@@ -337,8 +337,8 @@ static void pua_rpc_subscribe(rpc_t* rpc, void* ctx)
return;
}
if(parse_uri(pres_uri.s, pres_uri.len, &uri)<0) {
-   LM_ERR("bad pres uri\n");
-   rpc->fault(ctx, 400, "Invalid pres URI");
+   LM_ERR("bad presentity uri\n");
+   rpc->fault(ctx, 400, "Invalid presentity URI");
return;
}
if(parse_uri(watcher_uri.s, watcher_uri.len, &uri)<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:f500e1d0: ims_charging: fix typo

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

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-07T16:38:38+01:00

ims_charging: fix typo

Thanks, lintian
> I: kamailio-ims-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/ims_charging.so Reponse Response

---

Modified: src/modules/ims_charging/diameter_ro.c

---

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

---

diff --git a/src/modules/ims_charging/diameter_ro.c 
b/src/modules/ims_charging/diameter_ro.c
index 2261ba801d..52a3e1d1ed 100644
--- a/src/modules/ims_charging/diameter_ro.c
+++ b/src/modules/ims_charging/diameter_ro.c
@@ -31,7 +31,7 @@ void RoChargingResponseHandler(AAAMessage *response, void 
*param) {
 LM_ERR("DBG:"M_NAME":RoChargingResponseHandler(): - Received 
unknown response for app %d command %d\n",
 response->applicationId,
 response->commandCode);
-LM_ERR("Reponse is [%s]", response->buf.s);
+LM_ERR("Response is [%s]", response->buf.s);
 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:2444e026: ims_registrar_scscf: fix typos

2018-02-07 Thread Victor Seva
Module: kamailio
Branch: master
Commit: 2444e026895810c12e47f8dcd11162c7827ac903
URL: 
https://github.com/kamailio/kamailio/commit/2444e026895810c12e47f8dcd11162c7827ac903

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-07T16:48:02+01:00

ims_registrar_scscf: fix typos

Thanks, lintian
> I: kamailio-ims-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/ims_registrar_scscf.so unsuccesful 
> unsuccessful
> I: kamailio-ims-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/ims_registrar_scscf.so explit 
> explicit
> I: kamailio-ims-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/ims_registrar_scscf.so pres press
> I: kamailio-ims-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/ims_registrar_scscf.so ceate create
> I: kamailio-ims-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/ims_registrar_scscf.so implicity 
> implicitly

---

Modified: src/modules/ims_registrar_scscf/registrar_notify.c
Modified: src/modules/ims_registrar_scscf/save.c
Modified: src/modules/ims_registrar_scscf/userdata_parser.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/2444e026895810c12e47f8dcd11162c7827ac903.diff
Patch: 
https://github.com/kamailio/kamailio/commit/2444e026895810c12e47f8dcd11162c7827ac903.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:b2a479a5: cdp: fix typos

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

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-07T16:30:44+01:00

cdp: fix typos

Thanks, lintian
> I: kamailio-ims-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/cdp.so Recevied Received
> I: kamailio-ims-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/cdp.so droped dropped

---

Modified: src/modules/cdp/acctstatemachine.c
Modified: src/modules/cdp/diameter_msg.c
Modified: src/modules/cdp/receiver.c

---

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

---

diff --git a/src/modules/cdp/acctstatemachine.c 
b/src/modules/cdp/acctstatemachine.c
index 9d1a4510f1..4e9272980f 100644
--- a/src/modules/cdp/acctstatemachine.c
+++ b/src/modules/cdp/acctstatemachine.c
@@ -128,7 +128,7 @@ int cc_acc_client_stateful_sm_process(cdp_session_t* s, int 
event, AAAMessage* m
break;
 
default:
-   LM_ERR("Recevied unknown event [%d] in 
state [%d]\n", event, x->state);
+   LM_ERR("Received unknown event [%d] in 
state [%d]\n", event, x->state);
break;
}
break;
diff --git a/src/modules/cdp/diameter_msg.c b/src/modules/cdp/diameter_msg.c
index 3630d40f1f..fb4257f52a 100644
--- a/src/modules/cdp/diameter_msg.c
+++ b/src/modules/cdp/diameter_msg.c
@@ -585,7 +585,7 @@ AAAMessage* AAATranslateMessage( unsigned char* source, 
unsigned int sourceLen,
//AAAPrintMessage( msg );
return  msg;
 error:
-   LM_ERR("AAATranslateMessage: message conversion droped!!\n");
+   LM_ERR("AAATranslateMessage: message conversion dropped!!\n");
AAAFreeMessage(&msg);
return 0;
 }
diff --git a/src/modules/cdp/receiver.c b/src/modules/cdp/receiver.c
index 0ff2fe15ae..2b4da266e3 100644
--- a/src/modules/cdp/receiver.c
+++ b/src/modules/cdp/receiver.c
@@ -751,7 +751,7 @@ int receive_loop(peer *original_peer)
LM_DBG("select_recv(): 
There is something on the send pipe\n");
cnt = 
read(sp->send_pipe_fd,&msg,sizeof(AAAMessage *));
if (cnt==0){
-   //This is very 
stupid and might not work well - droped messages... to be fixed
+   //This is very 
stupid and might not work well - dropped messages... to be fixed

LM_INFO("select_recv(): ReOpening pipe for read. This should not happen...\n");

close(sp->send_pipe_fd);

sp->send_pipe_fd = open(sp->send_pipe_name.s, O_RDONLY | O_NDELAY);


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


[sr-dev] Errored: kamailio/kamailio#5492 (master - a154308)

2018-02-07 Thread Travis CI
Build Update for kamailio/kamailio
-

Build: #5492
Status: Errored

Duration: 8 minutes and 48 seconds
Commit: a154308 (master)
Author: Victor Seva
Message: topos_redis: fix typos

Thanks, lintian
> I: kamailio-redis-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/topos_redis.so unuseful useless
> I: kamailio-redis-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/topos_redis.so unknow unknown

View the changeset: 
https://github.com/kamailio/kamailio/compare/f0ed817f33c3...a154308a26dd

View the full build log and details: 
https://travis-ci.org/kamailio/kamailio/builds/338546039?utm_source=email&utm_medium=notification

--

You can configure recipients for build notifications in your .travis.yml file. 
See https://docs.travis-ci.com/user/notifications

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


[sr-dev] git:master:a154308a: topos_redis: fix typos

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

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-07T16:17:46+01:00

topos_redis: fix typos

Thanks, lintian
> I: kamailio-redis-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/topos_redis.so unuseful useless
> I: kamailio-redis-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/topos_redis.so unknow unknown

---

Modified: src/modules/topos_redis/topos_redis_storage.c

---

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

---

diff --git a/src/modules/topos_redis/topos_redis_storage.c 
b/src/modules/topos_redis/topos_redis_storage.c
index b0086478e2..50e33121ee 100644
--- a/src/modules/topos_redis/topos_redis_storage.c
+++ b/src/modules/topos_redis/topos_redis_storage.c
@@ -677,7 +677,7 @@ int tps_redis_load_invite_branch(sip_msg_t *msg, tps_data_t 
*md, tps_data_t *sd)
&& strncmp(skey.s, tt_key_x_vbranch.s, 
skey.len)==0) {
TPS_REDIS_DATA_APPEND(sd, &skey, &sval, 
&sd->x_vbranch1);
} else {
-   LM_INFO("unuseful key[%.*s]\n", skey.len, skey.s);
+   LM_INFO("useless key[%.*s]\n", skey.len, skey.s);
}
}
 
@@ -879,7 +879,7 @@ int tps_redis_load_branch(sip_msg_t *msg, tps_data_t *md, 
tps_data_t *sd,
&& strncmp(skey.s, tt_key_b_tag.s, 
skey.len)==0) {
TPS_REDIS_DATA_APPEND(sd, &skey, &sval, &sd->b_tag);
} else {
-   LM_WARN("unknow key[%.*s]\n", skey.len, skey.s);
+   LM_WARN("unknown key[%.*s]\n", skey.len, skey.s);
}
}
 
@@ -1084,7 +1084,7 @@ int tps_redis_load_dialog(sip_msg_t *msg, tps_data_t *md, 
tps_data_t *sd)
&& strncmp(skey.s, td_key_s_cseq.s, 
skey.len)==0) {
TPS_REDIS_DATA_APPEND(sd, &skey, &sval, &sd->s_cseq);
} else {
-   LM_WARN("unknow key[%.*s]\n", skey.len, skey.s);
+   LM_WARN("unknown key[%.*s]\n", skey.len, skey.s);
}
}
 


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


[sr-dev] git:master:f0ed817f: carrierroute: fix typo

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

Author: Victor Seva 
Committer: Victor Seva 
Date: 2018-02-07T16:10:04+01:00

carrierroute: fix typo

Thanks, lintian
> I: kamailio-carrierroute-modules: spelling-error-in-binary 
> usr/lib/x86_64-linux-gnu/kamailio/modules/carrierroute.so Sucessfully 
> Successfully

---

Modified: src/modules/carrierroute/parser_carrierroute.c

---

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

---

diff --git a/src/modules/carrierroute/parser_carrierroute.c 
b/src/modules/carrierroute/parser_carrierroute.c
index c6fbf933f9..8aac5f501d 100644
--- a/src/modules/carrierroute/parser_carrierroute.c
+++ b/src/modules/carrierroute/parser_carrierroute.c
@@ -383,7 +383,7 @@ int parse_struct_header(FILE* file, char* 
expected_struct_type, str* struct_name
}
 
if ( SUCCESSFUL_PARSING == ret ){
-   LM_DBG( "Sucessfully parsed struct %s - <%s> header\n", 
expected_struct_type, name);
+   LM_DBG( "Successfully parsed struct %s - <%s> header\n", 
expected_struct_type, name);
struct_name->len = strlen(name);
memcpy(struct_name->s, name, struct_name->len);
struct_name->s[struct_name->len]='\0';


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


[sr-dev] [kamailio/kamailio] schema: allow null value for active_watchers user-agent column (#1431)

2018-02-07 Thread lazedo
some UAs not sending User-Agent header on SUBSCRIBE causes insert error

needs backport to 5.0/5.1

You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1431

-- Commit Summary --

  * schema: allow null value for active_watchers user-agent column

-- File Changes --

M src/lib/srdb1/schema/pr_active_watchers.xml (4)
M utils/kamctl/db_berkeley/kamailio/active_watchers (2)
M utils/kamctl/db_berkeley/kamailio/version (2)
M utils/kamctl/db_sqlite/presence-create.sql (4)
M utils/kamctl/dbtext/kamailio/active_watchers (2)
M utils/kamctl/dbtext/kamailio/version (2)
M utils/kamctl/mongodb/kamailio/active_watchers.json (6)
M utils/kamctl/mongodb/kamailio/version-create.mongo (2)
M utils/kamctl/mysql/presence-create.sql (4)
M utils/kamctl/oracle/presence-create.sql (4)
M utils/kamctl/postgres/presence-create.sql (4)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/1431.patch
https://github.com/kamailio/kamailio/pull/1431.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/1431
___
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] redis support into usrloc (#1137)

2018-02-07 Thread Andreas Granig
JFYI, there is another generic implementation available as of today at 
https://github.com/agranig/kamailio/tree/agranig/db_redis/src/modules/db_redis. 
It's currently undergoing internal reviews, I'll send a pull request in a 
couple of days. Compared to Surendra's implementation, it's supposed to work 
with any module (incl. usrloc), if the module is properly configured (see 
README).

There is still lots of room for improvement, focus was on proof-of-concept to 
get it working and stable.

There'll be a talk by me at Kamailio World presenting the module and 
benchmarking results.

@ngvoice @ManuelBothner 

-- 
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/1137#issuecomment-363763399___
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] core: use standard c atomic code from stdatomic.h instead of providing assembly routines (#1430)

2018-02-07 Thread Daniel-Constantin Mierla
I agree we should move to a standard libc approach when possible, I wanted to 
look at this for quite some time, but not much happened. For now, I am not sure 
if it is a good compatibility between operations to just say it will be done.

On the other hand, I think that these compile time warnings are useless in most 
of the cases, because more and more people install from packages, so they do 
not build the app. They should be turned into some startup warnings, so people 
have a chance to see them when running kamailio..

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


[sr-dev] git:master:052520be: modules: readme files regenerated - rr ... [skip ci]

2018-02-07 Thread Kamailio Dev
Module: kamailio
Branch: master
Commit: 052520becf71b638f97652f010d8a27c7cabfc22
URL: 
https://github.com/kamailio/kamailio/commit/052520becf71b638f97652f010d8a27c7cabfc22

Author: Kamailio Dev 
Committer: Kamailio Dev 
Date: 2018-02-07T13:31:34+01:00

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

---

Modified: src/modules/rr/README

---

Diff:  
https://github.com/kamailio/kamailio/commit/052520becf71b638f97652f010d8a27c7cabfc22.diff
Patch: 
https://github.com/kamailio/kamailio/commit/052520becf71b638f97652f010d8a27c7cabfc22.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:87787c2e: rr: documentation for force_send_socket parameter

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

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2018-02-07T13:22:51+01:00

rr: documentation for force_send_socket parameter

---

Modified: src/modules/rr/doc/rr_admin.xml

---

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

---

diff --git a/src/modules/rr/doc/rr_admin.xml b/src/modules/rr/doc/rr_admin.xml
index b64930a665..d8b9ce7adb 100644
--- a/src/modules/rr/doc/rr_admin.xml
+++ b/src/modules/rr/doc/rr_admin.xml
@@ -265,6 +265,31 @@ modparam("rr", "custom_user_avp", 
"$avp(RR_CUSTOMER_USER_AVP)")
 $avp(RR_CUSTOM_USER_AVP)="mo";
 record_route();
 ...
+
+  
+
+
+  force_send_socket (int)
+
+ 
+ If set to 1, local socket is forced even for single 
Record-Route,
+ otherwise is done on double Record-Route (should that be 
enabled).
+ 
+
+ 
+ When use of outbound is enabled, the socket is 
not
+ forced.
+ 
+
+  Default value is 0.
+
+  
+Set force_send_socket parameter
+
+
+...
+modparam("rr", "force_send_socket", 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:93739c0b: rr: new parameter force_send_socket

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

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2018-02-07T13:22:51+01:00

rr: new parameter force_send_socket

- if set to 1, the socket is also forced for single rr
- default is 0, socket is forced only for doubgle rr
- if use outbound is set, socket is not forced

---

Modified: src/modules/rr/loose.c
Modified: src/modules/rr/rr_mod.c

---

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


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


[sr-dev] [kamailio/kamailio] core: use standard c atomic code from stdatomic.h instead of providing assembly routines (#1430)

2018-02-07 Thread Victor Seva
>From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886111

```
Source: kamailio
Version: 5.1.0-1
Severity: wishlist

Hi,

I noticed from the build log on mips64el a lot of warnings like this:
> In file included from ../../core/parser/../mem/../atomic/atomic_native.h:50:0,
>  from ../../core/parser/../mem/../futexlock.h:42,
>  from ../../core/parser/../mem/../lock_ops.h:75,
>  from ../../core/parser/../mem/shm.h:39,
>  from ../../core/parser/../mem/shm_mem.h:34,
>  from ../../core/parser/../ut.h:45,
>  from ../../core/parser/../ip_addr.h:39,
>  from ../../core/parser/msg_parser.h:37,
>  from app_sqlang_api.h:28,
>  from app_sqlang_kemi_export.c:32:
> ../../core/parser/../mem/../atomic/atomic_mips2.h:41:2: warning: #warning 
> mips64 atomic code was not tested, please report problems to ser...@iptel.org 
> or and...@iptel.org [-Wcpp]
>  #warning mips64 atomic code was not tested, please report problems to \
>   ^~~

If possible, kamailio should use the standard c atomic code from
stdatomic.h instead of providing assembly routines. This will improve
maintainability and architecture support.

Thanks,
James
```


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


[sr-dev] Errored: kamailio/kamailio#5487 (master - 4cc60ed)

2018-02-07 Thread Travis CI
Build Update for kamailio/kamailio
-

Build: #5487
Status: Errored

Duration: 10 minutes and 45 seconds
Commit: 4cc60ed (master)
Author: Guillem Jover
Message: pkg/kamailio/deb: wait for kamailio to exit before returning on 
sysvinit stop action

We should not return until the service has been fully terminated,
otherwise a subsequent start might break as it can consider itself
as already running. And once the old instance stops there's nothing
left running.

This also makes it possibe to remove a sleep in the restart action.

View the changeset: 
https://github.com/kamailio/kamailio/compare/829759afd600...4cc60ede9615

View the full build log and details: 
https://travis-ci.org/kamailio/kamailio/builds/338447148?utm_source=email&utm_medium=notification

--

You can configure recipients for build notifications in your .travis.yml file. 
See https://docs.travis-ci.com/user/notifications

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


[sr-dev] git:5.1:df7c9486: pkg/kamailio/deb: wait for kamailio to exit before returning on sysvinit stop action

2018-02-07 Thread Victor Seva
Module: kamailio
Branch: 5.1
Commit: df7c94863d9d75533a4430af84ba3647ac4decf6
URL: 
https://github.com/kamailio/kamailio/commit/df7c94863d9d75533a4430af84ba3647ac4decf6

Author: Guillem Jover 
Committer: Victor Seva 
Date: 2018-02-07T12:16:47+01:00

pkg/kamailio/deb: wait for kamailio to exit before returning on sysvinit stop 
action

We should not return until the service has been fully terminated,
otherwise a subsequent start might break as it can consider itself
as already running. And once the old instance stops there's nothing
left running.

This also makes it possibe to remove a sleep in the restart action.

(cherry picked from commit 4cc60ede961554220cd265bd212407f42d5b8262)

---

Modified: pkg/kamailio/deb/buster/kamailio.init
Modified: pkg/kamailio/deb/debian/kamailio.init
Modified: pkg/kamailio/deb/jessie/kamailio.init
Modified: pkg/kamailio/deb/precise/kamailio.init
Modified: pkg/kamailio/deb/sid/kamailio.init
Modified: pkg/kamailio/deb/stretch/kamailio.init
Modified: pkg/kamailio/deb/trusty/kamailio.init
Modified: pkg/kamailio/deb/wheezy/kamailio.init
Modified: pkg/kamailio/deb/xenial/kamailio.init

---

Diff:  
https://github.com/kamailio/kamailio/commit/df7c94863d9d75533a4430af84ba3647ac4decf6.diff
Patch: 
https://github.com/kamailio/kamailio/commit/df7c94863d9d75533a4430af84ba3647ac4decf6.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:4cc60ede: pkg/kamailio/deb: wait for kamailio to exit before returning on sysvinit stop action

2018-02-07 Thread Victor Seva
Module: kamailio
Branch: master
Commit: 4cc60ede961554220cd265bd212407f42d5b8262
URL: 
https://github.com/kamailio/kamailio/commit/4cc60ede961554220cd265bd212407f42d5b8262

Author: Guillem Jover 
Committer: Victor Seva 
Date: 2018-02-07T12:11:42+01:00

pkg/kamailio/deb: wait for kamailio to exit before returning on sysvinit stop 
action

We should not return until the service has been fully terminated,
otherwise a subsequent start might break as it can consider itself
as already running. And once the old instance stops there's nothing
left running.

This also makes it possibe to remove a sleep in the restart action.

---

Modified: pkg/kamailio/deb/buster/kamailio.init
Modified: pkg/kamailio/deb/debian/kamailio.init
Modified: pkg/kamailio/deb/jessie/kamailio.init
Modified: pkg/kamailio/deb/precise/kamailio.init
Modified: pkg/kamailio/deb/sid/kamailio.init
Modified: pkg/kamailio/deb/stretch/kamailio.init
Modified: pkg/kamailio/deb/trusty/kamailio.init
Modified: pkg/kamailio/deb/wheezy/kamailio.init
Modified: pkg/kamailio/deb/xenial/kamailio.init

---

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


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


[sr-dev] Info: Markus Monka replacing Marcus Hunger in management group

2018-02-07 Thread Daniel-Constantin Mierla
Hello,

Markus Monka has just replaced Marcus Hunger in Kamailio project
management group. Marcus (still at sipgate) has moved to work more on
frontend applications than backend, no longer interacting with Kamailio
project.

Markus Monka has managed the VoIP operations at sipgate for more than 15
years, helping the project over the years with various resources, mainly
in respect of organizing events and testing infrastructure, sipgate
being one of the oldest VoIP services using Kamailio (since first
releases of SER). The change is reflected now on the website:

  * https://www.kamailio.org/w/management/

Warm welcome to Markus and many thanks to both of them for what they did
so far for Kamailio project!

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - March 5-7, 2018, Berlin - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com


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


[sr-dev] Info: Kamailio project administration updates

2018-02-07 Thread Daniel-Constantin Mierla
Hello,

after several discussions at some of the past IRC devel meetings,
finally we started to build a team to be involved more actively in the
administration of Kamailio. The project has grown steadily, not only in
terms of code, but also packaging, continuous integration, social
networking interactions as well as participation to events world wide.

For a better coordination and ability to handle related tasks, I invited
the most active developers and community members to join so called
Kamailio Administration Team, the initial details about it are published
as part of management page on kamailio.org:

  * https://www.kamailio.org/w/management/

Some more details about its rules and purpose:

  * https://www.kamailio.org/w/kadmin/

It will still take some time to get it properly rolling, more or less
now looking to see if the community has suggestions/improvements on what
can be done in these aspects.

I wrote to all mailing lists for the initial announcement, but you can
just reply to sr-users, if you are subscribed there, otherwise it's fine
to write back to any of the lists.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - March 5-7, 2018, Berlin - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com


___
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] [master] jsonrpcs doesn't work on AARCH64 ?! (#1429)

2018-02-07 Thread Daniel-Constantin Mierla
Thanks for pointing out the solution.

-- 
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/1429#issuecomment-363697062___
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] [master] jsonrpcs doesn't work on AARCH64 ?! (#1429)

2018-02-07 Thread Daniel-Constantin Mierla
Closed #1429.

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