<div dir="ltr"><div>I used the Xlog and made sure the line is executed.</div>
<div>i saw it in the trace as well....<br><br></div>
<div class="gmail_quote">On Fri, Dec 9, 2011 at 9:26 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div bgcolor="#FFFFFF" text="#000000">Hello,
<div class="im"><br><br>On 12/7/11 3:02 PM, Uri Shacked wrote:
<blockquote 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></div>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 type="cite">
<div class="im">
<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 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></fieldset> <br></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888"></font></span></blockquote><span class="HOEnZb"><font color="#888888"><br><pre cols="72">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre></font></span></div></blockquote></div>
<br></div>