I 'm getting warning each time and It donot get value in erl_xbuff after this change.
"==============================================
WARNING: <core> [core/mem/q_malloc.c:480]: qm_free(): WARNING: free(0) called from erlang: pv_xbuff.c: xavp_decode(1209)
ALERT: <script>: 520:type(auth_repl): <null>, format(auth_repl): <null>
=============================================="
--
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/commit/6542a367638ec5f8a2b62994f8c309e…
I 'm getting warning each time and It donot get value in erl_xbuff after this change.
======================================
WARNING: <core> [core/mem/q_malloc.c:480]: qm_free(): WARNING: free(0) called from erlang: pv_xbuff.c: xavp_decode(1209)
ALERT: <script>: 520:type(auth_repl): <null>, format(auth_repl): <null>
=======================================
--
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/commit/6542a367638ec5f8a2b62994f8c309e…
As was found out in "Kamailio stops processing requests over UDP"
thread, db_mysql_submit_query() in some circumstances hangs when it
executes mysql_ping here:
if (my_ping_interval) {
t = time(0);
if ((t - CON_TIMESTAMP(_h)) > my_ping_interval) {
for (i=0; i < (db_mysql_auto_reconnect ? 3 : 1); i++) {
if (mysql_ping(CON_CONNECTION(_h))) {
LM_INFO("driver error on ping: %s\n", mysql_error(CON_CONNECTION(_h)));
counter_inc(mysql_cnts_h.driver_err);
} else {
break;
}
}
}
...
}
Comment in front of db_mysql_submit_query() function tells:
* Send a SQL query to the database server. This methods tries to reconnect
* to the server if the connection is gone and the auto_reconnect parameter is
* enabled. It also issues a mysql_ping before the query to connect again after
* a long waiting period because for some older mysql versions the auto reconnect
* don't work sufficient. If auto_reconnect is enabled and the server supports it,
* then the mysql_ping is probably not necessary, but its safer to do it in this
* cases too.
*
The text was most likely written many years ago and auto reconnect now
works OK in mysql versions in use today.
I would like to test if the hangup could be prevented without the above
code. Would it be possible to make the code optional via a compilation
flag or by some other means?
-- Juha
Upgrade instructions to 5.3 are missing db structure changes:
https://www.kamailio.org/wiki/install/upgrade/stable-to-devel
I remember seeing many in the commits.
It would be a good idea (actually Kamailio policy) to immediately update
the wiki when a db change is made.
-- Juha
When a specific dialog is loaded from db via dlg_db_load_callid, the load callbacks are not executed so, for example, a CDR is not generated.
No sure if this should considered a new feature or a bug (and so eventually be backported).
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2066
-- Commit Summary --
* dialog: run DLGCB_LOADED callbacks when loading dialog from db
-- File Changes --
M src/modules/dialog/dialog.c (1)
M src/modules/dialog/dlg_cb.c (17)
M src/modules/dialog/dlg_cb.h (1)
M src/modules/dialog/dlg_db_handler.c (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2066.patchhttps://github.com/kamailio/kamailio/pull/2066.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/2066