I used the Xlog and made sure the line is executed.
i saw it in the trace as well....
On Fri, Dec 9, 2011 at 9:26 AM, Daniel-Constantin Mierla
<miconda(a)gmail.com>wrote;wrote:
Hello,
On 12/7/11 3:02 PM, Uri Shacked wrote:
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) {
where do you set $avp(OSPRPL)? Can you add a xlog() message inside the if
to be sure the ds_mark_dst() is executed? Alternative, use debugger module
with cfgtrace to see what actions are executed from config file.
Cheers,
Daniel
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@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
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla --
http://www.asipto.comhttp://linkedin.com/in/miconda --
http://twitter.com/miconda