Hi,

In kamailio 1.5.2-notls, I'm trying to get the CallID of a dialog that has 
timed out:

if (is_method( "INVITE" ) && !has_totag())
                {
                $dlg_ctx(timeout_route) = 21;
                }
...
route[21] {
        xlog ("L_WARN", "Dead dialog: $dlg(callid)");
        exit;
        }


However, syslog says:

 daemon.warn /usr/sbin/kamailio[6578]: Dead Dialog: <null>
 daemon.warn /usr/sbin/kamailio[6578]: WARNING:dialog:dlg_ontimeout: timeout 
for dlg with CallID \
        '8b2eb5e3-20493c20-14e6...@192.168.1.1' and tags '87F489DA-922DF157' 
'2XrwB5OcEJ2zQvyiTUIh-l2Zd1wjL51M'

dlg_handlers.c leads me to believe that the context is loaded before calling 
the route(21), and the dialog
timeout handler is nice enough to report it in syslog just after my script 
fails.

Am I missing something fundamental, or is this just not possible?

Thanks!


_______________________________________________
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

Reply via email to