<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please use this template only for bug reports.
If you have questions about using Kamailio or related to its configuration file, ask on sr-users mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing C code, ask on sr-dev mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev…
[View More]Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot the issue.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
KSR.is_MESSAGE() Not implemented.
kamailio v5.3.4
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
### Troubleshooting
#### Reproduction
<!--
If the issue can be reproduced, describe how it can be done.
-->
#### Debugging Data
<!--
If you got a core dump, use gdb to extract troubleshooting data - full backtrace,
local variables and the list of the code at the issue location.
gdb /path/to/kamailio /path/to/corefile
bt full
info locals
list
If you are familiar with gdb, feel free to attach more of what you consider to
be relevant.
-->
```
(paste your debugging data here)
```
#### Log Messages
<!--
Check the syslog file and if there are relevant log messages printed by Kamailio, add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your log messages here)
```
#### SIP Traffic
<!--
If the issue is exposed by processing specific SIP messages, grab them with ngrep or save in a pcap file, then add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your sip traffic here)
```
### Possible Solutions
<!--
If you found a solution or workaround for the issue, describe it. Ideally, provide a pull request with a fix.
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
(paste your output here)
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->
```
(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/2331
[View Less]
Module: kamailio
Branch: master
Commit: 9053c70fe7e147b784c53a57014796282701c74d
URL: https://github.com/kamailio/kamailio/commit/9053c70fe7e147b784c53a570147962…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-17T10:01:00+02:00
auth_diameter: use file specific include guard
---
Modified: src/modules/auth_diameter/diameter_msg.h
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]9053c70fe7e147b784c53a570147962…
Patch: https://github.com/kamailio/kamailio/commit/9053c70fe7e147b784c53a570147962…
---
diff --git a/src/modules/auth_diameter/diameter_msg.h b/src/modules/auth_diameter/diameter_msg.h
index 7ab5a8c383..e8e7eea875 100644
--- a/src/modules/auth_diameter/diameter_msg.h
+++ b/src/modules/auth_diameter/diameter_msg.h
@@ -13,15 +13,15 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef _AAA_DIAMETER_MSG_H
-#define _AAA_DIAMETER_MSG_H
+#ifndef _AUTH_DIAM_MESSAGE_H_
+#define _AUTH_DIAM_MESSAGE_H_
#include "../../core/str.h"
#include "../../core/mem/mem.h"
[View Less]
Hello all
Testing dialog timeout event callback for kemi lua setup on kamailio
5.4.0-dev3 (x86_64/linux) d74157-dirty, i had some problems to perform the
dlg timeroute behaviour the same as we could on native version.
If i used KSR.dialog.var_sets to set $dlg_ctx(timeout_route), I saw that on
a dialog timeout, the dlg_ontimeout event route was not triggered, and only
the dialog callback was executed with evname dialog:end. (only executing
event_route -1 on state 5)
So i'm guessing that the …
[View More]kemi dialog var_sets is for $dlg_var only (¿?)
Anycase, If i used KSR.pv.sets, i saw the kamailio was crashing
.....
16(5579) DEBUG: dialog [dlg_hash.c:1013]: dlg_ref_helper(): ref dlg
0x7f9a961f5f90 with 1 -> 3
16(5579) DEBUG: dialog [dlg_handlers.c:1589]: dlg_ontimeout(): executing
route -1 on timeout
22(5645) CRITICAL: <core> [core/pass_fd.c:277]: receive_fd(): EOF on 8
22(5645) DEBUG: <core> [core/tcp_main.c:3762]: handle_ser_child(): dead
child 16, pid 5579 (shutting down?)
....
Adding some debug, i could see that the call was not attempting the kemi
function of line 1598 of dlg_handlers.c, and was trying the code i think
was for native on line 1593.
We think the issue is that the toroute is defined as unsigned
dlg_hash.h: unsigned int toroute; /*!< index of route that is
executed on timeout */
but after that when setting $dlg_ctx(timeout_route) with pv module, it
tries to compare an integer being unsigned, so it's always true and never
uses kemi
with this change we made it work
+ if ((int)(dlg->toroute) > 0) {
+ /*if(dlg->toroute>0) {*/
but i don't know maybe there is a better way to do it.
best regards
david
[View Less]
### Description
wh have a too long 500msg,when the build ack,it abort
we use ka listen two port ,and use port 1 send port 2 after port2 send port1,it loop in kamailio.cfg.its my wrong,but kamailio core....
### Troubleshooting
#### Debugging Data this is core bt
#0 0x00002ae1c343c5f7 in raise () from /lib64/libc.so.6
#1 0x00002ae1c343dce8 in abort () from /lib64/libc.so.6
#2 0x000000000068155a in qm_debug_check_frag (qm=0x2ae1c8fb4000, f=0x2ae1c93bf558, file=0x2ae1c4a1b9ff "tm: …
[View More]t_msgbuilder.c", line=518, efile=0x7f1ca7 "core/mem/q_malloc.c",
eline=504) at core/mem/q_malloc.c:139
#3 0x0000000000684bf5 in qm_free (qmp=0x2ae1c8fb4000, p=0x2ae1c93bf590, file=0x2ae1c4a1b9ff "tm: t_msgbuilder.c",
func=0x2ae1c4a1fb50 <__FUNCTION__.11261> "build_local_reparse", line=518, mname=0x2ae1c4a1aa30 "tm") at core/mem/q_malloc.c:504
#4 0x000000000068e83f in qm_shm_free (qmp=0x2ae1c8fb4000, p=0x2ae1c93bf590, file=0x2ae1c4a1b9ff "tm: t_msgbuilder.c",
func=0x2ae1c4a1fb50 <__FUNCTION__.11261> "build_local_reparse", line=518, mname=0x2ae1c4a1aa30 "tm") at core/mem/q_malloc.c:1268
#5 0x00002ae1c4951e76 in build_local_reparse (Trans=0x2ae1c94524d8, branch=0, len=0x7ffe977ff370, method=0x2ae1c4a2399b "ACK", method_len=3, to=0x7ffe977ff130, reason=0x0)
at t_msgbuilder.c:518
#6 0x00002ae1c497336e in build_ack (rpl=0x2ae1c3d3bb08, trans=0x2ae1c94524d8, branch=0, ret_len=0x7ffe977ff370) at t_reply.c:354
#7 0x00002ae1c4986066 in reply_received (p_msg=0x2ae1c3d3bb08) at t_reply.c:2292
#8 0x000000000053da31 in do_forward_reply (msg=0x2ae1c3d3bb08, mode=0) at core/forward.c:748
#9 0x000000000053f5a9 in forward_reply (msg=0x2ae1c3d3bb08) at core/forward.c:853
#10 0x000000000059c633 in receive_msg (
buf=0xa6ee20 <buf.6868> "SIP/2.0 500 Internal Server Error\r\nVia: SIP/2.0/UDP 172.18.67.32;branch=z9hG4bK4301.6c6183869659ad37775254042e1ec6f4.0\r\nVia: SIP/2.0/UDP 172.18.67.32;branch=z9hG4bK4301.a149a0620b507cd0ba760eeb1cd32b3"..., len=27098, rcv_info=0x7ffe977ffae0) at core/receive.c:434
#11 0x000000000048e42c in udp_rcv_loop () at core/udp_server.c:541
#12 0x000000000042509d in main_loop () at main.c:1669
#13 0x000000000042c788 in main (argc=9, argv=0x7ffe97800028) at main.c:2710
(gdb) up
#1 0x00002ae1c343dce8 in abort () from /lib64/libc.so.6
(gdb) up
#2 0x000000000068155a in qm_debug_check_frag (qm=0x2ae1c8fb4000, f=0x2ae1c93bf558, file=0x2ae1c4a1b9ff "tm: t_msgbuilder.c", line=518, efile=0x7f1ca7 "core/mem/q_malloc.c",
eline=504) at core/mem/q_malloc.c:139
139 core/mem/q_malloc.c: 没有那个文件或目录.
(gdb) up
#3 0x0000000000684bf5 in qm_free (qmp=0x2ae1c8fb4000, p=0x2ae1c93bf590, file=0x2ae1c4a1b9ff "tm: t_msgbuilder.c",
func=0x2ae1c4a1fb50 <__FUNCTION__.11261> "build_local_reparse", line=518, mname=0x2ae1c4a1aa30 "tm") at core/mem/q_malloc.c:504
504 in core/mem/q_malloc.c
(gdb) up
#4 0x000000000068e83f in qm_shm_free (qmp=0x2ae1c8fb4000, p=0x2ae1c93bf590, file=0x2ae1c4a1b9ff "tm: t_msgbuilder.c",
func=0x2ae1c4a1fb50 <__FUNCTION__.11261> "build_local_reparse", line=518, mname=0x2ae1c4a1aa30 "tm") at core/mem/q_malloc.c:1268
1268 in core/mem/q_malloc.c
(gdb) up
#5 0x00002ae1c4951e76 in build_local_reparse (Trans=0x2ae1c94524d8, branch=0, len=0x7ffe977ff370, method=0x2ae1c4a2399b "ACK", method_len=3, to=0x7ffe977ff130, reason=0x0)
at t_msgbuilder.c:518
518 t_msgbuilder.c: 没有那个文件或目录.
(gdb) p cancel_buf
$1 = 0x2ae1c93bf590 "ACK sip:2002@172.18.67.42 SIP/2.0\r\n\253"
(gdb) p reason
$2 = (struct cancel_reason *) 0x0
#### Log Messages
[2020-05-11 11:10:27] (124796) INFO: <script>: IN_REPLY_PBX
[2020-05-11 11:10:27] (124796) INFO: <script>: IN_REPLY_PBX IN Call <null>: Status 100 3001@172.18.67.42:5060 -----> 2002@172.18.67.32:5060
[2020-05-11 11:10:27] (124796) ERROR: tm [t_msgbuilder.c:516]: build_local_reparse(): HDR_EOH_T was not found
[2020-05-11 11:10:27] (124796) CRITICAL: <core> [core/mem/q_malloc.c:137]: qm_debug_check_frag(): BUG: qm: fragm. 0x2ae1c93bf558 (address 0x2ae1c93bf590) end overwritten (2e322f5049532032, ab0a0d30)! Memory allocator was called from tm: t_msgbuilder.c:518. Fragment marked by tm: t_msgbuilder.c:345. Exec from core/mem/q_malloc.c:504.
#### SIP Traffic
we use ka listen two port ,and use port 1 send port 2 after port2 send port1,it loop in kamailio.cfg.its my wrong,but kamailio core....
### Possible Solutions
we see t_msgbuilder.c shm_free(cancel_buf); faild ...
### Additional Information
version: kamailio 5.2.5 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, 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_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:28:15 Nov 4 2019 with gcc 4.8.5
* **Operating System**:
CentOS Linux release 7.2.1511 (Core)
Linux localhost.localdomain 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
--
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/2321
[View Less]
Module: kamailio
Branch: master
Commit: 7ae675bd90b4420ebaa17768c97aa09219f53116
URL: https://github.com/kamailio/kamailio/commit/7ae675bd90b4420ebaa17768c97aa09…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-14T21:21:51+02:00
pua_reginfo: free xml doc in case of error
- a few whitespacing fixes
---
Modified: src/modules/pua_reginfo/usrloc_cb.c
---
Diff: https://github.com/kamailio/kamailio/…
[View More]commit/7ae675bd90b4420ebaa17768c97aa09…
Patch: https://github.com/kamailio/kamailio/commit/7ae675bd90b4420ebaa17768c97aa09…
---
diff --git a/src/modules/pua_reginfo/usrloc_cb.c b/src/modules/pua_reginfo/usrloc_cb.c
index f8a55480bb..f128680122 100644
--- a/src/modules/pua_reginfo/usrloc_cb.c
+++ b/src/modules/pua_reginfo/usrloc_cb.c
@@ -16,8 +16,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -57,7 +57,7 @@ void pua_reginfo_update_self_op(int v)
}
str* build_reginfo_full(urecord_t * record, str uri, ucontact_t* c, int type) {
- xmlDocPtr doc = NULL;
+ xmlDocPtr doc = NULL;
xmlNodePtr root_node = NULL;
xmlNodePtr registration_node = NULL;
xmlNodePtr contact_node = NULL;
@@ -78,11 +78,12 @@ str* build_reginfo_full(urecord_t * record, str uri, ucontact_t* c, int type) {
root_node = xmlNewNode(NULL, BAD_CAST "reginfo");
if(root_node==0) {
LM_ERR("Unable to create reginfo-XML-Element\n");
+ xmlFreeDoc(doc);
return NULL;
}
/* This is our Root-Element: */
- xmlDocSetRootElement(doc, root_node);
-
+ xmlDocSetRootElement(doc, root_node);
+
xmlNewProp(root_node, BAD_CAST "xmlns", BAD_CAST "urn:ietf:params:xml:ns:reginfo");
/* we set the version to 0 but it should be set to the correct value in the pua module */
@@ -163,7 +164,7 @@ str* build_reginfo_full(urecord_t * record, str uri, ucontact_t* c, int type) {
memset(buf, 0, sizeof(buf));
snprintf(buf, sizeof(buf), "%.*s", ptr->received.len, ptr->received.s);
xmlNewProp(contact_node, BAD_CAST "received", BAD_CAST buf);
-
+
/* path Attribute */
memset(buf, 0, sizeof(buf));
snprintf(buf, sizeof(buf), "%.*s", ptr->path.len, ptr->path.s);
@@ -216,7 +217,7 @@ str* build_reginfo_full(urecord_t * record, str uri, ucontact_t* c, int type) {
}
if(doc) xmlFreeDoc(doc);
return NULL;
-}
+}
void reginfo_usrloc_cb(ucontact_t* c, int type, void* param) {
str* body= NULL;
@@ -240,7 +241,7 @@ void reginfo_usrloc_cb(ucontact_t* c, int type, void* param) {
content_type.s = "application/reginfo+xml";
content_type.len = 23;
-
+
/* Debug Output: */
LM_DBG("AOR: %.*s (%.*s)\n", c->aor->len, c->aor->s, c->domain->len, c->domain->s);
if(type & UL_CONTACT_INSERT) LM_DBG("type= UL_CONTACT_INSERT\n");
@@ -292,7 +293,7 @@ void reginfo_usrloc_cb(ucontact_t* c, int type, void* param) {
}
uri.len = snprintf(uri.s, uri.len, "sip:%.*s", record->aor.len, record->aor.s);
}
-
+
/* Build the XML-Body: */
body = build_reginfo_full(record, uri, c, type);
@@ -315,8 +316,8 @@ void reginfo_usrloc_cb(ucontact_t* c, int type, void* param) {
publ.id.len = id_buf_len;
publ.content_type = content_type;
publ.expires = 3600;
-
- /* make UPDATE_TYPE, as if this "publish dialog" is not found
+
+ /* make UPDATE_TYPE, as if this "publish dialog" is not found
by pua it will fallback to INSERT_TYPE anyway */
publ.flag|= UPDATE_TYPE;
publ.source_flag |= REGINFO_PUBLISH;
@@ -328,7 +329,7 @@ void reginfo_usrloc_cb(ucontact_t* c, int type, void* param) {
if(pua.send_publish(&publ) < 0) {
LM_ERR("Error while sending publish\n");
- }
+ }
error:
if (uri.s) pkg_free(uri.s);
if(body) {
@@ -338,4 +339,4 @@ void reginfo_usrloc_cb(ucontact_t* c, int type, void* param) {
if(record) ul.release_urecord(record);
return;
-}
+}
[View Less]
When upgrading from stretch to buster the kamailio packages aren't upgraded because the 5.3.1+stretch version is greater than 5.3.1+buster:
```
$ dpkg --compare-versions 5.3.1+stretch gt 5.3.1+buster ; echo $?
0
```
The package version should include the release version instead of its codename, e.g. 5.3.1+deb9u1 & 5.3.1+deb10u1 like done for [stable updates](https://www.debian.org/doc/manuals/developers-reference/pkgs.en.ht…:
```
$ dpkg --compare-versions 5.3.1+deb10u1 gt 5.3.1+deb9u1 ; …
[View More]echo $?
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/2160
[View Less]
### Description
We noticed random errors from jansson module when:
```
xlog("L_NOTICE", "**** PRE '«$avp(i:901)»' - [% logres %]\n");
jansson_set("str", "cc_sub", "$avp(s:caller_concurrent_calls_count)", "$(avp(i:901)[*])");
```
```
May 14 10:11:37 sp1 proxy[23633]: ERROR: jansson [jansson_funcs.c:219]: janssonmod_set(): result has json error at line 1: end of file expected near 'xMTAwMiIsImxucF'
May 14 10:…
[View More]11:37 sp1 proxy[23633]: ERROR: jansson [jansson_funcs.c:219]: janssonmod_set(): result has json error at line 1: end of file expected near '0'
May 14 10:11:37 sp1 proxy[23633]: ERROR: jansson [jansson_funcs.c:219]: janssonmod_set(): result has json error at line 1: end of file expected near 'TEwMDEiLCJkX'
```
### Troubleshooting
#### Reproduction
`` jansson_set(type, key/path, value, result)``
Using a long json result, in my tests longer than 400 chars fires the ERROR
#### Log Messages
```
May 14 10:11:37 sp1 proxy[23633]: NOTICE: <script>: Setting acc destination-leg for uuid '«0d5845e9-2cd1-4b1e-bbc4-6ca9102f864e»': '«{"gpp":["long long long long","long long long long","long long long long","long long long long","long long long long","l
ong long long long","long long long long","long long long long","long long long long","long long long long"],"plu":0,"s_id":"","c_id":"","a_id":315,"dialed":"4311001","uuid":"0d5845e9-2cd1-4b1e-bbc4-6ca9102f864e","u":"testuser1001","d":"spce.test","u_in
":"4311001","d_in":"spce.test","lcr":0,"lnp_p":"","u_out":"testuser1001","lnp_t":"","fci":"","cc_quota":"","cc_sub":"","cc_cust":""}»' - R=«sip:conf=4311001@conference.local» ID=«NGCP%invite_conference_update%///1-23982(a)127.126.0.xn--1_pbx-1-yna UA='<null>'
May 14 10:11:37 sp1 proxy[23633]: NOTICE: <script>: **** PRE '«{"gpp":[null,null,null,null,null,null,null,null,null,null],"clir":0,"uuid":"adeff08b-bd66-4578-8a01-194185d06827","u":"testuser1002","d":"spce.test","cli":"43110011002","s_id":"","c_id":"","
a_id":315,"pau":"","par":"","s":"call","ip":"127.126.0.1","t":1589443897.908021,"lnp_p":"","cli_out":"43110011002","lnp_t":"","pai":"","div":"","cid":"","u2u":"","lcr":0,"cc_quota":"","cc_sub":"","cc_cust":""}»' - ID=«NGCP%invite_conference_update%///1-
23982(a)127.126.0.xn--1_pbx-1-yna UA='<null>'
May 14 10:11:37 sp1 proxy[23633]: ERROR: jansson [jansson_funcs.c:219]: janssonmod_set(): result has json error at line 1: end of file expected near 'xMTAwMiIsImxucF'
May 14 10:11:37 sp1 proxy[23633]: ERROR: jansson [jansson_funcs.c:219]: janssonmod_set(): result has json error at line 1: end of file expected near '0'
```
### Possible Solutions
In my fast check I notice the result is forced to end in '\0'. Preparing a PR with a solution.
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
This is Sipwise's version but with no jansson patches at all
```
version: kamailio 5.3.4 (x86_64/linux)
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, NO_SIG_DEBUG, DNS_IP_HACK, 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, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, 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 with gcc 8.3.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/2327
[View Less]
Module: kamailio
Branch: master
Commit: c1d3fdb31871078b666278a933dbab20a0a8dca3
URL: https://github.com/kamailio/kamailio/commit/c1d3fdb31871078b666278a933dbab2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T18:35:56+02:00
misc: examples/kemi - small typo in lua example
---
Modified: misc/examples/kemi/kamailio-basic-kemi-lua.lua
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]c1d3fdb31871078b666278a933dbab2…
Patch: https://github.com/kamailio/kamailio/commit/c1d3fdb31871078b666278a933dbab2…
---
diff --git a/misc/examples/kemi/kamailio-basic-kemi-lua.lua b/misc/examples/kemi/kamailio-basic-kemi-lua.lua
index 4be9b13587..f5906d0bde 100644
--- a/misc/examples/kemi/kamailio-basic-kemi-lua.lua
+++ b/misc/examples/kemi/kamailio-basic-kemi-lua.lua
@@ -238,7 +238,7 @@ function ksr_route_location()
end
--- IP authorization and user uthentication
+-- IP authorization and user authentication
function ksr_route_auth()
if not KSR.auth then
return 1;
[View Less]
Hello,
Kamailio SIP Server v5.2.7 stable release is out.
This is a maintenance release of the previous stable branch (5.2), that includes fixes since the release of v5.2.6. There is no change to database schema or configuration language structure that you have to do on previous installations of v5.2.x. Deployments running previous v5.2.x versions are strongly recommended to be upgraded to v5.2.7.
For more details about version 5.2.7 (including links and guidelines to download the tar …
[View More]file or from GIT repository), visit:
https://www.kamailio.org/w/2020/05/kamailio-5-2-7-released/
RPM, Debian/Ubuntu packages will be available soon as well.
Many thanks to all contributing and using Kamailio!
Cheers,
Henning
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://gilawa.com<https://gilawa.com/>
[View Less]
Module: kamailio
Branch: 5.3
Commit: 957335591e589cde0ae3127b6d2e50c092708e0e
URL: https://github.com/kamailio/kamailio/commit/957335591e589cde0ae3127b6d2e50c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-05-13T12:16:32Z
lib/srdb1/schema: removed kamailio-extensions.xml file
- file didn't have any content itself, tried to include an inexistent
extra.xml, which generated an warning for 'make dbschema'
(cherry …
[View More]picked from commit 367a865e7f0c9cd67fda9176add1ca3c0dad2d46)
---
Removed: src/lib/srdb1/schema/kamailio-extensions.xml
---
Diff: https://github.com/kamailio/kamailio/commit/957335591e589cde0ae3127b6d2e50c…
Patch: https://github.com/kamailio/kamailio/commit/957335591e589cde0ae3127b6d2e50c…
---
diff --git a/src/lib/srdb1/schema/kamailio-extensions.xml b/src/lib/srdb1/schema/kamailio-extensions.xml
deleted file mode 100644
index f4a0aec097..0000000000
--- a/src/lib/srdb1/schema/kamailio-extensions.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE database PUBLIC "-//kamailio.org//DTD DBSchema V1.1//EN"
- "http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [
-
- <!ENTITY % entities SYSTEM "entities.xml">
- %entities;
-]>
-
-<!-- Inclusion point for custom extensions for Kamailio -->
-
-<database xmlns:xi="http://www.w3.org/2001/XInclude">
- <name>CUSTOM Extensions</name>
- <!-- Include extra definitions if found, it is not
- an error if they are not present, although it
- would produce a warning -->
- <xi:include href="extra.xml">
- <xi:fallback/>
- </xi:include>
- <!-- add more extensions here -->
- <!-- <xi:include href="more-extras.xml"> -->
-</database>
[View Less]
- URL: https://github.com/kamailio/kamailio/commit/f1c05b27544736f9f7f4db25072e62e…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-05-13T11:43:15Z
core: initialize memory to 0 in cfg parser in a few more places
(cherry picked from commit 5e42adae624f9741e26dfb0af4accede2a8f92d2)
- URL: https://github.com/kamailio/kamailio/commit/1cc1cd9d1f921af74aaf4355b860605…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-05-13T11:43:15Z
core: small improvement …
[View More]related to commit 5e42adae624f9741 in cfg parser
(cherry picked from commit f879b4c4d75777892f160d8abe639c6f15f68569)
- URL: https://github.com/kamailio/kamailio/commit/fbcee7886e704d5f83eb0ddaad0b4f6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T11:43:15Z
tm: safe list iteration in tm_clean_lifetime()
(cherry picked from commit 325a45e846faae3e5dfa333727d5fab294e44dac)
- URL: https://github.com/kamailio/kamailio/commit/0b6f5d890da1b20c43a15d5ce980a0e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T11:43:15Z
kamctl: kamctlrc - fix CHROOT_DIR example and coherent use of ## for comments
- ## is used for explanatory comments
- # is used for commented options
(cherry picked from commit 517b3be4b06473d1d64d1fe198c4a9c149bcc1b0)
- URL: https://github.com/kamailio/kamailio/commit/c81fc143ea2b90573112f4e3aad23b7…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-05-13T11:43:15Z
textopsx: small spelling fix in docs
(cherry picked from commit 53ccb420c0414a12af0783add864bb4d97a65d90)
- URL: https://github.com/kamailio/kamailio/commit/ee52f834092d6e2fd8e80f110ec05e7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T11:43:15Z
pike: docs - aligned ip tree example
(cherry picked from commit e65ce2fd407626acc89879033a2114cf521457dc)
- URL: https://github.com/kamailio/kamailio/commit/ff5280155c1740f61990949e45e5492…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T11:43:15Z
sst: docs - more info about how timeout_avp is used
(cherry picked from commit b800ffb9fb1de6ee0d7b6c2b42a25669022c1142)
- URL: https://github.com/kamailio/kamailio/commit/8cc08c3a217bcd1aa4df472773dde44…
Author: Nathan Bruning <nathan(a)iperity.com>
Date: 2020-05-13T11:43:15Z
core: fix returning multiple IPs for a cached DNS entry
(cherry picked from commit 29a35ec3cec8b9c3ee4b45c8d84308701bda097c)
- URL: https://github.com/kamailio/kamailio/commit/fd4d00868e3527a9841db38d0b4216c…
Author: Zero King <l2dy(a)icloud.com>
Date: 2020-05-13T11:43:15Z
rtpengine: fix zero-length log placeholder
(cherry picked from commit 740afac15b3d8d618b5101a761a37f5808d4b4f0)
- URL: https://github.com/kamailio/kamailio/commit/fdefbecdce5a7153a89e29e0750dfc2…
Author: Zero King <l2dy(a)icloud.com>
Date: 2020-05-13T11:43:15Z
rtpproxy: fix zero-length log placeholder
(cherry picked from commit 030f18b5cffeb117dcf582cf12c5b3c35ace1469)
- URL: https://github.com/kamailio/kamailio/commit/003c9ea66ae77957899776d10b0ef29…
Author: Zero King <l2dy(a)icloud.com>
Date: 2020-05-13T11:43:15Z
nathelper: fix zero-length log placeholder
(cherry picked from commit 69714b26c63c75df6759f9158c7181d4f86b4764)
- URL: https://github.com/kamailio/kamailio/commit/a325bf7ea5bec95d3ddb638c852e46a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T11:43:15Z
rtpengine: replaced rtpproxy with rtpengine
- avoid confusion in printed log messges
(cherry picked from commit dda07c69420e1a38948dae4b71f8005b2375253b)
- URL: https://github.com/kamailio/kamailio/commit/dcccf002cc21af47d654d7e298147ae…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T11:45:05Z
topoh: skip http reply handling
(cherry picked from commit 345d6f67006e4254300209742a2778b925cafaf7)
- URL: https://github.com/kamailio/kamailio/commit/f26f42712a447b033792ce3e514c70d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T11:45:11Z
topos: skip http reply handling
(cherry picked from commit fad795648f8cbf12cc099dea18092ff7beee9c75)
- URL: https://github.com/kamailio/kamailio/commit/a701a78df5b0affb267153ffa878f7d…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-05-13T11:45:31Z
db: update README describing the DB XML framework
(cherry picked from commit 25e61922244ec9c438fc472500472b59d191093a)
- URL: https://github.com/kamailio/kamailio/commit/c1e9fac3284c84110cbf1406313acf3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T11:45:57Z
dispatcher: docs - added modparams for keepalives in sample config file
(cherry picked from commit 6fb8cb820207e51e7e6ae07020c17c32b9fa9aa0)
- URL: https://github.com/kamailio/kamailio/commit/22c79b10542f004cce245a7412ccf5a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T11:46:50Z
kamcmd: use pkg-config to get compile flags for lib readline
(cherry picked from commit 0e6e05f8bec1fb451375d71a6b929a6908c5689d)
- URL: https://github.com/kamailio/kamailio/commit/ab544f384da96fbed41b5856b0b5698…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T11:47:02Z
kamcmd: Makefile - updated the msg target to print pkg-config detections
(cherry picked from commit 331ffea6c8c8b2c7cf38e3d7eda882a6becd326a)
- URL: https://github.com/kamailio/kamailio/commit/c77a9efc7295fed897de805be08f002…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T11:47:33Z
kamctl: cmd trap output file with txt extension
- easier to view inline when sent via email, without extensions being
binary encoding and requiring explicit download
(cherry picked from commit 41841dfc153894a97609bdc95d78a12cb2b304ca)
- URL: https://github.com/kamailio/kamailio/commit/f140b9e04021fe6957c1a8712025847…
Author: Bastian Triller <bastian.triller(a)gmail.com>
Date: 2020-05-13T11:47:48Z
sipcapture: fix spelling errors
(cherry picked from commit cc1142fcc15e0875d309de894a239325526fa186)
- URL: https://github.com/kamailio/kamailio/commit/beb772654d0602cd2f146b60b8c000f…
Author: Greg Troxel <gdt(a)lexort.com>
Date: 2020-05-13T11:48:17Z
Makefile.defs: On NetBSD, link with -lm
(cherry picked from commit 3ccaac365da6078a96681109efebc70dcb12fc55)
- URL: https://github.com/kamailio/kamailio/commit/40a540f8ec966d0ed1ec7fffe1ce609…
Author: Greg Troxel <gdt(a)lexort.com>
Date: 2020-05-13T11:48:24Z
Makefile.defs: Only add -ldl on systems that use it
kamailio uses dlopen, and on some systems, one must link with -ldl.
On others, this is not needed and there is no libdl. For now, simply
omit -ldl on NetBSD (which doesn't have or require it), and don't try
to change behavior on other systems.
(cherry picked from commit bca9768b6f2667bad8472fa99a113b8249ca0f9a)
- URL: https://github.com/kamailio/kamailio/commit/8764cbf3af221fe6ce6ec3c29eebc6f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T11:50:17Z
corex: docs - examples with setting xavps for via functions
(cherry picked from commit 1e58a56cb7f9d83ca0c943481d02c429d33e188a)
- URL: https://github.com/kamailio/kamailio/commit/4f94de7f26482002918cbb25c0d045e…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-05-13T11:52:38Z
lib/srdb1: fix warning about wrong namespace in version.xml
(cherry picked from commit d4311f3dfa3fc6c3836e8573fb12bc2ae4b6c264)
- URL: https://github.com/kamailio/kamailio/commit/87e8cfa00bf2d21aa4267dd8b1c8df7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T11:56:30Z
pdb: covert byte-by-byte from buffer to short-int to avoid unalignment compile warning
- GH #2298
(cherry picked from commit 86ebb4eef482b37a3bb8bf033caa4d87fd8aeb87)
- URL: https://github.com/kamailio/kamailio/commit/670ca687be62d130c4db38563eefa01…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T11:58:30Z
permissions: docs - note about netmask value 0 in the database column
(cherry picked from commit 8729a55f00b8ba6adbf97921ef09d56080145810)
- URL: https://github.com/kamailio/kamailio/commit/870f2cc861fde0ed0f8bc3322bbe097…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:04:15Z
dispatcher: handle the case of maxload 0 for call load distribution
- GH #2297
(cherry picked from commit 0115d3424c0f8780a661882527f39b2b39d0e74e)
- URL: https://github.com/kamailio/kamailio/commit/e0d8e300ccb6a4fa54ab15f558a4017…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:04:25Z
db_redis: var initialization and safety check to avoid compiler warnings
(cherry picked from commit b9b177ccffd58b11cf460764514486d29637dd55)
- URL: https://github.com/kamailio/kamailio/commit/71c692abb4a17d799cc162860ebd329…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:05:50Z
pv: do not set ending '\0' for port value in pv_set_ruri_port()
- it can be a reference to a static string, ending up in a crash
- GH #2258
(cherry picked from commit 1f76bca74839f35d11f42edf758eb046cedb752c)
- URL: https://github.com/kamailio/kamailio/commit/8a06a8e456c1a6cd7deb7626efb012b…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-05-13T12:06:28Z
core: remove compiler warnings [-Wstring-plus-int]
> core/parser/parse_fline.c:241:17: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
> SIP_VERSION+1, SIP_VERSION_LEN-1)) {
> ~~~~~~~~~~~^~
>
> core/parser/parse_fline.c:241:17: note: use array indexing to silence this warning
> SIP_VERSION+1, SIP_VERSION_LEN-1)) {
> ^
> & [ ]
> core/parser/parse_fline.c:247:18: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
> HTTP_VERSION+1, HTTP_VERSION_LEN-1)) {
> ~~~~~~~~~~~~^~
>
> core/parser/parse_fline.c:247:18: note: use array indexing to silence this warning
> HTTP_VERSION+1, HTTP_VERSION_LEN-1)) {
> ^
> & [ ]
>
> 2 warnings generated.
(cherry picked from commit f2959f422bb8171241728f5148d4b21c9cc2c681)
- URL: https://github.com/kamailio/kamailio/commit/990e0f3d0a483c9bdc52de538d5e9b5…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-05-13T12:06:37Z
core: remove compiler warnings [-Wstring-plus-int]
> core/parser/parse_fline.c:93:34: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
> strncasecmp( tmp+1, SIP_VERSION+1, SIP_VERSION_LEN-1)==0 &&
> ~~~~~~~~~~~^~
>
> core/parser/parse_fline.c:121:9: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
> } else IFISMETHOD( INVITE, 'I' )
> ^~~~~~~~~~~~~~~~~~~~~~~~~
>
> core/parser/msg_parser.h:131:35: note: expanded from macro 'IFISMETHOD'
> strncasecmp( tmp+1, #methodname +1, methodname##_LEN-1)==0 && \
> ~~~~~~~~~~~~^~
(cherry picked from commit 2b070a622fa3c78d929580fda3c7952963c4066b)
- URL: https://github.com/kamailio/kamailio/commit/0b33f3b2cdb5950c816723cb310b284…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-05-13T12:07:18Z
core: better debug logging in mk_action function
(cherry picked from commit 10b96696b82d2e70c15f3e4bc52097f0a5062499)
- URL: https://github.com/kamailio/kamailio/commit/a18f9ae5110207b0d99283cd987aeba…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:08:12Z
dialog: keep route block index as signed int
- otherwise it can be broken value when route block doesn't exit and
kemi callback should be executed
- reported by David Escartin
(cherry picked from commit 6c557efc1b9cb8c880a05235c94780bbaf305073)
- URL: https://github.com/kamailio/kamailio/commit/9e3e24726e9c60b3e61b3a46366cfa9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:10:54Z
dmq: init worker structure in chid_init for PROC_INIT rank
- have it ready when other processes are started
(cherry picked from commit 21bdbff049571ca22f1205a041c8b1162005d319)
- URL: https://github.com/kamailio/kamailio/commit/889938f19a5b012f149f6e853c40211…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:11:17Z
dialog: detailed debug messages when resolving the timeout
(cherry picked from commit 20013e4e2bf1a5d5ce8535e07320dca034639286)
- URL: https://github.com/kamailio/kamailio/commit/60092cc36f8e1b0869d16b1e684cf3f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:11:28Z
sst: debug message when setting timeout avp
(cherry picked from commit 56ed5c028bd97837c7a9e0017a2599f09554211f)
- URL: https://github.com/kamailio/kamailio/commit/b150eacb841b1a7565b763767eb790f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:11:50Z
dialog: dmq operations under locked dlg table entry
- protect against races that could be due to rentransmissions or other
parallel processing cases
- related to GH #2224
(cherry picked from commit 8965ff07f2e9fa105fc56896eed9caf4b6faf261)
- URL: https://github.com/kamailio/kamailio/commit/bccfb5ad45bc58cc77f2a64efc60942…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:12:35Z
dialog: exposed functions to search dlg and lock table entry
(cherry picked from commit 125031daeade9dab5c36b912dda65700d95c4c6a)
- URL: https://github.com/kamailio/kamailio/commit/843138e4455c6c0aa0e74b2e3f0d008…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:12:40Z
dialog: functions to search dialog by uuid and keep table entry locked
- helper macros to lock/unlock table entry with dlg cell structure
(cherry picked from commit a4f8c0291bfd32752c0c2c323f618c6ac0c91d53)
- URL: https://github.com/kamailio/kamailio/commit/8149fc45b6188a129440e7ac2754899…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:15:31Z
cfgutils: use same type for local variable in rpc gflags functions
(cherry picked from commit 5411eda4e44a487479d00433583a68a328aca9a3)
- URL: https://github.com/kamailio/kamailio/commit/0cbdd5e676aa9f01932182c6b70030a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:16:37Z
lib/srdb1/schema: removed kamailio-extensions.xml file
- file didn't have any content itself, tried to include an inexistent
extra.xml, which generated an warning for 'make dbschema'
(cherry picked from commit 367a865e7f0c9cd67fda9176add1ca3c0dad2d46)
- URL: https://github.com/kamailio/kamailio/commit/181c8e3dc6b2aca5eb66f91a7db3c3a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:18:27Z
msilo: docs - fixed position of parameter and whitespacing
- parameter position was broken at the end of file
(cherry picked from commit 1e3d7d319d07cd022c374ed2698fb905dacf50b7)
- URL: https://github.com/kamailio/kamailio/commit/895df41d33fdec3f090da59a210847d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:19:41Z
app_sqlang: docs - fix for rpc command name
(cherry picked from commit a072e170c07370f97716ae719abb35c508d98564)
- URL: https://github.com/kamailio/kamailio/commit/47a8be938c39ffb335a36bfa34a9d37…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-05-13T12:19:54Z
misc: kemi examples, add missing kemix module
change introduced at 01ac570c2fbda800d1e00cd50305739cf0596ebf
(cherry picked from commit e123971726a8d18627091870086ee7d244e9802f)
- URL: https://github.com/kamailio/kamailio/commit/5f5372e3d94db873d810d15154b5d96…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-05-13T12:19:59Z
misc: examples kemi, don't fail if optional modules are not loaded
kamailio-basic-kemi.cfg has some define instructions that can be
removed ( WITH_MYSQL, WITH_AUTH, ...)
So lets make sure that modules are there in the lua script before
using the defined routes.
(cherry picked from commit 661fc0193da9e559e22b83b006db3e23345c092c)
- URL: https://github.com/kamailio/kamailio/commit/20d7188d253020e82eb6d880c0cc516…
Author: Sebastian Kemper <sebastian_ml(a)gmx.net>
Date: 2020-05-13T12:20:35Z
app_python3: update Python3 detection mechanism
This commit
- removes the python calls whose output is never actually used.
- changes the include discovery to use python3(.x)-config. This is
preferable because it also works for cross-compiling. Calling
python3(.x) directly will always provide host flags, which for
cross-compiling is not feasible.
- updates LDFLAGS discovery to also work with >= Python 3.8. To
achieve this python3(.x)-config is first run with the argument
"--embed". If this does not succeed (exit status 1)
python3(.x)-config is run again without "--embed". This is the
method suggested by Python upstream to provide backwards
compatibility. See [1] for more details.
[1] https://docs.python.org/3/whatsnew/3.8.html
Signed-off-by: Sebastian Kemper <sebastian_ml(a)gmx.net>
(cherry picked from commit 05af36d34aa2668780aa111878206c6797fa98b0)
- URL: https://github.com/kamailio/kamailio/commit/a6fc2a5f726d494e28ff171db83a136…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:21:57Z
app_python3: Makefile - suppress warning if --embed is not supported by python3-config
(cherry picked from commit 392688fc756a97f65c2433bb6af7adedca4e0abf)
- URL: https://github.com/kamailio/kamailio/commit/59eb7e9efcef2d22d32cf8a9ac57c51…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2020-05-13T12:23:11Z
pkg/kamailio: fixed python3 deps for RHEL 6
(cherry picked from commit 5f31a56acd25f892e6275e6ac786677f2eb2be0c)
- URL: https://github.com/kamailio/kamailio/commit/e031f66a6cd431745ec9b58e6b22b9b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:23:29Z
misc/examples/kemi: make reply code integer everywhere
(cherry picked from commit 28be94ea97216ba7ac1420130cc01ebda167c5d8)
- URL: https://github.com/kamailio/kamailio/commit/2c69d0eb1ce460c36adb540676035f3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:35:44Z
core: parser - removed temporarily remark for module reserved internal flags
(cherry picked from commit 8801ee89856d4a37709869a5c01dfa66988b8f5a)
- URL: https://github.com/kamailio/kamailio/commit/0ec5987ffedcee6dfe00a5fe1c233cd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:38:22Z
siptrace: docs - fix siptrace control command example in the overview
(cherry picked from commit 768b0b2c1559211dbc3c5b2e01a25bac8fd2540a)
- URL: https://github.com/kamailio/kamailio/commit/9b2b3679129c2fe1e9fe0ca4124308f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:45:10Z
rr: docs - updated ids for xref linkend
(cherry picked from commit 62a2553043f81cd47f611d2829181604488a4b0c)
- URL: https://github.com/kamailio/kamailio/commit/6dba53cbcae5ad5f2b796cd81383973…
Author: fredposner <fred(a)qxork.com>
Date: 2020-05-13T12:45:36Z
tls: fix typo in documentation
- params.xml: replace "private" with "private_key"
(cherry picked from commit ad91985849e46beee757d48ee9041b81bef9bd81)
- URL: https://github.com/kamailio/kamailio/commit/8bbe86b45d80cbb0be96979b0634db3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:54:39Z
core: data lump - updated comments and param names reflect better the purpose
- coherent whitespacing
(cherry picked from commit 36d55b1fca14eb1a055dedac2e3cdb81b48c3a22)
- URL: https://github.com/kamailio/kamailio/commit/7c237acb1f5f7b4ddde21d8f3700d44…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:55:16Z
nathelper: new parameter nat_addr_mode
- if set to 0, default private net addresses are checked by
nat_uac_test()
- if set to 1, other reserved net addresses are checked by
nat_uac_test()
- default 1 (reserved addresses are considered not routable)
- related at GH #2277
(cherry picked from commit a10e7652f24bc7ed8e74ff27d16da5d77689b6ac)
- URL: https://github.com/kamailio/kamailio/commit/d3a617a3bf81e9665d6d6da23697038…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:55:21Z
nathelper: docs for nat_addr_mode parameter
(cherry picked from commit 9721922e2e47f3e8403bc540ecd73b55f41d5d91)
- URL: https://github.com/kamailio/kamailio/commit/094719a56211e826cb0b26ef5ac7cff…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:55:32Z
nathelper: docs - fix ending tags issues introduced with previous commit
(cherry picked from commit 288f1f17cb36cd69ea2daed7afcaa859ccc72d58)
- URL: https://github.com/kamailio/kamailio/commit/9c14f4bca395a0fbd1cc3b62d0c6651…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:56:15Z
tm: do not return if kemi callback execution fails for t_continue()
- have same behaviour as with route blocks
(cherry picked from commit 2161f0cc316af0e1153b01f327d0e7c50523060c)
- URL: https://github.com/kamailio/kamailio/commit/1b9fb8a42d9b1f6e66e403af494ecaf…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:57:53Z
redis: init variables to get rid of compile warnings
- GH #2298
(cherry picked from commit f1de08eef86dc2cd98509c90fa8b28212d47ca37)
- URL: https://github.com/kamailio/kamailio/commit/ed089ab7a65b268e0b519ab3ebd889f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T12:58:10Z
app_python: use -fno-strict-aliasing for gcc
- python2 is known for not confirming strict aliasing
- it is EoL and likely not going to be fixed
- GH #2298
(cherry picked from commit 3366bf4f3746285d9dc29e8a2461f53983f0acf0)
- URL: https://github.com/kamailio/kamailio/commit/23abc1faa014e4a6ef3cb3bca64a33e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T13:07:06Z
sipdump: safety check for local socket pointer
- use generic address is not set
(cherry picked from commit 3e969a5b4d9a75d082f7d59b0fa1dc6362391675)
- URL: https://github.com/kamailio/kamailio/commit/cd6a3035c1fca7783b9996829fe2c89…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T13:07:18Z
core: safer truncation of hostname using memcpy
(cherry picked from commit aac577a4655ebf09d5cbef3e1a49f72d25ea57d7)
- URL: https://github.com/kamailio/kamailio/commit/e00f0b567a1f1891fe23bf2a21b1c85…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-05-13T13:07:41Z
cfgt: fix implicit declaration of 'strcasestr'
> cfgt_int.c: In function 'cfgt_msgout':
> cfgt_int.c:863:21: warning: implicit declaration of function 'strcasestr'; did you mean 'strcasecmp'? [-Wimplicit-function-declaration]
> 863 | if(buf->len > 7 && strcasestr(buf->s, "OPTIONS")) {
> | ^~~~~~~~~~
> | strcasecmp
(cherry picked from commit 361542a953ceaab1894f790e21eecf74008b749a)
- URL: https://github.com/kamailio/kamailio/commit/79bc074ec4bb1c9b8d008104526827e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T13:08:13Z
regex: leave enough space in buffers for parenthesis and -ending
(cherry picked from commit 9cae069832c8f37ebf9e686b3fbcab5d63652755)
- URL: https://github.com/kamailio/kamailio/commit/582d4c9cca243843c45b736f69a480a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-13T13:09:44Z
core: explicit cast to (void*) for %p format printing
- c standard required that for a defined value and in some cases the
code analysers complain, especially when reading the value via
socket/file descriptor
(cherry picked from commit 730f65c06d0b8436e4a9cd0c1a62d2433819dc45)
- URL: https://github.com/kamailio/kamailio/commit/ef6a2a7eded3ce5eaf2a881b5a1f72b…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-05-13T13:17:49Z
Makefile.defs: version set to 5.2.7
- URL: https://github.com/kamailio/kamailio/commit/2bfdc008a5ec6bafa0746854e057654…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-05-13T13:18:06Z
pkg: update spec files for obs and alpine to 5.2.7
[View Less]
Hello,
Just a quick note - I get the following warnings on app_sqlang with gcc 9.3.0 (Ubuntu 20.04):
henning@static:~/repositories/kamailio/src/modules/app_sqlang$ make
CC (gcc) [M app_sqlang.so] app_sqlang_api.o
CC (gcc) [M app_sqlang.so] app_sqlang_kemi_export.o
CC (gcc) [M app_sqlang.so] app_sqlang_mod.o
make --no-print-directory -C ./squirrel/squirrel SQMARCH64="-m64" CC_EXTRA_FLAGS="-fPIC" \
OUT="../../libsquirrel.a" sq64
gcc -O2 -m64 -…
[View More]D_SQ64 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c sqapi.cpp sqbaselib.cpp sqfuncstate.cpp sqdebug.cpp sqlexer.cpp sqobject.cpp sqcompiler.cpp sqstate.cpp sqtable.cpp sqmem.cpp sqvm.cpp sqclass.cpp -I../include -I. -Iinclude -fPIC
In file included from sqobject.h:5,
from sqpcheader.h:17,
from sqapi.cpp:4:
squtils.h: In instantiation of 'void sqvector<T>::remove(SQUnsignedInteger) [with T = SQObjectPtr; SQUnsignedInteger = long long unsigned int]':
sqarray.h:83:27: required from here
squtils.h:97:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'struct SQObjectPtr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
97 | memmove(&_vals[idx], &_vals[idx+1], sizeof(T) * (_size - idx - 1));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sqpcheader.h:17,
from sqapi.cpp:4:
sqobject.h:205:8: note: 'struct SQObjectPtr' declared here
205 | struct SQObjectPtr : public SQObject
| ^~~~~~~~~~~
In file included from sqobject.h:5,
from sqpcheader.h:17,
from sqbaselib.cpp:4:
squtils.h: In instantiation of 'void sqvector<T>::remove(SQUnsignedInteger) [with T = SQObjectPtr; SQUnsignedInteger = long long unsigned int]':
sqarray.h:83:27: required from here
squtils.h:97:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'struct SQObjectPtr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
97 | memmove(&_vals[idx], &_vals[idx+1], sizeof(T) * (_size - idx - 1));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sqpcheader.h:17,
from sqbaselib.cpp:4:
sqobject.h:205:8: note: 'struct SQObjectPtr' declared here
205 | struct SQObjectPtr : public SQObject
| ^~~~~~~~~~~
In file included from sqobject.h:5,
from sqpcheader.h:17,
from sqobject.cpp:4:
squtils.h: In instantiation of 'void sqvector<T>::remove(SQUnsignedInteger) [with T = SQObjectPtr; SQUnsignedInteger = long long unsigned int]':
sqarray.h:83:27: required from here
squtils.h:97:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'struct SQObjectPtr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
97 | memmove(&_vals[idx], &_vals[idx+1], sizeof(T) * (_size - idx - 1));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sqpcheader.h:17,
from sqobject.cpp:4:
sqobject.h:205:8: note: 'struct SQObjectPtr' declared here
205 | struct SQObjectPtr : public SQObject
| ^~~~~~~~~~~
In file included from sqobject.h:5,
from sqpcheader.h:17,
from sqstate.cpp:4:
squtils.h: In instantiation of 'void sqvector<T>::remove(SQUnsignedInteger) [with T = SQObjectPtr; SQUnsignedInteger = long long unsigned int]':
sqarray.h:83:27: required from here
squtils.h:97:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'struct SQObjectPtr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
97 | memmove(&_vals[idx], &_vals[idx+1], sizeof(T) * (_size - idx - 1));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sqpcheader.h:17,
from sqstate.cpp:4:
sqobject.h:205:8: note: 'struct SQObjectPtr' declared here
205 | struct SQObjectPtr : public SQObject
| ^~~~~~~~~~~
In file included from sqobject.h:5,
from sqpcheader.h:17,
from sqvm.cpp:4:
squtils.h: In instantiation of 'void sqvector<T>::remove(SQUnsignedInteger) [with T = SQObjectPtr; SQUnsignedInteger = long long unsigned int]':
sqarray.h:83:27: required from here
squtils.h:97:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'struct SQObjectPtr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
97 | memmove(&_vals[idx], &_vals[idx+1], sizeof(T) * (_size - idx - 1));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sqpcheader.h:17,
from sqvm.cpp:4:
sqobject.h:205:8: note: 'struct SQObjectPtr' declared here
205 | struct SQObjectPtr : public SQObject
| ^~~~~~~~~~~
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://gilawa.com<https://gilawa.com/>
[View Less]
Module: kamailio
Branch: 5.2
Commit: 55ee4b0ec44b57612653188ea6394f269f47138b
URL: https://github.com/kamailio/kamailio/commit/55ee4b0ec44b57612653188ea6394f2…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-05-13T11:46:39+02:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/dispatcher/README
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]55ee4b0ec44b57612653188ea6394f2…
Patch: https://github.com/kamailio/kamailio/commit/55ee4b0ec44b57612653188ea6394f2…
---
diff --git a/src/modules/dispatcher/README b/src/modules/dispatcher/README
index f02bd970df..3f44f1fbd4 100644
--- a/src/modules/dispatcher/README
+++ b/src/modules/dispatcher/README
@@ -974,7 +974,9 @@ modparam("dispatcher", "ds_db_extra_attrs", "socket=socket;pref=prefix")
+ “8” - select destination sorted by priority attribute value
(serial forking ordered by priority).
+ “9” - use weight based load distribution. You have to set the
- attribute 'weight' per each address in destination set.
+ attribute 'weight' for each address (gateway) in destination
+ set. For more see the description of the 'weight' attribute in
+ the 'Special Attributes' section.
+ “10” - use call load distribution. You have to set the
attribute 'duid' (as an unique string id) per each address in
destination set. Also, you must set the parameter
[View Less]
Hello,
as discussed in the last development meeting, I am planning to release next week (likely on Wednesday 13th May) the next minor version out of branch 5.2, version 5.2.7.
Backports of fixed issues from git master will be integrated as usual. If you are aware of new issues which were not yet reported, let us know (by creating an issue on the tracker).
Cheers,
Henning
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://gilawa.com<https://gilawa.com/>
Module: kamailio
Branch: master
Commit: 90275e02faf75454026597c1e720487b5d845f79
URL: https://github.com/kamailio/kamailio/commit/90275e02faf75454026597c1e720487…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-05-12T14:16:12+02:00
modules: readme files regenerated - keepalive ... [skip ci]
---
Modified: src/modules/keepalive/README
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]90275e02faf75454026597c1e720487…
Patch: https://github.com/kamailio/kamailio/commit/90275e02faf75454026597c1e720487…
---
diff --git a/src/modules/keepalive/README b/src/modules/keepalive/README
index 4437803128..f69641e421 100644
--- a/src/modules/keepalive/README
+++ b/src/modules/keepalive/README
@@ -56,7 +56,7 @@ Yasin CANER
1. Available Functions
1.1. add_destination(uri, owner, flags, ping_interval,
- [callback, [user_attr]])
+ [statechanged_clb, response_clb, [user_attr]])
1.2. Examples
@@ -324,8 +324,8 @@ Chapter 2. Developer Guide
1. Available Functions
- 1.1. add_destination(uri, owner, flags, ping_interval, [callback,
- [user_attr]])
+ 1.1. add_destination(uri, owner, flags, ping_interval,
+ [statechanged_clb, response_clb, [user_attr]])
1.2. Examples
@@ -338,13 +338,13 @@ Chapter 2. Developer Guide
1. Available Functions
- 1.1. add_destination(uri, owner, flags, ping_interval, [callback,
- [user_attr]])
+ 1.1. add_destination(uri, owner, flags, ping_interval,
+ [statechanged_clb, response_clb, [user_attr]])
1.2. Examples
-1.1. add_destination(uri, owner, flags, ping_interval, [callback,
-[user_attr]])
+1.1. add_destination(uri, owner, flags, ping_interval, [statechanged_clb,
+response_clb, [user_attr]])
This function registers a new destination to monitor. Monitoring of the
destination starts as soon as it returns with success (0 value).
@@ -361,7 +361,7 @@ Chapter 2. Developer Guide
* flags (integer) - destination flags (unused for now, use 0 value)
* ping_interval (integer) - Pinging interval in seconds for this
destination
- * callback (ka_statechanged_f, optional) - callback function,
+ * statechanged_clb (ka_statechanged_f, optional) - callback function,
executed on destination's state change.
The callback function is of type void (*ka_statechanged_f)(str
*uri, int state, void *user_attr);. Use NULL to set no callback.
@@ -370,9 +370,17 @@ Chapter 2. Developer Guide
waiting first ping replies or timeout)
+ 1 - destination is UP
+ 2 - destination is DOWN
- * user_attr (void * pointer, optional) - If callback function is
- setup, this parameter will be forwarded to it, as last parameter.
- Use NULL to set no user_attr parameter.
+ * response_clb (ka_response_f, optional) - callback function,
+ executed on destination's response provided.
+ The callback function is of type void (*ka_response_f)(str *uri,
+ struct tmcb_params *ps, void *user_attr);. Use NULL to set no
+ callback.
+ ps is a pack structure with all params passed to callback function.
+ Defined in t_hooks.h
+ * user_attr (void * pointer, optional) - If any callback function is
+ setup, this parameter will be forwarded to it (or both callbacks in
+ both are defined), as last parameter. Use NULL to set no user_attr
+ parameter.
Returned values:
* 0 if ok
@@ -395,17 +403,18 @@ if (bind_keepalive( &ka_api ) != 0) {
}
...
...
-/* callback function */
-void my_callback(str uri, int state, void *user_attr) {
-
+/* callback function (on state changed) */
+void my_state_changed_clb(str uri, int state, void *user_attr) {
printf("%.*s new state is: %d\n", uri.len, uri.str, state)
}
-/* register a new destination */
-str dest = str_init("sip:192.168.10.21:5060");
-str owner = str_init("mymodule");
+/* callback function (on each response received) */
+void my_response_clb(str *uri, struct tmcb_params *ps, void *user_attr) {
+ printf("response [%d] from %.*s\n", ps->code, uri.len, uri.str)
+}
-if (ka_api.add_destination(dest, owner, 0, 60, my_callback, NULL) != 0) {
+if (ka_api.add_destination(dest, owner, 0, 60, my_state_changed_clb,
+ my_response_clb, NULL) != 0) {
LM_ERR("can't add destination\n");
goto error;
}
[View Less]
#### Pre-Submission Checklist
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [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)
- [x] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README …
[View More]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
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
Expose current state of keepalive monitor in rpc response so that the response can be parsed easlily and used to populate external dashboards
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2323
-- Commit Summary --
* keepalive: update rpc response
-- File Changes --
M src/modules/keepalive/keepalive_rpc.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2323.patchhttps://github.com/kamailio/kamailio/pull/2323.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/2323
[View Less]
#### 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)
- [x] 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
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature …
[View More](non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
- [x] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
This PR replicates sentinel logic added in initial redis connection (via cc8e621) into reconnection function.
This way, in case of loosing connection with Redis, Kamailio will be able to reconnect to redis asking to sentinel servers defined in modparams.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2319
-- Commit Summary --
* ndb_redis: add sentinel support to reconnection logic
-- File Changes --
M src/modules/ndb_redis/redis_client.c (84)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2319.patchhttps://github.com/kamailio/kamailio/pull/2319.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/2319
[View Less]
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, …
[View More]tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [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)
- [x] 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)
- [ ] New feature (non-breaking change which adds new functionality)
- [x] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
This change allows you to set a new callback for keepalive that will be executed each time it receives a response for an OPTIONS message.
This change is compatible (not breaking) with .cfg or kemi invocations, but it's breaking developers api.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2318
-- Commit Summary --
* keepalive: Added callback to run on each destination response.
* drouting: update to new keepalive interface, using new on response callback
-- File Changes --
M src/modules/drouting/drouting.c (2)
M src/modules/keepalive/api.h (3)
M src/modules/keepalive/doc/keepalive.xml (1)
M src/modules/keepalive/doc/keepalive_devel.xml (32)
M src/modules/keepalive/keepalive.h (7)
M src/modules/keepalive/keepalive_api.c (5)
M src/modules/keepalive/keepalive_core.c (3)
M src/modules/keepalive/keepalive_mod.c (6)
M src/modules/keepalive/keepalive_rpc.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2318.patchhttps://github.com/kamailio/kamailio/pull/2318.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/2318
[View Less]
Module: kamailio
Branch: master
Commit: 9700a8dae237758e162e509455bc3a62b19730f4
URL: https://github.com/kamailio/kamailio/commit/9700a8dae237758e162e509455bc3a6…
Author: Nacho Garcia Segovia <nacho.gs(a)zaleos.net>
Committer: Nacho Garcia Segovia <nacho.gs(a)zaleos.net>
Date: 2020-05-07T23:50:10+02:00
keepalive: Added callback to run on each destination response.
- This functionality it's just available when using api.h bindings. For exported functions no callback will be used, …
[View More]so this doesn't break cfg or rpc api.
- Modified add_destination function to provide this new callback as a parameter.
---
Modified: src/modules/keepalive/api.h
Modified: src/modules/keepalive/doc/keepalive.xml
Modified: src/modules/keepalive/doc/keepalive_devel.xml
Modified: src/modules/keepalive/keepalive.h
Modified: src/modules/keepalive/keepalive_api.c
Modified: src/modules/keepalive/keepalive_core.c
Modified: src/modules/keepalive/keepalive_mod.c
Modified: src/modules/keepalive/keepalive_rpc.c
---
Diff: https://github.com/kamailio/kamailio/commit/9700a8dae237758e162e509455bc3a6…
Patch: https://github.com/kamailio/kamailio/commit/9700a8dae237758e162e509455bc3a6…
[View Less]
Module: kamailio
Branch: master
Commit: 4d450116309d1a2e2b6aceb6fa16657a1e9f44fb
URL: https://github.com/kamailio/kamailio/commit/4d450116309d1a2e2b6aceb6fa16657…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-05-12T09:16:20+02:00
modules: readme files regenerated - tls ... [skip ci]
---
Modified: src/modules/tls/README
---
Diff: https://github.com/kamailio/kamailio/commit/4d450116309d1a2e2b6aceb6fa16657……
[View More]Patch: https://github.com/kamailio/kamailio/commit/4d450116309d1a2e2b6aceb6fa16657…
---
diff --git a/src/modules/tls/README b/src/modules/tls/README
index 04503393a2..81eb47590b 100644
--- a/src/modules/tls/README
+++ b/src/modules/tls/README
@@ -638,7 +638,7 @@ Place holder
use SSLv3 for anything which should be secure.
* SSLv2 - only SSLv2 connections, for old clients. Note: you
shouldn't use SSLv2 for anything which should be secure. Newer
- versions of libssl don't include support for it anymore.
+ versions of OpenSSL libraries don't include support for it anymore.
* SSLv23 - any of the SSLv2, SSLv3 and TLSv1 or newer methods will be
accepted.
From the OpenSSL manual: "A TLS/SSL connection established with
@@ -649,9 +649,9 @@ Place holder
TLSv1.2 and permits a fallback to SSLv3. A server will support
SSLv3, TLSv1, TLSv1.1 and TLSv1.2 protocols. This is the best
choice when compatibility is a concern."
- Note: For older libssl version, this option allows SSLv2, with
- hello messages done over SSLv2. You shouldn't use SSLv2 or SSLv3
- for anything which should be secure.
+ Note: For older OpenSSL library versions, this option allows SSLv2,
+ with hello messages done over SSLv2. You shouldn't use SSLv2 or
+ SSLv3 for anything which should be secure.
If RFC 3261 conformance is desired, at least TLSv1 must be used. For
compatibility with older clients SSLv23 is the option, but again, be
@@ -1220,7 +1220,7 @@ modparam("tls", "session_cache", 1)
The value for session ID context, making sense when session caching is
enabled.
- By default TLS session_id is "sip-router-tls-3.1".
+ By default TLS session_id is "kamailio-tls-5.x.y".
Example 1.38. Set session_id parameter
...
@@ -1477,7 +1477,7 @@ modparam("tls", "private_key", "/engine:my_HSM_key_label")
modparam("tls", "engine", "pkcs11")
modparam("tls", "private_key", "/engine:pkcs11:token=MYTOKEN;object=MYKEYLABEL")
-modparam("tls", "engine_conf", "/usr/local/etc/kamailio/openssl.cnf")
+modparam("tls", "engine_config", "/usr/local/etc/kamailio/openssl.cnf")
modparam("tls", "engine_algorithms", "ALL")
...
[View Less]
Module: kamailio
Branch: master
Commit: ff887fe5d0d7cec7fc0640a54c80b322d421ed36
URL: https://github.com/kamailio/kamailio/commit/ff887fe5d0d7cec7fc0640a54c80b32…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2020-05-12T09:08:33+02:00
TLS: Try to always refer to OpenSSL as "OpenSSL" instead of other names
---
Modified: src/modules/tls/doc/params.xml
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]ff887fe5d0d7cec7fc0640a54c80b32…
Patch: https://github.com/kamailio/kamailio/commit/ff887fe5d0d7cec7fc0640a54c80b32…
---
diff --git a/src/modules/tls/doc/params.xml b/src/modules/tls/doc/params.xml
index 8cc7f2f7b9..f23aa921f0 100644
--- a/src/modules/tls/doc/params.xml
+++ b/src/modules/tls/doc/params.xml
@@ -65,7 +65,7 @@
<para>
<emphasis>SSLv2</emphasis> - only SSLv2 connections, for old clients.
Note: you shouldn't use SSLv2 for anything which should be secure.
- Newer versions of libssl don't include support for it anymore.
+ Newer versions of OpenSSL libraries don't include support for it anymore.
</para>
</listitem>
<listitem>
@@ -84,7 +84,7 @@
is a concern."
</para>
<para>
- Note: For older libssl version, this option allows SSLv2, with hello
+ Note: For older OpenSSL library versions, this option allows SSLv2, with hello
messages done over SSLv2. You shouldn't use SSLv2 or SSLv3 for anything
which should be secure.
</para>
[View Less]
Module: kamailio
Branch: master
Commit: 70bcb5f88dc87e27940cc71e293d1c68a7717af6
URL: https://github.com/kamailio/kamailio/commit/70bcb5f88dc87e27940cc71e293d1c6…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2020-05-12T09:07:02+02:00
TLS: Fix TLS session id example to match source code
---
Modified: src/modules/tls/doc/params.xml
---
Diff: https://github.com/kamailio/kamailio/commit/70bcb5f88dc87e27940cc71e293d1c6…
Patch: …
[View More]https://github.com/kamailio/kamailio/commit/70bcb5f88dc87e27940cc71e293d1c6…
---
diff --git a/src/modules/tls/doc/params.xml b/src/modules/tls/doc/params.xml
index 9c89ae8be9..8cc7f2f7b9 100644
--- a/src/modules/tls/doc/params.xml
+++ b/src/modules/tls/doc/params.xml
@@ -982,7 +982,7 @@ modparam("tls", "session_cache", 1)
The value for session ID context, making sense when session caching is enabled.
</para>
<para>
- By default TLS session_id is "sip-router-tls-3.1".
+ By default TLS session_id is "kamailio-tls-5.x.y".
</para>
<example>
<title>Set <varname>session_id</varname> parameter</title>
[View Less]
Hi, I am implementing a sip proxy with kamailio and multiple asterisk servers, when kamailio send the OPTIONS asterisk don´t reply, and i see with sngrep tool that in the asterisk servers the SIP message OPTIONS arrives, but has no reply from asterisk, and enabling the sip debug nothing occurs, but the OPTIONS message between asterisk servers is all ok.
On kamailio logs get:
dispatcher [dispatch.c:3159]: ds_options_callback(): OPTIONS-Request was finished with code 408 (to sip:172.20.20.4, …
[View More]group 1)
The SIP traffic arrives the asterisk servers, but asterisk don´t reply the message, (I know this because i can see it with the sngrep tool, because the sip debug on asterisk doesn't show it) . However when the message is from another asterisk all is ok.
Sip kamailio OPTIONS message on asterisk
```
OPTIONS sip:172.20.20.3 SIP/2.0
Via: SIP/2.0/UDP 172.16.10.195;branch=z9hG4bKef0b.b1358
To: <sip:172.20.20.3>
From: <sip:kamailio@172.20.20.6>;tag=3393f0703fb0ccaca7
09ff37de39f5-b7044ca5
CSeq: 10 OPTIONS
Call-ID: 791b966c5d00cd60-24281(a)127.0.0.1
Max-Forwards: 70
Content-Length: 0
User-Agent: kamailio (5.3.4 (x86_64/linux))
```
### Additional Information
```
version: kamailio 5.3.4 (x86_64/linux) 117ff9
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, 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, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 117ff9
compiled on 13:37:37 May 6 2020 with gcc 8.2.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/2320
[View Less]
- URL: https://github.com/kamailio/kamailio/commit/2012b6ff81c87be6c05cdf25f4f2a9b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:28+02:00
xmlops: Makefile - try to use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit 64d37971d2d3fbd87176fe71ae19adca7f47a6ea)
- URL: https://github.com/kamailio/kamailio/commit/c81c26637bd9a4869cb446c6f70f21c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-…
[View More]11T14:29:29+02:00
lib/ims: Makefile - try to use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit 58deac2e7fd62afca409b17903deb951493b213a)
- URL: https://github.com/kamailio/kamailio/commit/9708c4b553692747603923fa8562f37…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:30+02:00
cdp: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit 2749962b8354be1731ab68a0ae4aa0fac4f944e1)
- URL: https://github.com/kamailio/kamailio/commit/863882cc2b4980a3215bbb5310720fb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:31+02:00
cplc: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit f05a46dc79de45c6cb958b845b9f2d85452c4f37)
- URL: https://github.com/kamailio/kamailio/commit/c3ec851cae8609660372b28f6c4eba1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:31+02:00
ims_auth: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit 4d3496fb82df1d249a78365e0c50b4ec13989261)
- URL: https://github.com/kamailio/kamailio/commit/457d46778bd8b88ffb319779cdc3b96…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:32+02:00
ims_icscf: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit 80f2eb33a967ede3e70fef572dc9b42172ad067c)
- URL: https://github.com/kamailio/kamailio/commit/dad9ce4a79efa93bb0541bc610ab406…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:33+02:00
ims_isc: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit 71e67531194aa867b8f3f32b72d07e1bd4ad7dff)
- URL: https://github.com/kamailio/kamailio/commit/d2076d22d30f1ad71a69c178d6f5ff4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:34+02:00
ims_registrar_pcscf: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit 29573bbdb09412c9cbfe839f0c80b7dd7fe77804)
- URL: https://github.com/kamailio/kamailio/commit/44442227e6477f52ed06287827ac818…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:34+02:00
ims_registrar_scscf: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit ff92622c3b4c6224f75318ba9e39c9b4389bff1e)
- URL: https://github.com/kamailio/kamailio/commit/65228082e4cddec5377632e50fbf09a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:35+02:00
lost: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit 8d7c0f80083351de98b99d2505170b740974080a)
- URL: https://github.com/kamailio/kamailio/commit/9e01d1bc26443b7fe95ce8bc894ba5b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:36+02:00
presence_conference: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit 8e9e1fdeacc4c1b2b0cd67f1b36d73737dacd015)
- URL: https://github.com/kamailio/kamailio/commit/f05809a2a1aaf2e599646f18ffd42bf…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:37+02:00
pua: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit 4f43047172260e1a524700a866693f99ea11383b)
- URL: https://github.com/kamailio/kamailio/commit/016747536accc3fd32654b0197735da…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:38+02:00
pua_bla: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit e00ce6016afd5c0fba084a19a45fb13353e7f6f4)
- URL: https://github.com/kamailio/kamailio/commit/74b7f6bca2e286a151a093d5b1f4d26…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:38+02:00
pua_dialoginfo: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit b4842e81e3aa861739c996ff795b6d7261202b66)
- URL: https://github.com/kamailio/kamailio/commit/ac699321c417232a0444d84b7e0c147…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:39+02:00
pua_reginfo: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit 7f6648a8586fdfd5a1fdba05556333095bc25777)
- URL: https://github.com/kamailio/kamailio/commit/ef5a8bcc8bc986e1658dc863f4eaecf…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:40+02:00
pua_usrloc: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit 20d9453cd3259e8afa1de92a7dba1d25f5f43fe4)
- URL: https://github.com/kamailio/kamailio/commit/31097600fa8ee6867e6c6dccdb95370…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:41+02:00
pua_xmpp: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit d40a924bd698ddf365b4db52cba2ab45f7d7a6e2)
- URL: https://github.com/kamailio/kamailio/commit/40c925ae5cd7726d5730486999671cd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:41+02:00
rls: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit fbfe21f54c7fd845bf9c99c4091980b1ee4d61d5)
- URL: https://github.com/kamailio/kamailio/commit/5cd1c93c452dc37ee96b2cf9959ac3c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:42+02:00
xcap_server: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit 169ccce5e3cb302352b1e4d5ac0a0dc58eb552cb)
- URL: https://github.com/kamailio/kamailio/commit/81eb48d0627e9b677114fdce8e0890b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:43+02:00
xhttp_pi: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit fe173b2af121b2d6388fea3632037a0ea2999988)
- URL: https://github.com/kamailio/kamailio/commit/a91e7fdc9128b59c2084cab1a0e7c0e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-11T14:29:44+02:00
xmlrpc: Makefile - use pkg-config if xml2-config is not found
- GH #2199
(cherry picked from commit 994a8dfc070d84b5dad28fa873d8759280c910f2)
[View Less]
>From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=949521:
> your package is using `xml2-config` to detect and use libxml2. I'm
removing that script, so please update your build system to use
pkg-config instead.
>
>Additionally, your package is not failing to build, so it's creating
binaries that are not linked against libxml2 anymore:
--
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/2199
Module: kamailio
Branch: master
Commit: e996aec353972e7f0a4cb5e2a6156e2eee478954
URL: https://github.com/kamailio/kamailio/commit/e996aec353972e7f0a4cb5e2a6156e2…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-05-07T20:46:12+02:00
modules: readme files regenerated - siptrace ... [skip ci]
---
Modified: src/modules/siptrace/README
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]e996aec353972e7f0a4cb5e2a6156e2…
Patch: https://github.com/kamailio/kamailio/commit/e996aec353972e7f0a4cb5e2a6156e2…
---
diff --git a/src/modules/siptrace/README b/src/modules/siptrace/README
index 89a26c5948..9006415a23 100644
--- a/src/modules/siptrace/README
+++ b/src/modules/siptrace/README
@@ -444,8 +444,8 @@ modparam("siptrace", "trace_db_mode", 1)
Kept for backward compatibily, use trace_db_mode instead.
- If set to non-zero, ot sets trace_db_mode paremter to 1 when the module
- is initialized.
+ If set to non-zero, ot sets trace_db_mode parameter to 1 when the
+ module is initialized.
Default value is 0.
[View Less]
Module: kamailio
Branch: master
Commit: 1d555161195ebccd35534f8533eacdcbba7020fc
URL: https://github.com/kamailio/kamailio/commit/1d555161195ebccd35534f8533eacdc…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-05-07T18:45:04Z
tm: small spelling fix in comments
---
Modified: src/modules/tm/rpc_uac.c
---
Diff: https://github.com/kamailio/kamailio/commit/1d555161195ebccd35534f8533eacdc…
Patch: https://github.com/…
[View More]kamailio/kamailio/commit/1d555161195ebccd35534f8533eacdc…
---
diff --git a/src/modules/tm/rpc_uac.c b/src/modules/tm/rpc_uac.c
index 7600237398..c76fbb887a 100644
--- a/src/modules/tm/rpc_uac.c
+++ b/src/modules/tm/rpc_uac.c
@@ -408,7 +408,7 @@ static void rpc_uac_callback(struct cell* t, int type, struct tmcb_params* ps)
* If all the parameters are ok it will call t_uac() using them.
* Note: this version will wait for the transaction final reply
* only if reply_wait is set to 1. Otherwise the rpc reply will be sent
- * immediately and it will be success if the paremters were ok and t_uac did
+ * immediately and it will be success if the parameters were ok and t_uac did
* not report any error.
* Note: reply waiting (reply_wait==1) is not yet supported.
* @param rpc - rpc handle
[View Less]
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, …
[View More]tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [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)
- [x] 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
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2316
-- Commit Summary --
* ims_usrloc_scscf: extend and fix log messages
-- File Changes --
M src/modules/ims_usrloc_scscf/impurecord.c (22)
M src/modules/ims_usrloc_scscf/subscribe.c (4)
M src/modules/ims_usrloc_scscf/udomain.c (11)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2316.patchhttps://github.com/kamailio/kamailio/pull/2316.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/2316
[View Less]
- pass event type as parameter in notify_subscribers()
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is …
[View More]contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [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)
- [x] 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
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2296
-- Commit Summary --
* ims_registrar_scscf: pass event type as parameter
-- File Changes --
M src/modules/ims_registrar_scscf/cxdx_callbacks.c (4)
M src/modules/ims_registrar_scscf/reg_rpc.c (2)
M src/modules/ims_registrar_scscf/registrar_notify.c (6)
M src/modules/ims_registrar_scscf/registrar_notify.h (2)
M src/modules/ims_registrar_scscf/save.c (6)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2296.patchhttps://github.com/kamailio/kamailio/pull/2296.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/2296
[View Less]
- Generate AoR in lookup() from parsed uri user and
host. Skipping all user's and host's parameters.
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with …
[View More]'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [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)
- [x] 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
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2292
-- Commit Summary --
* ims_registrar_scscf: fix aor generation in lookup()
-- File Changes --
M src/modules/ims_registrar_scscf/lookup.c (55)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2292.patchhttps://github.com/kamailio/kamailio/pull/2292.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/2292
[View Less]
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual …
[View More]modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] 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
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [x] Related to issue #2300
#### Description
from https://github.com/redis/hiredis#using-replies
> The standard replies that redisCommand are of the type redisReply. The type field in the redisReply should be used to test what kind of reply was received:
>
> - REDIS_REPLY_STATUS:
> The command replied with a status reply. The status string can be accessed using reply->str. The length of this string can be accessed using reply->len.
>
> - REDIS_REPLY_ERROR:
> The command replied with an error. The error string can be accessed identical to REDIS_REPLY_STATUS.
adding checks for the reply type to detect command errors
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2314
-- Commit Summary --
* ndb_redis: redis_cmd() check reply type to detect command errors
-- File Changes --
M src/modules/ndb_redis/redis_client.c (13)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2314.patchhttps://github.com/kamailio/kamailio/pull/2314.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/2314
[View Less]
- This functionality it's just available when using api.h bindings. For exported functions current value ka_ping_interval is used.
- Modified add_destination function to provide this new parameter.
- Now we have one timer per destination, instead of multiple, so we don't need to iterate over all destinations. Timers are cleaned when destinations are removed.
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, …
[View More]read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [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)
- [x] 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)
- [ ] New feature (non-breaking change which adds new functionality)
- [x] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
With this code, you can have a different pinging timeout for each destination, instead of the fixed (default 30 seconds) one.
This change is compatible (not breaking) with .cfg or kemi invocations, but it's breaking developers api.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2313
-- Commit Summary --
* keepalive: custom pinging interval per destination
-- File Changes --
M src/modules/keepalive/api.h (2)
M src/modules/keepalive/doc/keepalive.xml (3)
M src/modules/keepalive/doc/keepalive_devel.xml (9)
M src/modules/keepalive/keepalive.h (9)
M src/modules/keepalive/keepalive_api.c (23)
M src/modules/keepalive/keepalive_core.c (46)
M src/modules/keepalive/keepalive_mod.c (12)
M src/modules/keepalive/keepalive_rpc.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2313.patchhttps://github.com/kamailio/kamailio/pull/2313.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/2313
[View Less]
Module: kamailio
Branch: master
Commit: 4cebb16b536c35ec74ecbdf595c5c6dbafe5afa1
URL: https://github.com/kamailio/kamailio/commit/4cebb16b536c35ec74ecbdf595c5c6d…
Author: Nacho Garcia Segovia <nacho.gs(a)zaleos.net>
Committer: Nacho Garcia Segovia <nacho.gs(a)zaleos.net>
Date: 2020-05-06T23:10:40+02:00
keepalive: custom pinging interval per destination
- This functionality it's just available when using api.h bindings. For exported functions current value ka_ping_interval is used.…
[View More]
- Modified add_destination function to provide this new parameter.
- Now we have one timer per destination, instead of multiple, so we don't need to iterate over all destinations. Timers are cleaned when destinations are removed.
---
Modified: src/modules/keepalive/api.h
Modified: src/modules/keepalive/doc/keepalive.xml
Modified: src/modules/keepalive/doc/keepalive_devel.xml
Modified: src/modules/keepalive/keepalive.h
Modified: src/modules/keepalive/keepalive_api.c
Modified: src/modules/keepalive/keepalive_core.c
Modified: src/modules/keepalive/keepalive_mod.c
Modified: src/modules/keepalive/keepalive_rpc.c
---
Diff: https://github.com/kamailio/kamailio/commit/4cebb16b536c35ec74ecbdf595c5c6d…
Patch: https://github.com/kamailio/kamailio/commit/4cebb16b536c35ec74ecbdf595c5c6d…
[View Less]
Module: kamailio
Branch: 5.3
Commit: ac1b7f30b4cdc6d48d77f19421822300bcaa34be
URL: https://github.com/kamailio/kamailio/commit/ac1b7f30b4cdc6d48d77f1942182230…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-07T08:20:53+02:00
pua: use file name specific include guard
(cherry picked from commit 076649793bfdbdc4f03f96961f23997c87ce4268)
---
Modified: src/modules/pua/hash.h
Modified: src/modules/pua/pua.…
[View More]h
---
Diff: https://github.com/kamailio/kamailio/commit/ac1b7f30b4cdc6d48d77f1942182230…
Patch: https://github.com/kamailio/kamailio/commit/ac1b7f30b4cdc6d48d77f1942182230…
---
diff --git a/src/modules/pua/hash.h b/src/modules/pua/hash.h
index cc73d3e761..454e4bb853 100644
--- a/src/modules/pua/hash.h
+++ b/src/modules/pua/hash.h
@@ -15,8 +15,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
diff --git a/src/modules/pua/pua.h b/src/modules/pua/pua.h
index 57cc379ebe..908f5b0cb3 100644
--- a/src/modules/pua/pua.h
+++ b/src/modules/pua/pua.h
@@ -15,13 +15,13 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef PUBLISH_H
-#define PUBLISH_H
+#ifndef _PUA_H_
+#define _PUA_H_
#include "../../core/str.h"
#include "../../lib/srdb1/db.h"
[View Less]
I've searched, but I cannot find anything recent about this.
My kamailio 5.0.8 proxy sends an INVITE downstream over UDP and gets
an ICMP port-unreachable response from the UAS.
Apparently ignoring this, it re-transmits the INVITEs and eventually
times out and sends to the next host (from the SRV lookup).
According to RFC 3261 (https://tools.ietf.org/html/rfc3261#section-8.1.3.1),
If a fatal transport error is reported by the transport layer
(generally, due to fatal ICMP errors in …
[View More]UDP or connection failures in
TCP), the condition MUST be treated as a 503 (Service Unavailable)
status code.
Does kamailio support handling ICMP responses to INVITEs (and
therefore either failing over immediately, or sending 503 upstream
immediately)?
I don't know for sure the "correct" behavior because the RFC3261 is so
old and because ICMP responses are limited in size and therefore can't
guarantee to uniquely identify the transactions that caused them.
[View Less]
Module: kamailio
Branch: master
Commit: 076649793bfdbdc4f03f96961f23997c87ce4268
URL: https://github.com/kamailio/kamailio/commit/076649793bfdbdc4f03f96961f23997…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-06T17:15:36+02:00
pua: use file name specific include guard
---
Modified: src/modules/pua/hash.h
Modified: src/modules/pua/pua.h
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]076649793bfdbdc4f03f96961f23997…
Patch: https://github.com/kamailio/kamailio/commit/076649793bfdbdc4f03f96961f23997…
---
diff --git a/src/modules/pua/hash.h b/src/modules/pua/hash.h
index cc73d3e761..454e4bb853 100644
--- a/src/modules/pua/hash.h
+++ b/src/modules/pua/hash.h
@@ -15,8 +15,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
diff --git a/src/modules/pua/pua.h b/src/modules/pua/pua.h
index 57cc379ebe..908f5b0cb3 100644
--- a/src/modules/pua/pua.h
+++ b/src/modules/pua/pua.h
@@ -15,13 +15,13 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef PUBLISH_H
-#define PUBLISH_H
+#ifndef _PUA_H_
+#define _PUA_H_
#include "../../core/str.h"
#include "../../lib/srdb1/db.h"
[View Less]
Hello,
Kamailio SIP Server v5.3.4 stable release is out.
This is a maintenance release of the latest stable branch, 5.3, that
includes fixes since the release of v5.3.3. There is no change to
database schema or configuration language structure that you have to do
on previous installations of v5.3.x. Deployments running previous v5.3.x
versions are strongly recommended to be upgraded to v5.3.4.
For more details about version 5.3.4 (including links and guidelines to
download the tarball or …
[View More]from GIT repository), visit:
* https://www.kamailio.org/w/2020/05/kamailio-v5-3-4-released/
RPM, Debian/Ubuntu packages will be available soon as well.
Many thanks to all contributing and using Kamailio!
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
[View Less]
Module: kamailio
Branch: 5.3
Commit: 4322479f914cc4a256000c1dae44129939d4dd10
URL: https://github.com/kamailio/kamailio/commit/4322479f914cc4a256000c1dae44129…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-05-06T12:31:52+02:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/htable/README
---
Diff: https://github.com/kamailio/kamailio/commit/4322479f914cc4a256000c1dae44129……
[View More]
Patch: https://github.com/kamailio/kamailio/commit/4322479f914cc4a256000c1dae44129…
---
diff --git a/src/modules/htable/README b/src/modules/htable/README
index 78b7547085..5acb910b23 100644
--- a/src/modules/htable/README
+++ b/src/modules/htable/README
@@ -442,11 +442,17 @@ $ kamcmd htable.dump htable
configuration file.
* htname - string specifying the name of the hash table. This string
is used by $sht(...) to refer to the hash table.
- * size - number specifying the size of hash table. Larger value means
- less collisions. The number of entries (aka slots or buckets) in
- the table is 2^size. The possible range for this value is from 2 to
- 31, smaller or larger values will be increased to 3 (8 slots) or
- decreased to 14 (16384 slots).
+ * size - number to control how many slots (buckets) to create for the
+ hash table. Larger value means more slots with higher probability
+ for less collisions. The actual number slots (or buckets) created
+ for the table is 2^size. The possible range for this value is from
+ 2 to 31, smaller or larger values will be increased to 3 (8 slots)
+ or decreased to 14 (16384 slots). Note that each slot can store
+ more than one item, when there are collisions of hash ids computed
+ for keys. The items in the same slot are stored in a linked list.
+ In other words, the size is not setting a limit of how many items
+ can be stored in a hash table, as long as there is enough free
+ shared memory, new items can be added.
* autoexpire -time in seconds to delete an item from a hash table if
no update was done to it. If is missing or set to 0, the items
won't expire.
[View Less]
Module: kamailio
Branch: 5.3
Commit: c0b87c2cc13b1f46b8c5c902a0f5a82e913b85d9
URL: https://github.com/kamailio/kamailio/commit/c0b87c2cc13b1f46b8c5c902a0f5a82…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-06T12:01:19+02:00
core: hash_func.h - use file name specific include guard
(cherry picked from commit 9691f6e0cab48114ef4067a22cc8f9c1efb8944c)
---
Modified: src/core/hash_func.h
---
Diff: …
[View More]https://github.com/kamailio/kamailio/commit/c0b87c2cc13b1f46b8c5c902a0f5a82…
Patch: https://github.com/kamailio/kamailio/commit/c0b87c2cc13b1f46b8c5c902a0f5a82…
---
diff --git a/src/core/hash_func.h b/src/core/hash_func.h
index 203e10b1c8..aeb9794bf2 100644
--- a/src/core/hash_func.h
+++ b/src/core/hash_func.h
@@ -13,8 +13,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*!
@@ -26,14 +26,14 @@
-#ifndef _HASH_H
-#define _HASH_H
+#ifndef _HASH_FUNC_H_
+#define _HASH_FUNC_H_
#include "str.h"
#include "hashes.h"
/* always use a power of 2 for hash table size */
-#define T_TABLE_POWER 16
+#define T_TABLE_POWER 16
#define TABLE_ENTRIES (1 << (T_TABLE_POWER))
unsigned int new_hash( str call_id, str cseq_nr );
[View Less]
Module: kamailio
Branch: 5.3
Commit: 8f5653e6cd84bc1dfa2498959b99f3fe2911b483
URL: https://github.com/kamailio/kamailio/commit/8f5653e6cd84bc1dfa2498959b99f3f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-06T11:57:37+02:00
kamctl: kamdbclt mysql skip creating dbrouser if same as dbrwuser
(cherry picked from commit 66ef7ab7b078794b96ecee13f6867d5f90a8d63e)
---
Modified: utils/kamctl/kamdbctl.mysql
…
[View More]---
Diff: https://github.com/kamailio/kamailio/commit/8f5653e6cd84bc1dfa2498959b99f3f…
Patch: https://github.com/kamailio/kamailio/commit/8f5653e6cd84bc1dfa2498959b99f3f…
---
diff --git a/utils/kamctl/kamdbctl.mysql b/utils/kamctl/kamdbctl.mysql
index e8f8d2e861..358742dad4 100644
--- a/utils/kamctl/kamdbctl.mysql
+++ b/utils/kamctl/kamdbctl.mysql
@@ -161,9 +161,12 @@ kamailio_db_grant () # pars: <database name>
# Users: kamailio is the regular user, kamailioro only for reading
sql_query "" "CREATE USER '${DBRWUSER}'@'$DBHOST' IDENTIFIED BY '$DBRWPW';
- GRANT ALL PRIVILEGES ON $1.* TO '${DBRWUSER}'@'$DBHOST';
- CREATE USER '${DBROUSER}'@'$DBHOST' IDENTIFIED BY '$DBROPW';
- GRANT SELECT ON $1.* TO '${DBROUSER}'@'$DBHOST';"
+ GRANT ALL PRIVILEGES ON $1.* TO '${DBRWUSER}'@'$DBHOST';"
+
+ if [ "${DBRWUSER}" != "${DBROUSER}" ] ; then
+ sql_query "" "CREATE USER '${DBROUSER}'@'$DBHOST' IDENTIFIED BY '$DBROPW';
+ GRANT SELECT ON $1.* TO '${DBROUSER}'@'$DBHOST';"
+ fi
if [ $? -ne 0 ] ; then
merr "granting privileges to database $1 failed!"
@@ -172,9 +175,11 @@ kamailio_db_grant () # pars: <database name>
if [ "$DBHOST" != "localhost" ] ; then
sql_query "" "CREATE USER '$DBRWUSER'@'localhost' IDENTIFIED BY '$DBRWPW';
- GRANT ALL PRIVILEGES ON $1.* TO '$DBRWUSER'@'localhost';
- CREATE USER '$DBROUSER'@'localhost' IDENTIFIED BY '$DBROPW';
- GRANT SELECT ON $1.* TO '$DBROUSER'@'localhost';"
+ GRANT ALL PRIVILEGES ON $1.* TO '$DBRWUSER'@'localhost';"
+ if [ "${DBRWUSER}" != "${DBROUSER}" ] ; then
+ sql_query "" "CREATE USER '$DBROUSER'@'localhost' IDENTIFIED BY '$DBROPW';
+ GRANT SELECT ON $1.* TO '$DBROUSER'@'localhost';"
+ fi
if [ $? -ne 0 ] ; then
merr "granting localhost privileges to database $1 failed!"
exit 1
@@ -183,9 +188,11 @@ kamailio_db_grant () # pars: <database name>
if [ ! -z "$DBACCESSHOST" ] ; then
sql_query "" "CREATE USER '$DBRWUSER'@'$DBACCESSHOST' IDENTIFIED BY '$DBRWPW';
- GRANT ALL PRIVILEGES ON $1.* TO '$DBRWUSER'@'$DBACCESSHOST';
- CREATE USER '$DBROUSER'@'$DBACCESSHOST' IDENTIFIED BY '$DBROPW';
- GRANT SELECT ON $1.* TO '$DBROUSER'@'$DBACCESSHOST';"
+ GRANT ALL PRIVILEGES ON $1.* TO '$DBRWUSER'@'$DBACCESSHOST';"
+ if [ "${DBRWUSER}" != "${DBROUSER}" ] ; then
+ sql_query "" "CREATE USER '$DBROUSER'@'$DBACCESSHOST' IDENTIFIED BY '$DBROPW';
+ GRANT SELECT ON $1.* TO '$DBROUSER'@'$DBACCESSHOST';"
+ fi
if [ $? -ne 0 ] ; then
merr "granting access host privileges to database $1 failed!"
exit 1
@@ -203,8 +210,11 @@ kamailio_db_revoke () # pars: <database name>
minfo "revoking privileges to database $1 ..."
# Users: kamailio is the regular user, kamailioro only for reading
- sql_query "" "REVOKE ALL PRIVILEGES ON $1.* FROM '${DBRWUSER}'@'$DBHOST';
- REVOKE SELECT ON $1.* FROM '${DBROUSER}'@'$DBHOST';"
+ sql_query "" "REVOKE ALL PRIVILEGES ON $1.* FROM '${DBRWUSER}'@'$DBHOST';"
+
+ if [ "${DBRWUSER}" != "${DBROUSER}" ] ; then
+ sql_query "" "REVOKE SELECT ON $1.* FROM '${DBROUSER}'@'$DBHOST';"
+ fi
if [ $? -ne 0 ] ; then
merr "revoking privileges to database $1 failed!"
@@ -212,8 +222,10 @@ kamailio_db_revoke () # pars: <database name>
fi
if [ "$DBHOST" != "localhost" ] ; then
- sql_query "" "REVOKE ALL PRIVILEGES ON $1.* FROM '$DBRWUSER'@'localhost';
- REVOKE SELECT ON $1.* FROM '$DBROUSER'@'localhost';"
+ sql_query "" "REVOKE ALL PRIVILEGES ON $1.* FROM '$DBRWUSER'@'localhost';"
+ if [ "${DBRWUSER}" != "${DBROUSER}" ] ; then
+ sql_query "" "REVOKE SELECT ON $1.* FROM '$DBROUSER'@'localhost';"
+ fi
if [ $? -ne 0 ] ; then
merr "granting localhost privileges to database $1 failed!"
exit 1
@@ -221,8 +233,10 @@ kamailio_db_revoke () # pars: <database name>
fi
if [ ! -z "$DBACCESSHOST" ] ; then
- sql_query "" "REVOKE ALL PRIVILEGES ON $1.* FROM '$DBRWUSER'@'$DBACCESSHOST';
- REVOKE SELECT ON $1.* FROM '$DBROUSER'@'$DBACCESSHOST';"
+ sql_query "" "REVOKE ALL PRIVILEGES ON $1.* FROM '$DBRWUSER'@'$DBACCESSHOST';"
+ if [ "${DBRWUSER}" != "${DBROUSER}" ] ; then
+ sql_query "" "REVOKE SELECT ON $1.* FROM '$DBROUSER'@'$DBACCESSHOST';"
+ fi
if [ $? -ne 0 ] ; then
merr "granting access host privileges to database $1 failed!"
exit 1
[View Less]
Module: kamailio
Branch: 5.3
Commit: 4790825cc98068b07c1e0402bdea93f839a1fd77
URL: https://github.com/kamailio/kamailio/commit/4790825cc98068b07c1e0402bdea93f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-06T11:57:22+02:00
htable: docs - more details about size attribute for htable
(cherry picked from commit 35f711e6ec74c6e67edf99adaa15cc353f2ce949)
---
Modified: src/modules/htable/doc/…
[View More]htable_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/4790825cc98068b07c1e0402bdea93f…
Patch: https://github.com/kamailio/kamailio/commit/4790825cc98068b07c1e0402bdea93f…
---
diff --git a/src/modules/htable/doc/htable_admin.xml b/src/modules/htable/doc/htable_admin.xml
index 17391626a1..f0b560cfd1 100644
--- a/src/modules/htable/doc/htable_admin.xml
+++ b/src/modules/htable/doc/htable_admin.xml
@@ -341,11 +341,17 @@ $ kamcmd htable.dump htable
</listitem>
<listitem>
<para>
- <emphasis>size</emphasis> - number specifying the size of hash
- table. Larger value means less collisions. The number of entries
- (aka slots or buckets) in the table is 2^size. The possible range
+ <emphasis>size</emphasis> - number to control how many slots
+ (buckets) to create for the hash table. Larger value means more
+ slots with higher probability for less collisions. The actual number
+ slots (or buckets) created for the table is 2^size. The possible range
for this value is from 2 to 31, smaller or larger values will be
- increased to 3 (8 slots) or decreased to 14 (16384 slots).
+ increased to 3 (8 slots) or decreased to 14 (16384 slots). Note
+ that each slot can store more than one item, when there are
+ collisions of hash ids computed for keys. The items in the same
+ slot are stored in a linked list. In other words, the size is not
+ setting a limit of how many items can be stored in a hash table, as
+ long as there is enough free shared memory, new items can be added.
</para>
</listitem>
<listitem>
[View Less]
Hello,
based on the discussions from yesterday's online devel meeting, I am
planning to release next week (likely on Wednesday, May 6) the next
minor version out of branch 5.3, respectively 5.3.4.
Should anyone be aware of issues not reported to the bug tracker or
commits for fixes in master not backported to 5.3 branch, let us know.
For new issues, the best is to report them on the tracker. For commits,
you can provide links/hashids or make pull requests.
Cheers,
Daniel
--
Daniel-…
[View More]Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
[View Less]
### Description
After upgrading to 5.3.0 from 5.2.2 (standard packages on FreeBSD 12.0), I am experiencing intermittent crashes related to handling of BYE messages.
### Troubleshooting
#### Reproduction
This happens ~ weekly and I have not found a good way to reproduce it.
#### Debugging Data
An example backtrace is below from the last dumped core (the SIGSEGV one); unfortunately it overwrote the earlier one:
```
* thread #1, name = 'kamailio', stop reason = signal SIGSEGV
* frame #0: …
[View More]0x00000008009c5b79 libc.so.7`___lldb_unnamed_symbol403$$libc.so.7 + 41
frame #1: 0x00000008009ed63e libc.so.7`__free + 990
frame #2: 0x000000080271562b libthr.so.3`pthread_rwlock_destroy + 59
frame #3: 0x0000000802bedbf6 libcrypto.so.111`CRYPTO_THREAD_lock_free + 22
frame #4: 0x0000000802aef3c4 libcrypto.so.111`RSA_free + 100
frame #5: 0x0000000802b10c32 libcrypto.so.111`EVP_PKEY_free + 66
frame #6: 0x000000080296ed86 libssl.so.111`___lldb_unnamed_symbol646$$libssl.so.111 + 134
frame #7: 0x000000080295f93c libssl.so.111`SSL_CTX_free + 236
frame #8: 0x00000008028aee42 tls.so`tls_free_domain + 114
frame #9: 0x00000008028af1d7 tls.so`tls_free_cfg + 199
frame #10: 0x00000008028af2df tls.so`tls_destroy_cfg + 191
frame #11: 0x00000008028ad1f1 tls.so`destroy_tls_h + 1185
frame #12: 0x000000000041adea kamailio`destroy_tls + 26
frame #13: 0x00000000002e36fd kamailio`cleanup + 269
frame #14: 0x00000000002eb5b7 kamailio`___lldb_unnamed_symbol5$$kamailio + 1351
frame #15: 0x00000000002ea5e5 kamailio`handle_sigs + 21669
frame #16: 0x00000000002fb83e kamailio`main_loop + 40014
frame #17: 0x0000000000307d2b kamailio`main + 50267
frame #18: 0x00000000002e311b kamailio`_start + 283
```
This is with OpenSSL 1.1 With the LD_PRELOAD hack to 5.2.2, things were completely stable; I am trying to use kamailio without the LD_PRELOAD'ed mutex wrapper now, which I believe is no longer required. It looks like the SSL-related stuff in the TLS crash (which was 5 minutes later!) is unrelated to the initial problem and may just be an artifact of one of the kamailio processes crashing earlier.
#### Log Messages
```
Nov 2 08:11:31 home /usr/local/sbin/kamailio[94702]: CRITICAL: {1 527440 BYE 973470944-5061-16392(a)BA.A.B.I} <core> [core/mem/q_malloc.c:149]: qm_debug_check_frag(): BUG: qm: prev. fragm. tail overwritten(c0c0c000, abcdefed)[0x801544c58:0x801544c90]! Memory allocator was called from core: core/action.c:754. Fragment marked by core: core/dset.c:733. Exec from core/mem/q_malloc.c:504.
Nov 2 08:13:41 home /usr/local/sbin/kamailio[94703]: CRITICAL: <core> [core/pass_fd.c:277]: receive_fd(): EOF on 22
Nov 2 08:13:41 home kernel: pid 94702 (kamailio), uid 0: exited on signal 6 (core dumped)
Nov 2 08:13:41 home /usr/local/sbin/kamailio[94692]: ALERT: <core> [main.c:767]: handle_sigs(): child process 94702 exited by a signal 6
Nov 2 08:13:41 home /usr/local/sbin/kamailio[94692]: ALERT: <core> [main.c:770]: handle_sigs(): core was generated
Nov 2 08:14:56 home login[8284]: ROOT LOGIN (root) ON ttyu0
Nov 2 08:16:26 home kernel: pid 94692 (kamailio), uid 0: exited on signal 11 (core dumped)
```
I had an identical problem a week ago, also with a crash on a BYE for an active call:
```
Oct 27 13:00:02 home /usr/local/sbin/kamailio[79819]: CRITICAL: {1 598425 BYE 649761149-5061-291(a)BA.A.B.I} <core> [core/mem/q_malloc.c:149]: qm_debug_check_frag(): BUG: qm: prev. fragm. tail overwritten(c0c0c000, abcdefed)[0x801551808:0x801551840]! Memory allocator was called from core: core/action.c:754. Fragment marked by core: core/dset.c:733. Exec from core/mem/q_malloc.c:504.
Oct 27 13:02:09 home /usr/local/sbin/kamailio[79820]: CRITICAL: <core> [core/pass_fd.c:277]: receive_fd(): EOF on 22
Oct 27 13:02:09 home kernel: pid 79819 (kamailio), uid 0: exited on signal 6 (core dumped)
Oct 27 13:02:09 home /usr/local/sbin/kamailio[79809]: ALERT: <core> [main.c:767]: handle_sigs(): child process 79819 exited by a signal 6
Oct 27 13:02:09 home /usr/local/sbin/kamailio[79809]: ALERT: <core> [main.c:770]: handle_sigs(): core was generated
Oct 27 13:04:55 home kernel: pid 79809 (kamailio), uid 0: exited on signal 11 (core dumped)
```
### Possible Solutions
<!--
If you found a solution or workaround for the issue, describe it. Ideally, provide a pull request with a fix.
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.3.0 (x86_64/freebsd) 4cc67a
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, 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_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, select, kqueue.
id: 4cc67a
compiled on 18:51:34 Oct 25 2019 with cc 6.0
```
* **Operating System**:
FreeBSD 12.0
```
FreeBSD home.XXX 12.0-RELEASE-p10 FreeBSD 12.0-RELEASE-p10 GENERIC amd64
```
--
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/2121
[View Less]
Hello,
I am going to send a few emails on different topics to inform the
broader community on mailing lists about what was discussed during the
last online development meeting that happened last Wednesday, so
everyone becomes aware and add own opinions and suggestions.
First here is about the next major release, which is considered for the
mid of summer. To allow the usual 1-1.5 months of testing time frame,
the development has to be frozen in the first part of June (more or less
one month …
[View More]from now on).
If there will be no other proposals in the near future that end up in
postponing the release target date, then try to push to master branch
(or do pull requests) any new features that you want in Kamailio 5.4.x
in the next 4-5 weeks. Once the code is frozen, you would have to wait
for another release cycle to get new features in a stable branch.
During the online meeting there was no major missing feature reported,
if anyone here knows any, describe it and maybe some developer has time
to implement it.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
[View Less]
Hello,
the presentity records (PUBLISH data) stored by the presence module
needed always an external storage backend (sql/no-sql database), for
subscriptions (active watchers) it was possible to use memory caching only.
I recently added support for cache-only module for PUBLISH data as well,
more details are presented in the news article:
* https://www.kamailio.org/w/2020/05/in-memory-presentity-records/
That could help simplifying network architecture on distributed
platforms …
[View More]leveraging cloud infrastructure and using replications
mechanisms (e.g., dmq, evapi+pua_json, nsq, ...) between the Kamailio nodes.
The impact on the code was quite significant, given that any PUBLISH
triggers a series of internal tasks (apply xcap rules, update watchers,
...), therefore I am calling for community testing to be sure old
operational modes were not affected as well as testing the new mode to
discover eventual issues -- just open an item on bug tracker when a
problem is discovered.
Special credits to Fred Posner (lod.com) for supporting the development
of this feature and to Emmanuel Schmidbauer for testing and
troubleshooting in the early phase of development.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
[View Less]
Hi,
kamailio version - 5.3.3
I have configured rtpproxy in pcscf .
rtpproxy 17002 1 0 18:40 ? 00:00:00 /usr/bin/rtpproxy -s
udp:10.40.10.3 7722 -u rtpproxy rtpproxy -p /var/run/rtpproxy/rtpproxy.pid
-l 10.45.4.22 -d DBUG LOG_LOCAL0
I have configured rtpproxy in kamailio.cfg as well.
modparam("rtpproxy", "rtpproxy_sock", "udp:10.40.10.3:7722")
10.40.10.3 - private IP
10.45.4.22 - public IP
I have enabled NAT configuration also.
When i make a call from zoiper client , rtp …
[View More]packets are going to some other
public ip
Could anyone please help me in this issue.
Kindly help.
[View Less]
Module: kamailio
Branch: master
Commit: 9691f6e0cab48114ef4067a22cc8f9c1efb8944c
URL: https://github.com/kamailio/kamailio/commit/9691f6e0cab48114ef4067a22cc8f9c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-04T18:35:00+02:00
core: hash_func.h - use file name specific include guard
---
Modified: src/core/hash_func.h
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]9691f6e0cab48114ef4067a22cc8f9c…
Patch: https://github.com/kamailio/kamailio/commit/9691f6e0cab48114ef4067a22cc8f9c…
---
diff --git a/src/core/hash_func.h b/src/core/hash_func.h
index 203e10b1c8..aeb9794bf2 100644
--- a/src/core/hash_func.h
+++ b/src/core/hash_func.h
@@ -13,8 +13,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*!
@@ -26,14 +26,14 @@
-#ifndef _HASH_H
-#define _HASH_H
+#ifndef _HASH_FUNC_H_
+#define _HASH_FUNC_H_
#include "str.h"
#include "hashes.h"
/* always use a power of 2 for hash table size */
-#define T_TABLE_POWER 16
+#define T_TABLE_POWER 16
#define TABLE_ENTRIES (1 << (T_TABLE_POWER))
unsigned int new_hash( str call_id, str cseq_nr );
[View Less]
Module: kamailio
Branch: 5.2
Commit: 4061a1d7cd130a5c3e4236c2abb999658ee02e36
URL: https://github.com/kamailio/kamailio/commit/4061a1d7cd130a5c3e4236c2abb9996…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-05-04T17:07:58+02:00
utils/kamctl: dbtextdb.py close previous opened file properly
related #1747
(cherry picked from commit 5f52f9905bbdf63d636080f7d0340af4f71ed12a)
(cherry picked from …
[View More]commit e26e587f31eb23c431a2cfb149ec7a86b4f648bc)
---
Modified: utils/kamctl/dbtextdb/dbtextdb.py
---
Diff: https://github.com/kamailio/kamailio/commit/4061a1d7cd130a5c3e4236c2abb9996…
Patch: https://github.com/kamailio/kamailio/commit/4061a1d7cd130a5c3e4236c2abb9996…
---
diff --git a/utils/kamctl/dbtextdb/dbtextdb.py b/utils/kamctl/dbtextdb/dbtextdb.py
index 7e1de04687..581496c309 100755
--- a/utils/kamctl/dbtextdb/dbtextdb.py
+++ b/utils/kamctl/dbtextdb/dbtextdb.py
@@ -60,6 +60,10 @@ def __init__(self, location):
if not os.path.isdir(location):
raise ParseError(location + ' is not a directory')
+ def __del__(self):
+ if getattr(self, 'fd', False):
+ self.fd.close()
+
def _ParseOrderBy(self):
"""Parse out the column name to be used for ordering the dataset.
@@ -438,6 +442,8 @@ def CleanUp(self):
self.command = '' # which command are we executing
self.strings = [] # list of string literals parsed from the query
self.parens = [] # list of parentheses parsed from the query
+ if getattr(self, 'fd', False):
+ self.fd.close()
def ParseQuery(self, query):
"""External wrapper for the query parsing routines.
[View Less]
Module: kamailio
Branch: 5.2
Commit: 23062ed50ea4e6b6e00468cc7f8ec57ccc613429
URL: https://github.com/kamailio/kamailio/commit/23062ed50ea4e6b6e00468cc7f8ec57…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-05-04T17:07:04+02:00
utils/kamctl: fix handling of Exceptions
> Traceback (most recent call last):
> File "/usr/lib/x86_64-linux-gnu/kamailio/kamctl/dbtextdb/dbtextdb.py", line 1239, …
[View More]in <module>
> main(sys.argv)
> File "/usr/lib/x86_64-linux-gnu/kamailio/kamctl/dbtextdb/dbtextdb.py", line 1233, in main
> except (Error, e):
> NameError: name 'e' is not defined
(cherry picked from commit 1aca79c43cb8dbd920c1eb81c0c30cf89f0985b9)
(cherry picked from commit 5f6f4331811e654e75b49263f8fb823bea9874a3)
---
Modified: utils/kamctl/dbtextdb/dbtextdb.py
---
Diff: https://github.com/kamailio/kamailio/commit/23062ed50ea4e6b6e00468cc7f8ec57…
Patch: https://github.com/kamailio/kamailio/commit/23062ed50ea4e6b6e00468cc7f8ec57…
---
diff --git a/utils/kamctl/dbtextdb/dbtextdb.py b/utils/kamctl/dbtextdb/dbtextdb.py
index 3a35554013..3d5ee7ecc5 100755
--- a/utils/kamctl/dbtextdb/dbtextdb.py
+++ b/utils/kamctl/dbtextdb/dbtextdb.py
@@ -356,7 +356,7 @@ def _EscapeChars(self, value):
# test that the value is string, if not return it as is
try:
value.find('a')
- except:
+ except Exception:
return value
escaped = value
@@ -377,7 +377,7 @@ def _UnEscapeChars(self, value):
# test that the value is string, if not return it as is
try:
value.find('a')
- except:
+ except Exception:
return value
escaped = value
@@ -988,21 +988,19 @@ def _TypeCheck(self, val, col):
if not val and not self.header[col]['null']:
raise ExecuteError(col + ' cannot be empty or null')
- if (self.header[col]['type'].lower() == 'int' or
- self.header[col]['type'].lower() == 'double'):
+ hdr_t = self.header[col]['type'].lower()
+ if hdr_t == 'int' or hdr_t == 'double':
try:
if val:
val = eval(val)
- except (NameError, e):
+ except NameError as e:
raise ExecuteError('Failed to parse %s in %s '
'(unable to convert to type %s): %s' %
- (col, self.table, self.header[col]['type'],
- e))
- except (SyntaxError, e):
+ (col, self.table, hdr_t, e))
+ except SyntaxError as e:
raise ExecuteError('Failed to parse %s in %s '
'(unable to convert to type %s): %s' %
- (col, self.table, self.header[col]['type'],
- e))
+ (col, self.table, hdr_t, e))
return val
@@ -1083,7 +1081,7 @@ def OpenTable(self):
# save a copy of the data before modifying
self.orig_data = self.data[:]
- except (IOError, e):
+ except IOError as e:
raise ExecuteError('Unable to open table %s: %s' % (self.table, e))
Debug('Header is: %s' % self.header)
@@ -1230,7 +1228,7 @@ def main(argv):
print('Updated %s, rows affected: %d' % (conn.table, row))
else:
print(row)
- except (Error, e):
+ except Error as e:
print(e)
sys.exit(1)
[View Less]
Module: kamailio
Branch: 5.3
Commit: e26e587f31eb23c431a2cfb149ec7a86b4f648bc
URL: https://github.com/kamailio/kamailio/commit/e26e587f31eb23c431a2cfb149ec7a8…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-05-04T17:01:53+02:00
utils/kamctl: dbtextdb.py close previous opened file properly
related #1747
(cherry picked from commit 5f52f9905bbdf63d636080f7d0340af4f71ed12a)
---
Modified: utils/…
[View More]kamctl/dbtextdb/dbtextdb.py
---
Diff: https://github.com/kamailio/kamailio/commit/e26e587f31eb23c431a2cfb149ec7a8…
Patch: https://github.com/kamailio/kamailio/commit/e26e587f31eb23c431a2cfb149ec7a8…
---
diff --git a/utils/kamctl/dbtextdb/dbtextdb.py b/utils/kamctl/dbtextdb/dbtextdb.py
index 7e1de04687..581496c309 100755
--- a/utils/kamctl/dbtextdb/dbtextdb.py
+++ b/utils/kamctl/dbtextdb/dbtextdb.py
@@ -60,6 +60,10 @@ def __init__(self, location):
if not os.path.isdir(location):
raise ParseError(location + ' is not a directory')
+ def __del__(self):
+ if getattr(self, 'fd', False):
+ self.fd.close()
+
def _ParseOrderBy(self):
"""Parse out the column name to be used for ordering the dataset.
@@ -438,6 +442,8 @@ def CleanUp(self):
self.command = '' # which command are we executing
self.strings = [] # list of string literals parsed from the query
self.parens = [] # list of parentheses parsed from the query
+ if getattr(self, 'fd', False):
+ self.fd.close()
def ParseQuery(self, query):
"""External wrapper for the query parsing routines.
[View Less]
kamctl's dbtextdb.py fails to build in a Python3-only environment. Update dbtextdb to Python3.
--
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/1747
Module: kamailio
Branch: master
Commit: 5f52f9905bbdf63d636080f7d0340af4f71ed12a
URL: https://github.com/kamailio/kamailio/commit/5f52f9905bbdf63d636080f7d0340af…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-05-04T15:22:36+02:00
utils/kamctl: dbtextdb.py close previous opened file properly
related #1747
---
Modified: utils/kamctl/dbtextdb/dbtextdb.py
---
Diff: https://github.com/kamailio/…
[View More]kamailio/commit/5f52f9905bbdf63d636080f7d0340af…
Patch: https://github.com/kamailio/kamailio/commit/5f52f9905bbdf63d636080f7d0340af…
---
diff --git a/utils/kamctl/dbtextdb/dbtextdb.py b/utils/kamctl/dbtextdb/dbtextdb.py
index 7e1de04687..581496c309 100755
--- a/utils/kamctl/dbtextdb/dbtextdb.py
+++ b/utils/kamctl/dbtextdb/dbtextdb.py
@@ -60,6 +60,10 @@ def __init__(self, location):
if not os.path.isdir(location):
raise ParseError(location + ' is not a directory')
+ def __del__(self):
+ if getattr(self, 'fd', False):
+ self.fd.close()
+
def _ParseOrderBy(self):
"""Parse out the column name to be used for ordering the dataset.
@@ -438,6 +442,8 @@ def CleanUp(self):
self.command = '' # which command are we executing
self.strings = [] # list of string literals parsed from the query
self.parens = [] # list of parentheses parsed from the query
+ if getattr(self, 'fd', False):
+ self.fd.close()
def ParseQuery(self, query):
"""External wrapper for the query parsing routines.
[View Less]
Module: kamailio
Branch: 5.3
Commit: 5f6f4331811e654e75b49263f8fb823bea9874a3
URL: https://github.com/kamailio/kamailio/commit/5f6f4331811e654e75b49263f8fb823…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-05-04T12:10:05+02:00
utils/kamctl: fix handling of Exceptions
> Traceback (most recent call last):
> File "/usr/lib/x86_64-linux-gnu/kamailio/kamctl/dbtextdb/dbtextdb.py", line 1239, …
[View More]in <module>
> main(sys.argv)
> File "/usr/lib/x86_64-linux-gnu/kamailio/kamctl/dbtextdb/dbtextdb.py", line 1233, in main
> except (Error, e):
> NameError: name 'e' is not defined
(cherry picked from commit 1aca79c43cb8dbd920c1eb81c0c30cf89f0985b9)
---
Modified: utils/kamctl/dbtextdb/dbtextdb.py
---
Diff: https://github.com/kamailio/kamailio/commit/5f6f4331811e654e75b49263f8fb823…
Patch: https://github.com/kamailio/kamailio/commit/5f6f4331811e654e75b49263f8fb823…
---
diff --git a/utils/kamctl/dbtextdb/dbtextdb.py b/utils/kamctl/dbtextdb/dbtextdb.py
index 3a35554013..3d5ee7ecc5 100755
--- a/utils/kamctl/dbtextdb/dbtextdb.py
+++ b/utils/kamctl/dbtextdb/dbtextdb.py
@@ -356,7 +356,7 @@ def _EscapeChars(self, value):
# test that the value is string, if not return it as is
try:
value.find('a')
- except:
+ except Exception:
return value
escaped = value
@@ -377,7 +377,7 @@ def _UnEscapeChars(self, value):
# test that the value is string, if not return it as is
try:
value.find('a')
- except:
+ except Exception:
return value
escaped = value
@@ -988,21 +988,19 @@ def _TypeCheck(self, val, col):
if not val and not self.header[col]['null']:
raise ExecuteError(col + ' cannot be empty or null')
- if (self.header[col]['type'].lower() == 'int' or
- self.header[col]['type'].lower() == 'double'):
+ hdr_t = self.header[col]['type'].lower()
+ if hdr_t == 'int' or hdr_t == 'double':
try:
if val:
val = eval(val)
- except (NameError, e):
+ except NameError as e:
raise ExecuteError('Failed to parse %s in %s '
'(unable to convert to type %s): %s' %
- (col, self.table, self.header[col]['type'],
- e))
- except (SyntaxError, e):
+ (col, self.table, hdr_t, e))
+ except SyntaxError as e:
raise ExecuteError('Failed to parse %s in %s '
'(unable to convert to type %s): %s' %
- (col, self.table, self.header[col]['type'],
- e))
+ (col, self.table, hdr_t, e))
return val
@@ -1083,7 +1081,7 @@ def OpenTable(self):
# save a copy of the data before modifying
self.orig_data = self.data[:]
- except (IOError, e):
+ except IOError as e:
raise ExecuteError('Unable to open table %s: %s' % (self.table, e))
Debug('Header is: %s' % self.header)
@@ -1230,7 +1228,7 @@ def main(argv):
print('Updated %s, rows affected: %d' % (conn.table, row))
else:
print(row)
- except (Error, e):
+ except Error as e:
print(e)
sys.exit(1)
[View Less]
Module: kamailio
Branch: master
Commit: 1aca79c43cb8dbd920c1eb81c0c30cf89f0985b9
URL: https://github.com/kamailio/kamailio/commit/1aca79c43cb8dbd920c1eb81c0c30cf…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-05-04T11:33:12+02:00
utils/kamctl: fix handling of Exceptions
> Traceback (most recent call last):
> File "/usr/lib/x86_64-linux-gnu/kamailio/kamctl/dbtextdb/dbtextdb.py", line 1239,…
[View More] in <module>
> main(sys.argv)
> File "/usr/lib/x86_64-linux-gnu/kamailio/kamctl/dbtextdb/dbtextdb.py", line 1233, in main
> except (Error, e):
> NameError: name 'e' is not defined
---
Modified: utils/kamctl/dbtextdb/dbtextdb.py
---
Diff: https://github.com/kamailio/kamailio/commit/1aca79c43cb8dbd920c1eb81c0c30cf…
Patch: https://github.com/kamailio/kamailio/commit/1aca79c43cb8dbd920c1eb81c0c30cf…
---
diff --git a/utils/kamctl/dbtextdb/dbtextdb.py b/utils/kamctl/dbtextdb/dbtextdb.py
index 3a35554013..3d5ee7ecc5 100755
--- a/utils/kamctl/dbtextdb/dbtextdb.py
+++ b/utils/kamctl/dbtextdb/dbtextdb.py
@@ -356,7 +356,7 @@ def _EscapeChars(self, value):
# test that the value is string, if not return it as is
try:
value.find('a')
- except:
+ except Exception:
return value
escaped = value
@@ -377,7 +377,7 @@ def _UnEscapeChars(self, value):
# test that the value is string, if not return it as is
try:
value.find('a')
- except:
+ except Exception:
return value
escaped = value
@@ -988,21 +988,19 @@ def _TypeCheck(self, val, col):
if not val and not self.header[col]['null']:
raise ExecuteError(col + ' cannot be empty or null')
- if (self.header[col]['type'].lower() == 'int' or
- self.header[col]['type'].lower() == 'double'):
+ hdr_t = self.header[col]['type'].lower()
+ if hdr_t == 'int' or hdr_t == 'double':
try:
if val:
val = eval(val)
- except (NameError, e):
+ except NameError as e:
raise ExecuteError('Failed to parse %s in %s '
'(unable to convert to type %s): %s' %
- (col, self.table, self.header[col]['type'],
- e))
- except (SyntaxError, e):
+ (col, self.table, hdr_t, e))
+ except SyntaxError as e:
raise ExecuteError('Failed to parse %s in %s '
'(unable to convert to type %s): %s' %
- (col, self.table, self.header[col]['type'],
- e))
+ (col, self.table, hdr_t, e))
return val
@@ -1083,7 +1081,7 @@ def OpenTable(self):
# save a copy of the data before modifying
self.orig_data = self.data[:]
- except (IOError, e):
+ except IOError as e:
raise ExecuteError('Unable to open table %s: %s' % (self.table, e))
Debug('Header is: %s' % self.header)
@@ -1230,7 +1228,7 @@ def main(argv):
print('Updated %s, rows affected: %d' % (conn.table, row))
else:
print(row)
- except (Error, e):
+ except Error as e:
print(e)
sys.exit(1)
[View Less]
I recently installed kamailio and it was enabled & started--> Service is active & running
But once I added users I see kamailio service is failed
[root@rlab111053 kamailio]# systemctl status kamailio
● kamailio.service - Kamailio (OpenSER) - the Open Source SIP Server
Loaded: loaded (/etc/systemd/system/kamailio.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Wed 2020-04-29 18:47:26 IST; 860ms ago
Process: 16759 ExecStart=/usr/sbin/…
[View More]kamailio -DD -P /var/run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY (code=exited, status=255)
Main PID: 16759 (code=exited, status=255)
Apr 29 18:47:25 rlab111053 systemd[1]: kamailio.service: main process exited, code=exited, status=255/n/a
Apr 29 18:47:25 rlab111053 systemd[1]: Unit kamailio.service entered failed state.
Apr 29 18:47:25 rlab111053 systemd[1]: kamailio.service failed.
Apr 29 18:47:26 rlab111053 systemd[1]: kamailio.service holdoff time over, scheduling restart.
Apr 29 18:47:26 rlab111053 systemd[1]: Stopped Kamailio (OpenSER) - the Open Source SIP Server.
Apr 29 18:47:26 rlab111053 systemd[1]: start request repeated too quickly for kamailio.service
Apr 29 18:47:26 rlab111053 systemd[1]: Failed to start Kamailio (OpenSER) - the Open Source SIP Server.
Apr 29 18:47:26 rlab111053 systemd[1]: Unit kamailio.service entered failed state.
Apr 29 18:47:26 rlab111053 systemd[1]: kamailio.service failed.
**I am using below version**
[root@rlab111053 kamailio]# kamailio -version
version: kamailio 5.1.10 (x86_64/linux) cfcfd5
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, 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_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: cfcfd5
compiled on 15:40:49 Mar 6 2020 with gcc 4.8.5
[root@rlab111053 kamailio]#
Can some help to fix it
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please use this template only for bug reports.
If you have questions about using Kamailio or related to its configuration file, ask on sr-users mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing C code, ask on sr-dev mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot the issue.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
### Troubleshooting
#### Reproduction
<!--
If the issue can be reproduced, describe how it can be done.
-->
#### Debugging Data
<!--
If you got a core dump, use gdb to extract troubleshooting data - full backtrace,
local variables and the list of the code at the issue location.
gdb /path/to/kamailio /path/to/corefile
bt full
info locals
list
If you are familiar with gdb, feel free to attach more of what you consider to
be relevant.
-->
```
(paste your debugging data here)
```
#### Log Messages
<!--
Check the syslog file and if there are relevant log messages printed by Kamailio, add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your log messages here)
```
#### SIP Traffic
<!--
If the issue is exposed by processing specific SIP messages, grab them with ngrep or save in a pcap file, then add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your sip traffic here)
```
### Possible Solutions
<!--
If you found a solution or workaround for the issue, describe it. Ideally, provide a pull request with a fix.
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
(paste your output here)
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->
```
(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/2309
[View Less]
Track the issues discovered by different developers while implementing in-memory only presentity records for presence module.
--
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/2294
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, …
[View More]tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [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)
- [X] 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
- [X] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [X] PR should be backported to stable branches
- [X] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
usrloc generated statistics (contacts, expires, users) contain "-" in their names (usrloc-contacs and so on), which is not valid according to prometheus naming convention.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2304
-- Commit Summary --
* usrloc: change "-" for "_" in stats name to be prometheus compliant
-- File Changes --
M src/modules/usrloc/udomain.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2304.patchhttps://github.com/kamailio/kamailio/pull/2304.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/2304
[View Less]
I noticed that json rpc commands have started to fail, for example,
May 2 15:41:15 char /usr/bin/sip-proxy[10440]: INFO: Executing JSON request <{"jsonrpc":"2.0","method":"siptrace.status","params":["on"],"id":1}> from <127.0.0.1> with host <127.0.0.1:6060>
May 2 15:41:15 char /usr/bin/sip-proxy[10440]: ERROR: <core> [core/parser/parse_from.c:53]: parse_from_header(): bad msg or missing FROM header
May 2 15:41:15 char /usr/bin/sip-proxy[10440]: ERROR: siptrace […
[View More]siptrace_send.c:55]: sip_trace_prepare(): cannot parse FROM header
Has something changed that I have missed? I didn't find anything
related on the wiki upgrade page.
-- Juha
[View Less]
I build my sip proxy from today's master and it didn't start:
May 2 15:12:51 char sip-proxy[22422]: 0(22474) ERROR: <core> [core/sr_module.c:512]: load_module(): could not open module </usr/lib/x86_64-linux-gnu/sip-proxy/modules/usrloc.so>: /usr/lib/x86_64-linux-gnu/sip-proxy/modules/usrloc.so: undefined symbol: ul_cseq_delay
-- Juha
Module: kamailio
Branch: master
Commit: 66ef7ab7b078794b96ecee13f6867d5f90a8d63e
URL: https://github.com/kamailio/kamailio/commit/66ef7ab7b078794b96ecee13f6867d5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-02T08:47:30+02:00
kamctl: kamdbclt mysql skip creating dbrouser if same as dbrwuser
---
Modified: utils/kamctl/kamdbctl.mysql
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]66ef7ab7b078794b96ecee13f6867d5…
Patch: https://github.com/kamailio/kamailio/commit/66ef7ab7b078794b96ecee13f6867d5…
---
diff --git a/utils/kamctl/kamdbctl.mysql b/utils/kamctl/kamdbctl.mysql
index bdb8b98ab4..4050371bfe 100644
--- a/utils/kamctl/kamdbctl.mysql
+++ b/utils/kamctl/kamdbctl.mysql
@@ -161,9 +161,12 @@ kamailio_db_grant () # pars: <database name>
# Users: kamailio is the regular user, kamailioro only for reading
sql_query "" "CREATE USER '${DBRWUSER}'@'$DBHOST' IDENTIFIED BY '$DBRWPW';
- GRANT ALL PRIVILEGES ON $1.* TO '${DBRWUSER}'@'$DBHOST';
- CREATE USER '${DBROUSER}'@'$DBHOST' IDENTIFIED BY '$DBROPW';
- GRANT SELECT ON $1.* TO '${DBROUSER}'@'$DBHOST';"
+ GRANT ALL PRIVILEGES ON $1.* TO '${DBRWUSER}'@'$DBHOST';"
+
+ if [ "${DBRWUSER}" != "${DBROUSER}" ] ; then
+ sql_query "" "CREATE USER '${DBROUSER}'@'$DBHOST' IDENTIFIED BY '$DBROPW';
+ GRANT SELECT ON $1.* TO '${DBROUSER}'@'$DBHOST';"
+ fi
if [ $? -ne 0 ] ; then
merr "granting privileges to database $1 failed!"
@@ -172,9 +175,11 @@ kamailio_db_grant () # pars: <database name>
if [ "$DBHOST" != "localhost" ] ; then
sql_query "" "CREATE USER '$DBRWUSER'@'localhost' IDENTIFIED BY '$DBRWPW';
- GRANT ALL PRIVILEGES ON $1.* TO '$DBRWUSER'@'localhost';
- CREATE USER '$DBROUSER'@'localhost' IDENTIFIED BY '$DBROPW';
- GRANT SELECT ON $1.* TO '$DBROUSER'@'localhost';"
+ GRANT ALL PRIVILEGES ON $1.* TO '$DBRWUSER'@'localhost';"
+ if [ "${DBRWUSER}" != "${DBROUSER}" ] ; then
+ sql_query "" "CREATE USER '$DBROUSER'@'localhost' IDENTIFIED BY '$DBROPW';
+ GRANT SELECT ON $1.* TO '$DBROUSER'@'localhost';"
+ fi
if [ $? -ne 0 ] ; then
merr "granting localhost privileges to database $1 failed!"
exit 1
@@ -183,9 +188,11 @@ kamailio_db_grant () # pars: <database name>
if [ ! -z "$DBACCESSHOST" ] ; then
sql_query "" "CREATE USER '$DBRWUSER'@'$DBACCESSHOST' IDENTIFIED BY '$DBRWPW';
- GRANT ALL PRIVILEGES ON $1.* TO '$DBRWUSER'@'$DBACCESSHOST';
- CREATE USER '$DBROUSER'@'$DBACCESSHOST' IDENTIFIED BY '$DBROPW';
- GRANT SELECT ON $1.* TO '$DBROUSER'@'$DBACCESSHOST';"
+ GRANT ALL PRIVILEGES ON $1.* TO '$DBRWUSER'@'$DBACCESSHOST';"
+ if [ "${DBRWUSER}" != "${DBROUSER}" ] ; then
+ sql_query "" "CREATE USER '$DBROUSER'@'$DBACCESSHOST' IDENTIFIED BY '$DBROPW';
+ GRANT SELECT ON $1.* TO '$DBROUSER'@'$DBACCESSHOST';"
+ fi
if [ $? -ne 0 ] ; then
merr "granting access host privileges to database $1 failed!"
exit 1
@@ -203,8 +210,11 @@ kamailio_db_revoke () # pars: <database name>
minfo "revoking privileges to database $1 ..."
# Users: kamailio is the regular user, kamailioro only for reading
- sql_query "" "REVOKE ALL PRIVILEGES ON $1.* FROM '${DBRWUSER}'@'$DBHOST';
- REVOKE SELECT ON $1.* FROM '${DBROUSER}'@'$DBHOST';"
+ sql_query "" "REVOKE ALL PRIVILEGES ON $1.* FROM '${DBRWUSER}'@'$DBHOST';"
+
+ if [ "${DBRWUSER}" != "${DBROUSER}" ] ; then
+ sql_query "" "REVOKE SELECT ON $1.* FROM '${DBROUSER}'@'$DBHOST';"
+ fi
if [ $? -ne 0 ] ; then
merr "revoking privileges to database $1 failed!"
@@ -212,8 +222,10 @@ kamailio_db_revoke () # pars: <database name>
fi
if [ "$DBHOST" != "localhost" ] ; then
- sql_query "" "REVOKE ALL PRIVILEGES ON $1.* FROM '$DBRWUSER'@'localhost';
- REVOKE SELECT ON $1.* FROM '$DBROUSER'@'localhost';"
+ sql_query "" "REVOKE ALL PRIVILEGES ON $1.* FROM '$DBRWUSER'@'localhost';"
+ if [ "${DBRWUSER}" != "${DBROUSER}" ] ; then
+ sql_query "" "REVOKE SELECT ON $1.* FROM '$DBROUSER'@'localhost';"
+ fi
if [ $? -ne 0 ] ; then
merr "granting localhost privileges to database $1 failed!"
exit 1
@@ -221,8 +233,10 @@ kamailio_db_revoke () # pars: <database name>
fi
if [ ! -z "$DBACCESSHOST" ] ; then
- sql_query "" "REVOKE ALL PRIVILEGES ON $1.* FROM '$DBRWUSER'@'$DBACCESSHOST';
- REVOKE SELECT ON $1.* FROM '$DBROUSER'@'$DBACCESSHOST';"
+ sql_query "" "REVOKE ALL PRIVILEGES ON $1.* FROM '$DBRWUSER'@'$DBACCESSHOST';"
+ if [ "${DBRWUSER}" != "${DBROUSER}" ] ; then
+ sql_query "" "REVOKE SELECT ON $1.* FROM '$DBROUSER'@'$DBACCESSHOST';"
+ fi
if [ $? -ne 0 ] ; then
merr "granting access host privileges to database $1 failed!"
exit 1
[View Less]
I have my hash table set to size = 16
modparam("htable", "htable", "a=>size=16;autoexpire=0;dbtable=htable;")
I had around 3000 entries in that table, some entries with more than 10 duplicate keys (key_type = 1) and we found that when reading the entries of the duplicated keys it could not go pass index 9 even though in the physical table there were 17 entries.
I deleted some old entries and now the table is about 2000 items and it seems to work properly again ,(loads all value in memory).…
[View More] I say seems because I can not dump all values:
```
./kamcmd htable.dump a
ERROR: reply too big
```
But I check manually all the ones that were not being loaded and they are now
Questions:
1- the size parameter is for the buckets or entries size ?
2- is 16 a good value for a table with 3000 entries? ( 2^16 is 65k so I figured it would be ok)
3- can the the way I define my key impose a limitation?
4- what is the max size for an htable to be dumped with the above command?
--
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/2311
[View Less]
Module: kamailio
Branch: 5.3
Commit: cca28078f7fe329046744c9b63d01bb9945a8dca
URL: https://github.com/kamailio/kamailio/commit/cca28078f7fe329046744c9b63d01bb…
Author: Donato Sciarra <donato.sciarra(a)bmw.de>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-01T09:55:25+02:00
core: do not use tcp id for lookup if not needed
In case the first lookup (with tcp id) is not successfull, the second
attempt should have been performed without a tcp id.
Issue was …
[View More]introduced with dc43750644 (new global parameter
tcp_connection_match) in 5.3.
(cherry picked from commit 24a3a172dbdecb6e987df943a3ad1acb4da664b5)
---
Modified: src/core/tcp_main.c
---
Diff: https://github.com/kamailio/kamailio/commit/cca28078f7fe329046744c9b63d01bb…
Patch: https://github.com/kamailio/kamailio/commit/cca28078f7fe329046744c9b63d01bb…
---
diff --git a/src/core/tcp_main.c b/src/core/tcp_main.c
index 99d33ee719..1c9859f633 100644
--- a/src/core/tcp_main.c
+++ b/src/core/tcp_main.c
@@ -2029,7 +2029,7 @@ int tcp_send(struct dest_info* dst, union sockaddr_union* from,
if (likely(port)){
/* try again w/o id */
if(tcp_connection_match==TCPCONN_MATCH_STRICT) {
- c=tcpconn_lookup(dst->id, &ip, port, from, try_local_port, con_lifetime);
+ c=tcpconn_lookup(0, &ip, port, from, try_local_port, con_lifetime);
} else {
c=tcpconn_get(0, &ip, port, from, con_lifetime);
}
[View Less]