[Kamailio-Users] How can I access dialog attributes from within timeout route?
Nathan Angelacos
nangel at nothome.org
Tue Sep 22 18:07:41 CEST 2009
[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?
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 at 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!
>
More information about the sr-users
mailing list