Hello,
On 22.09.2009 18:07 Uhr, Nathan Angelacos wrote:
[Bump]
resending in case this was missed - sorry for the noise.
Anyone know if its possible to get dialog attributes from
within a timeout route?
indeed, missed the email. This should be possible, I will
check.
Cheers,
Daniel
Nathan Angelacos wrote:
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-14e681d(a)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(a)lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
--
Daniel-Constantin Mierla
*
http://www.asipto.com/