[SR-Users] set host as inactive and probing in dispatcher
Daniel-Constantin Mierla
miconda at gmail.com
Fri Dec 9 08:26:57 CET 2011
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 at host.com
> <mailto:sip%3Auser 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
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20111209/d3df347c/attachment.htm>
More information about the sr-users
mailing list