[SR-Users] Locally originated BYE dialog database handle

Dirk Teurlings - Signet B.V. dteurlings at signet.nl
Wed Jul 6 15:37:21 CEST 2016


Hi,

There's something going on with a locally originated BYE and the dialog
module running with a database backend. Here's the scenario.

Call gets setup, and is being monitored by outside processes
(non-Kamailio). After a while these processes determine the call is
taking too long (or too expensive), so it has to be killed.

To do this we're using the kamcmd dlg.end_dlg with h_entry and h_id as
parameter. This works to end the call, but is throws some weird issues
into the routing.

First off, the event_route[dialog:end] is not thrown 99% of the time,
though I would expect it to.

Second, This error pops up in the log
/usr/sbin/kamailio[25094]: ERROR: dialog [dlg_db_handler.c:199]:
use_dialog_table(): invalid database handle

As if the command issued by kamcmd isn't able to get connected to the
dialog database. In any case, this error results in the dialog entry for
this call not being removed from the database. So this piles up after a
while.

Anybody any thoughts on this?

Cheers,
Dirk



More information about the sr-users mailing list