<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
On 10/25/11 5:52 PM, Asgaroth wrote:
<blockquote cite="mid:4EA6DB57.6050303@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hi Daniel,<br>
<br>
Thanks for the clarrification,<br>
<br>
On 25/10/2011 16:30, Daniel-Constantin Mierla wrote:
<blockquote cite="mid:4EA6D630.6020001@gmail.com" type="cite">
<h3 class="title">4.6. <code class="function">ds_mark_dst("s")</code>
</h3>
<p> Mark the last used address from destination set as inactive
("i"/"I"/"0"), active ("a"/"A"/"1") or probing ("p"/"P"/"2").
With this function, an automatic detection of failed gateways
can be implemented. When an address is marked as inactive or
probing, it will be ignored by 'ds_select_dst' and
'ds_select_domain'. </p>
</blockquote>
<br>
Above is the part that is a little misleading, it says that <br>
<br>
"When an address is marked as inactive or probing, it will be
ignored by 'ds_select_dst' and 'ds_select_domain'."<br>
<br>
This, to me, means that if a gateway is in probing mode
(Active-Probing) then it wont be selected in the destination set
because it is in probing mode, if this is not the case then maybe
the above line should read:<br>
<br>
"When an address is marked as inactive or inactive-probing, it
will be ignored by 'ds_select_dst' and 'ds_select_domain'."<br>
<br>
This brings me to my next question then, how would I set the state
of a destination to Inactive-Probing (state: IP) from the routing
script. The ds_mark_dst() function only allows one of "a", "i",
"p". <br>
<br>
If I do a ds_mark_dst("i"), then the state changes to "IX",
Inactive with no probing to tell when gateway is back up. <br>
<br>
If I do a ds_mark_dst("i") and then right after ds_mark_dst("p"),
a log is printed saying that you cannot put a destination into
probing state when it is marked as inactive.<br>
</blockquote>
are you sure you run the devel version? There is no such case in the
sources -- send me exactly the log message you get. Only when the
destination is disabled the probing cannot be set, but not the same
case of inactive.<br>
<br>
<blockquote cite="mid:4EA6DB57.6050303@gmail.com" type="cite"> <br>
Is it possible to set the state of a gateway to inactive-probing
from the routing script?<br>
</blockquote>
<br>
Yes, it should be, no constraint in master branch source code.<br>
<br>
Daniel<br>
<br>
<blockquote cite="mid:4EA6DB57.6050303@gmail.com" type="cite"> <br>
Thanks<br>
<br>
<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>
Kamailio Advanced Training, Dec 5-8, Berlin: <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</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>