[SR-Users] set host as inactive and probing in dispatcher

Uri Shacked ushacked at gmail.com
Wed Dec 7 15:02:31 CET 2011


 hi,

i use "ds_select_domain()" to route a call.
if the destination reply with an error i am using the next lines in a route
that i called from the failure route:

if($avp(OSPRPL)!=404) {
 ds_mark_dst("IP");
 }

after trying this line i do "kamctl fifo ds_list" and i see the host is
still at "AX". and in the next call the dispatcher still tries the same
destination.

why? how do i set a destinatio in dispatcher to be inactive?

this is my modparams:

#!ifdef WITH_DISPATCHER
#------ dispatcher params ---------
modparam("dispatcher", "db_url", DBURL)
modparam("dispatcher", "dst_avp", "$avp(dsdst)")
modparam("dispatcher", "cnt_avp", "$avp(dscnt)")
modparam("dispatcher", "grp_avp", "$avp(dsgrp)")
modparam("dispatcher", "attrs_avp", "$avp(dsattrs)")
modparam("dispatcher", "ds_ping_from", "sip:user at host.com")
modparam("dispatcher", "ds_ping_reply_codes", "class=2;code=405")
modparam("dispatcher", "ds_ping_interval", 30)
modparam("dispatcher", "ds_probing_mode", 1)
modparam("dispatcher", "ds_hash_size", 8)
modparam("dispatcher", "flags", 2)
#!endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20111207/2f7f05b8/attachment.htm>


More information about the sr-users mailing list