Hello,

The dispatcher:dst-down and dispatcher:dst-up events are run once each time a destination goes up and down.  So if you have three destinations in your set, and they all go down, dispatcher:dst-down will run three times.

You can use $rm to find out which SIP method was in the request that caused the destination to be detected as down.  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.

$ru gives you the R-URI of the request.  When the destination failure is detected by the background OPTIONS ping this will be the destination URI from the dispatcher table.

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.

Regards,

Peter


On Wed, 2012-01-25 at 20:57 +0200, Yaron Nachum wrote:
Uri,
I found something nice for U :
http://www.kamailio.org/wiki/features/new-in-3.2.x#dispatcher 


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.


The question is if there is a way to know which destination went down? 




On Tue, Jan 24, 2012 at 5:07 PM, Uri Shacked <ushacked@gmail.com> wrote:
Hi,
 
is there a way to get the total up time of kamailio from the cfg file?
like $stat(used_size) gives me the stat of the shared memory used size.....
 
and if i am in it... is there a way to get the dispatcher status as well?
 
i am trying to find a way to export these params with out the need to pull them using kamctl.....
 
 
any ideas?
 
thanks,
Uri

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd