<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
On 12/7/11 3:02 PM, Uri Shacked wrote:
<blockquote
cite="mid:CAMMbDhRFXp4Uv5gDRd7sDzKTrhsW8Dc6Ww_S6y2EBjfjBXg9gg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">
<div>hi,</div>
<div> </div>
<div>i use "ds_select_domain()" to route a call.</div>
<div>if the destination reply with an error i am using the
next lines in a route that i called from the failure
route:</div>
<div> </div>
<div>if($avp(OSPRPL)!=404) {<br>
</div>
</div>
</div>
</div>
</blockquote>
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.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
cite="mid:CAMMbDhRFXp4Uv5gDRd7sDzKTrhsW8Dc6Ww_S6y2EBjfjBXg9gg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">
<div> ds_mark_dst("IP");<br>
}</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>why? how do i set a destinatio in dispatcher to be
inactive?</div>
<div> </div>
<div>this is my modparams:</div>
<div> </div>
<div>#!ifdef WITH_DISPATCHER<br>
#------ dispatcher params ---------<br>
modparam("dispatcher", "db_url", DBURL)<br>
modparam("dispatcher", "dst_avp", "$avp(dsdst)")<br>
modparam("dispatcher", "cnt_avp", "$avp(dscnt)")<br>
modparam("dispatcher", "grp_avp", "$avp(dsgrp)")<br>
modparam("dispatcher", "attrs_avp", "$avp(dsattrs)")<br>
modparam("dispatcher", "ds_ping_from", "<a
moz-do-not-send="true" href="mailto:sip%3Auser@host.com"
target="_blank">sip:user@host.com</a>")<br>
modparam("dispatcher", "ds_ping_reply_codes",
"class=2;code=405")<br>
modparam("dispatcher", "ds_ping_interval", 30)<br>
modparam("dispatcher", "ds_probing_mode", 1)<br>
modparam("dispatcher", "ds_hash_size", 8)<br>
modparam("dispatcher", "flags", 2)<br>
#!endif<br>
</div>
</div>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" 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>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
</body>
</html>