<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.2.2">
</HEAD>
<BODY>
Hello,<BR>
<BR>
The dispatcher:dst-down and dispatcher:dst-up events are run once each time a destination goes up and down.&nbsp; So if you have three destinations in your set, and they all go down, dispatcher:dst-down will run three times.<BR>
<BR>
You can use $rm to find out which SIP method was in the request that caused the destination to be detected as down.&nbsp; So this would be INVITE if the destination was detected as down after a call set-up fails, or OPTIONS if it is taken down as a result of a background OPTIONS ping, and so on.<BR>
<BR>
$ru gives you the R-URI of the request.&nbsp; When the destination failure is detected by the background OPTIONS ping this will be the destination URI from the dispatcher table.<BR>
<BR>
For other requests routed through Kamailio either $ru or $du will give you what you want depending upon whether ds_select_dst() or ds_select_domain() was used.<BR>
<BR>
Regards,<BR>
<BR>
Peter<BR>
<BR>
<BR>
On Wed, 2012-01-25 at 20:57 +0200, Yaron Nachum wrote:
<BLOCKQUOTE TYPE=CITE>
    Uri,
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    I found something nice for U :
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <A HREF="http://www.kamailio.org/wiki/features/new-in-3.2.x#dispatcher">http://www.kamailio.org/wiki/features/new-in-3.2.x#dispatcher</A>&nbsp;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    There's a new route event when a destination goes down. You can use it in order to send event / write it to a local variable.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    The question is if there is a way to know which destination went down?&nbsp;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    On Tue, Jan 24, 2012 at 5:07 PM, Uri Shacked &lt;<A HREF="mailto:ushacked@gmail.com">ushacked@gmail.com</A>&gt; wrote:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        Hi,<BR>
        &nbsp;<BR>
        is there a way to get the total up time of kamailio from the cfg file?<BR>
        like $stat(used_size) gives me the stat of the shared memory used size.....<BR>
        &nbsp;<BR>
        and if i am in it... is there a way to get the dispatcher status as well?<BR>
        &nbsp;<BR>
        i am trying to find a way to export these params with out the need to pull them using kamctl.....<BR>
        &nbsp;<BR>
        &nbsp;<BR>
        any ideas?<BR>
        &nbsp;<BR>
        thanks,<BR>
        Uri
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BR>
        _______________________________________________<BR>
        SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<BR>
        <A HREF="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A><BR>
        <A HREF="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</A><BR>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<A HREF="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A>
<A HREF="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</A>
</PRE>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>