[sr-dev] git:master:a2b1f269: modules: readme files regenerated - uac ... [skip ci]
Module: kamailio Branch: master Commit: a2b1f2692603a952a56bf513c68871d172139ca6 URL: https://github.com/kamailio/kamailio/commit/a2b1f2692603a952a56bf513c68871d172139ca6 Author: Kamailio DevCommitter: Kamailio Dev Date: 2017-07-26T17:46:20+02:00 modules: readme files regenerated - uac ... [skip ci] --- Modified: src/modules/uac/README --- Diff: https://github.com/kamailio/kamailio/commit/a2b1f2692603a952a56bf513c68871d172139ca6.diff Patch: https://github.com/kamailio/kamailio/commit/a2b1f2692603a952a56bf513c68871d172139ca6.patch --- diff --git a/src/modules/uac/README b/src/modules/uac/README index 9623b2c256..d4d8701859 100644 --- a/src/modules/uac/README +++ b/src/modules/uac/README @@ -419,7 +419,10 @@ modparam("uac","auth_password_avp","$avp(i:12)") 3.12. reg_db_url (string) - DB URL to fetch account profiles for registration. + DB URL to fetch account profiles for registration. This parameter must + be set in order to enable remote registrations feature. + + The default value is "" (no value). Example 1.12. Set reg_db_url parameter ... ___ 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_postgres: fix typo and whitespace (#1190)
You can view, comment on, or merge this pull request online at: https://github.com/kamailio/kamailio/pull/1190 -- Commit Summary -- * db_postgres: fix typo and whitespace -- File Changes -- M src/modules/db_postgres/pg_con.c (38) -- Patch Links -- https://github.com/kamailio/kamailio/pull/1190.patch https://github.com/kamailio/kamailio/pull/1190.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/1190 ___ 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] PID file permissions (#231)
This issue is closed, do not add new comments to it. This looks like a config issue inside kamctlrc for the path to the pid file. For issues about using or configuring kamailio, use sr-us...@lists.kamailio.org mailing list, -- 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/231#issuecomment-318025272___ 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] PID file permissions (#231)
I have the same issue like @arsenx: "ERROR: No PID file found (/var/run/kamailio.pid)! Kamailio probably not running", regardless of chmoding or chowning. The error hint points to the /var/run/kamailio.pid but on my system (Debian Jessie 8.9) the location of the pid-file is /var/run/kamailio/kamailio.pid. Is this ok? Every time when I try to restart or stop kamailio (via kamctl), I get the error. I've tested with kamailio 5.0, 4.4 and 4.2 releases and nothing changes. The init-script is already patched (see the post from @linuxmaniac). -- 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/231#issuecomment-318019855___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:master:16006cd9: dialplan: exported dp_match() and dp_replace() to kemi framework
Module: kamailio Branch: master Commit: 16006cd97c4eccb4b45c459a8585649450bf5772 URL: https://github.com/kamailio/kamailio/commit/16006cd97c4eccb4b45c459a8585649450bf5772 Author: Daniel-Constantin MierlaCommitter: Daniel-Constantin Mierla Date: 2017-07-26T12:18:15+02:00 dialplan: exported dp_match() and dp_replace() to kemi framework --- Modified: src/modules/dialplan/dialplan.c --- Diff: https://github.com/kamailio/kamailio/commit/16006cd97c4eccb4b45c459a8585649450bf5772.diff Patch: https://github.com/kamailio/kamailio/commit/16006cd97c4eccb4b45c459a8585649450bf5772.patch --- diff --git a/src/modules/dialplan/dialplan.c b/src/modules/dialplan/dialplan.c index 5a94e8c21c..85dc0d652b 100644 --- a/src/modules/dialplan/dialplan.c +++ b/src/modules/dialplan/dialplan.c @@ -55,6 +55,7 @@ #include "../../core/rpc.h" #include "../../core/rpc_lookup.h" #include "../../core/lvalue.h" +#include "../../core/kemi.h" #include "dialplan.h" #include "dp_db.h" @@ -256,17 +257,21 @@ static int dp_update(struct sip_msg * msg, pv_spec_t * dest, memset(, 0, sizeof(pv_value_t)); val.flags = PV_VAL_STR; - no_change = (dest==NULL) || (dest->type == PVT_NONE) || (!repl->s) || (!repl->len); + no_change = (dest==NULL) || (dest->type == PVT_NONE) + || (!repl->s) || (!repl->len); if (no_change) goto set_attr_pvar; val.rs = *repl; - if(dest->setf(msg, >pvp, (int)EQ_T, )<0) - { - LM_ERR("setting dst pseudo-variable failed\n"); - return -1; + if(dest->setf) { + if(dest->setf(msg, >pvp, (int)EQ_T, )<0) { + LM_ERR("setting dst pseudo-variable failed\n"); + return -1; + } + } else { + LM_WARN("target variable is read only - skipping setting its value\n"); } if(dp_append_branch!=0) { @@ -506,6 +511,19 @@ static int w_dp_replace(sip_msg_t* msg, char* pid, char* psrc, char* pdst) return dp_replace_helper(msg, dpid, , pvd); } +static int ki_dp_replace(sip_msg_t* msg, int dpid, str* src, str* dst) +{ + pv_spec_t *pvd = NULL; + + pvd = pv_cache_get(dst); + if(pvd==NULL) { + LM_ERR("cannot get pv spec for [%.*s]\n", dst->len, dst->s); + return -1; + } + + return dp_replace_helper(msg, dpid, src, pvd); +} + static int w_dp_match(sip_msg_t* msg, char* pid, char* psrc) { int dpid = 1; @@ -523,6 +541,11 @@ static int w_dp_match(sip_msg_t* msg, char* pid, char* psrc) return dp_replace_helper(msg, dpid, , NULL); } +static int ki_dp_match(sip_msg_t* msg, int dpid, str* src) +{ + return dp_replace_helper(msg, dpid, src, NULL); +} + int dp_replace_fixup(void** param, int param_no) { if (param_no == 1) @@ -776,3 +799,32 @@ static int dialplan_init_rpc(void) } return 0; } + +/** + * + */ +/* clang-format off */ +static sr_kemi_t sr_kemi_dialplan_exports[] = { + { str_init("dialplan"), str_init("dp_match"), + SR_KEMIP_INT, ki_dp_match, + { SR_KEMIP_INT, SR_KEMIP_STR, SR_KEMIP_NONE, + SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } + }, + { str_init("dialplan"), str_init("dp_replace"), + SR_KEMIP_INT, ki_dp_replace, + { SR_KEMIP_INT, SR_KEMIP_STR, SR_KEMIP_STR, + SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } + }, + + { {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } } +}; +/* clang-format on */ + +/** + * + */ +int mod_register(char *path, int *dlflags, void *p1, void *p2) +{ + sr_kemi_modules_add(sr_kemi_dialplan_exports); + return 0; +} \ No newline at end of file ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:master:e9509170: pv: added section ids in the docs
Module: kamailio Branch: master Commit: e95091700857ff96d9e7c6508104a5ba5d5487ff URL: https://github.com/kamailio/kamailio/commit/e95091700857ff96d9e7c6508104a5ba5d5487ff Author: Daniel-Constantin MierlaCommitter: Daniel-Constantin Mierla Date: 2017-07-26T12:00:38+02:00 pv: added section ids in the docs --- Modified: src/modules/pv/doc/pv_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/e95091700857ff96d9e7c6508104a5ba5d5487ff.diff Patch: https://github.com/kamailio/kamailio/commit/e95091700857ff96d9e7c6508104a5ba5d5487ff.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:35219960: modules: readme files regenerated - pv ... [skip ci]
Module: kamailio Branch: master Commit: 35219960e2960359d4d8b17f1566da611554a152 URL: https://github.com/kamailio/kamailio/commit/35219960e2960359d4d8b17f1566da611554a152 Author: Kamailio DevCommitter: Kamailio Dev Date: 2017-07-26T12:01:25+02:00 modules: readme files regenerated - pv ... [skip ci] --- Modified: src/modules/pv/README --- Diff: https://github.com/kamailio/kamailio/commit/35219960e2960359d4d8b17f1566da611554a152.diff Patch: https://github.com/kamailio/kamailio/commit/35219960e2960359d4d8b17f1566da611554a152.patch --- diff --git a/src/modules/pv/README b/src/modules/pv/README index 428a27c958..9c082b8fc2 100644 --- a/src/modules/pv/README +++ b/src/modules/pv/README @@ -74,7 +74,7 @@ Daniel-Constantin Mierla 1.15. pv_xavp_to_var() usage 1.16. pv_xavp_to_var() usage 1.17. pv.shvSet usage - 1.18. pv.shvSet usage + 1.18. pv.shvGet usage Chapter 1. Admin Guide @@ -461,7 +461,7 @@ $ kamcmd pv.shvSet debug int 3 If no name is given, all shared variables are listed. - Example 1.18. pv.shvSet usage + Example 1.18. pv.shvGet usage ... $ kamcmd pv.shvGet debug ... ___ 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] cores on stop if TLS is enabled using libssl1.1 ( Debian stretch ) (#1189)
I'm going to try with the last version of branch 1.1.0 -- 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/1189#issuecomment-318005177___ 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] cores on stop if TLS is enabled using libssl1.1 ( Debian stretch ) (#1189)
``` Core was generated by `/usr/sbin/kamailio -f /etc/kamailio/lb/kamailio.cfg -P /var/run/kamailio/kamail'. Program terminated with signal SIGSEGV, Segmentation fault. #0 ossl_init_thread_stop (locals=0x7f8d615fcd58) at ../crypto/init.c:335 warning: Source file is more recent than executable. 335 if (locals->async) { (gdb) info locals No locals. (gdb) l 330 { 331 /* Can't do much about this */ 332 if (locals == NULL) 333 return; 334 335 if (locals->async) { 336 #ifdef OPENSSL_INIT_DEBUG 337 fprintf(stderr, "OPENSSL_INIT: ossl_init_thread_stop: " 338 "ASYNC_cleanup_thread()\n"); 339 #endif (gdb) p locals $1 = (struct thread_local_inits_st *) 0x7f8d615fcd58 (gdb) p *locals Cannot access memory at address 0x7f8d615fcd58 (gdb) ``` -- 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/1189#issuecomment-318004842___ 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] cores on stop if TLS is enabled using libssl1.1 ( Debian stretch ) (#1189)
And the rest from my previous comment? -- 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/1189#issuecomment-318004761___ 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] cores on stop if TLS is enabled using libssl1.1 ( Debian stretch ) (#1189)
just that patch -- 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/1189#issuecomment-318001713___ 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] cores on stop if TLS is enabled using libssl1.1 ( Debian stretch ) (#1189)
Btw, did you just use that patch or recompiled all from latest branch 1.1.0 for openssl? -- 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/1189#issuecomment-317997768___ 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] cores on stop if TLS is enabled using libssl1.1 ( Debian stretch ) (#1189)
Can you give the new backtrace to match against the source code? Also, provide `info locals` and `list` from frame 0. -- 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/1189#issuecomment-317997504___ 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] cores on stop if TLS is enabled using libssl1.1 ( Debian stretch ) (#1189)
FTR, tried with openssl/openssl@4b4bc00 applied same core -- 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/1189#issuecomment-317981985___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] git:master:55a98c84: dialplan: documentation for append_branch parameter
Module: kamailio Branch: master Commit: 55a98c84112fcca6b917f1efd08e8da3b1a9ab69 URL: https://github.com/kamailio/kamailio/commit/55a98c84112fcca6b917f1efd08e8da3b1a9ab69 Author: Daniel-Constantin MierlaCommitter: Daniel-Constantin Mierla Date: 2017-07-26T09:24:59+02:00 dialplan: documentation for append_branch parameter --- Modified: src/modules/dialplan/doc/dialplan_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/55a98c84112fcca6b917f1efd08e8da3b1a9ab69.diff Patch: https://github.com/kamailio/kamailio/commit/55a98c84112fcca6b917f1efd08e8da3b1a9ab69.patch --- diff --git a/src/modules/dialplan/doc/dialplan_admin.xml b/src/modules/dialplan/doc/dialplan_admin.xml index 073c2b24ed..e9f8f95350 100644 --- a/src/modules/dialplan/doc/dialplan_admin.xml +++ b/src/modules/dialplan/doc/dialplan_admin.xml @@ -387,6 +387,28 @@ modparam("dialplan", "match_dynamic", 1) + + append_branch (int) + + If set to 1, the module appends a new outgoing branch when request + URI (r-uri) or its user part are changed by dp_translate() or + dp_replace() inside a failure_route block. Set it to 0 if the branch + should not be added. + + + + Default value is 1. + + + + Set append_branch parameter + +... +modparam("dialplan", "append_branch", 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:4c65f4fd: dialplan: added append_branch parameter
Module: kamailio Branch: master Commit: 4c65f4fd4dda697e48757e06e011fa58a2000588 URL: https://github.com/kamailio/kamailio/commit/4c65f4fd4dda697e48757e06e011fa58a2000588 Author: Daniel-Constantin MierlaCommitter: Daniel-Constantin Mierla Date: 2017-07-26T09:21:59+02:00 dialplan: added append_branch parameter - control if the module should do append branch if r-uri or r-uri username are changed inside failure route - default value is 1 (append branch - preserves compatibility) --- Modified: src/modules/dialplan/dialplan.c --- Diff: https://github.com/kamailio/kamailio/commit/4c65f4fd4dda697e48757e06e011fa58a2000588.diff Patch: https://github.com/kamailio/kamailio/commit/4c65f4fd4dda697e48757e06e011fa58a2000588.patch --- diff --git a/src/modules/dialplan/dialplan.c b/src/modules/dialplan/dialplan.c index cac1df7124..5a94e8c21c 100644 --- a/src/modules/dialplan/dialplan.c +++ b/src/modules/dialplan/dialplan.c @@ -85,6 +85,7 @@ dp_param_p default_par2 = NULL; int dp_fetch_rows = 1000; int dp_match_dynamic = 0; +int dp_append_branch = 1; static param_export_t mod_params[]={ { "db_url", PARAM_STR, _db_url }, @@ -100,6 +101,7 @@ static param_export_t mod_params[]={ { "attrs_pvar", PARAM_STR, _pvar_s }, { "fetch_rows", PARAM_INT, _fetch_rows }, { "match_dynamic", PARAM_INT, _match_dynamic }, + { "append_branch", PARAM_INT, _append_branch }, {0,0,0} }; @@ -267,11 +269,15 @@ static int dp_update(struct sip_msg * msg, pv_spec_t * dest, return -1; } - if(is_route_type(FAILURE_ROUTE) - && (dest->type==PVT_RURI || dest->type==PVT_RURI_USERNAME)) { - if (append_branch(msg, 0, 0, 0, Q_UNSPECIFIED, 0, 0, 0, 0, 0, 0) != 1) { - LM_ERR("append_branch action failed\n"); - return -1; + if(dp_append_branch!=0) { + if(is_route_type(FAILURE_ROUTE) + && (dest->type == PVT_RURI + || dest->type == PVT_RURI_USERNAME)) { + if(append_branch(msg, 0, 0, 0, Q_UNSPECIFIED, 0, 0, 0, 0, 0, 0) + != 1) { + LM_ERR("append branch action failed\n"); + return -1; + } } } ___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev