<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/26/11 11:47 AM, Asgaroth wrote:
    <blockquote cite="mid:4EA7D74A.6070504@gmail.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Hi Daniel,<br>
      <br>
      On 26/10/2011 04:47, Daniel-Constantin Mierla wrote:
      <blockquote cite="mid:4EA782DF.4030206@gmail.com" type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        the purpose with three states (active, inactive and disabled)
        was not to relate probing to selection of gateways, as one may
        want to have even active gateways in probing mode to detect when
        they go down. So, in other words, if probing mode is not checked
        when a gateways is selected, but only if the gateway has the
        state active.<br>
        <br>
      </blockquote>
      <br>
      OK, so, before I continue on testeing between 3.2 and 3.3 dev
      branch, can you confirm that my understanding of the states are
      correct:<br>
      <br>
      Assuming ds_probing_mode = 0 (Only send "ping" requests when
      destination is in probing state)<br>
      <br>
      AX (Active)<br>
      &nbsp;&nbsp;&nbsp; [*] Used by ds_select_* in gateway selection<br>
      &nbsp;&nbsp;&nbsp; [*] No ping probes sent to destination<br>
      AP (Active-Probing)<br>
      &nbsp;&nbsp;&nbsp; [*] Used by ds_select_* in gateway selection<br>
      &nbsp;&nbsp;&nbsp; [*] Ping probes sent to destination<br>
      &nbsp;&nbsp;&nbsp; [*] When reply to ping probe is recieved, state for gateway
      chages to AX (Active)<br>
      IX (Inactive)<br>
      &nbsp;&nbsp;&nbsp; [*] Not used by ds_select_* in gateway selection<br>
      &nbsp;&nbsp;&nbsp; [*] No ping probes sent to destination<br>
      IP (Inactive-Probing)<br>
      &nbsp;&nbsp;&nbsp; [*] Not used by ds_select_* in gateway selection<br>
      &nbsp;&nbsp;&nbsp; [*] Ping probes sent to destination<br>
      &nbsp;&nbsp;&nbsp; [*] When reply to ping probe is recieved, state for gateway
      chages to AX (Active)<br>
      DX (Disabled)<br>
      &nbsp;&nbsp;&nbsp; [*] Not used by ds_select_* in gateway selection<br>
      &nbsp;&nbsp;&nbsp; [*] No ping probes sent to destination<br>
      <br>
      Is the above true for both version 3.2.x and devel branch?<br>
    </blockquote>
    The 3.2 branch got it just few moment ago. I will have to look over
    the code a bit more, since I saw some threshold for probing module,
    I guess was added by Carsten, which should be for inactive at this
    moment. Might be a need for new state, like 'trying' to mark a
    gateway in transition from active to inactive for those that don't
    want to inactivate it immediately, but just after a specific amount
    of failures.<br>
    <br>
    <blockquote cite="mid:4EA7D74A.6070504@gmail.com" type="cite"> <br>
      Just for ease of syntax in routing script, is it possible to do:<br>
      <br>
      ds_mark_dst("ip") = Mark Inactive-Probing<br>
      ds_mark_dst("ap") = Mark Active-Probing<br>
      <br>
      in both version 3.2.x and devel branch? Similar to fifo
      ds_set_state command?<br>
    </blockquote>
    <br>
    I will look into it (just that I am not in the office these days, so
    it may take a bit, or not, depending on how I find time for it).<br>
    <br>
    <blockquote cite="mid:4EA7D74A.6070504@gmail.com" type="cite"> <br>
      Once I understand these correctly, I can continue testing the 2
      versions and see the differences. I suspect v3.2.x does *not* use
      gateway in ds_select_* when destination is in AP mode. But will
      confirm that with testing if my above understanding is correct.<br>
    </blockquote>
    <br>
    The goal is not to relate probing mode to selection of gateways, but
    only to the fact of sending keepalives. Selection of gateways should
    be based on state: active, inactive, disabled.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote cite="mid:4EA7D74A.6070504@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>