THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#122 - Kamailio 3.1.3 crash
User who did this - Jasmin Schnatterbeck (jasmin)
----------
Hello,
the cfg for the query is:
route["CDR_FINALIZE"] {
sql_query("kdb","UPDATE `kamailio_cdr` SET
`state`='completed', `utctime_dlgend`=UTC_TIMESTAMP() WHERE
`hash_id`='$dlg(h_id)' AND `hash_entry`=$dlg(h_entry)","res");
}
This route is called from event_route[tm:local-request] if request method is BYE
(triggered by mediaproxy) and from normal request route, if loose routing and request
method is BYE.
I am wondering why the $dlg variables were not set in the case, which you extracted from
the gdb output.
Furthermore I guess that the query failed, because the following is invalid:
WHERE `hash_id`='<null>' AND `hash_entry`=<null>
Because <null> is not a valid integer...
Is it possible, that a failed query results in a crash? Because normally, the request
works (no <null> values) and kamailio (normally) does not crash...
Another idea: that is a result of the crashing child, because then kamailio terminates all
childs and (guess) as a result of that, mediaproxy signals BYE to all dialogs - and the
dialogs do not exist anymore (because kamailio is terminating), then $dlg is not
available...
Jasmin
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=122#comment1…
You are receiving this message because you have requested it from the Flyspray bugtracking
system. If you did not expect this message or don't want to receive mails in future,
you can change your notification settings at the URL shown above.