<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hello,<br>
    <br>
    On 11/16/10 12:43 PM, alex pappas wrote:
    <blockquote
      cite="mid:AANLkTimWTaT2MYzY4knm_Dz27LmJCA-OQUwUgfOR9waj@mail.gmail.com"
      type="cite">[..]<br>
      I also tried to use “<span class="quote">9</span>” - use weight
      based load distribution but with no success. i got in the logs
      that this algorithm is not implemented. I'm doing something wrong
      here or is not implemented in this version of Kamailio. ( 3.0.1)<br>
    </blockquote>
    this algorithm is available starting with version 3.1.0 - weight
    based load balancing is not in 3.0.x.<br>
    <br>
    Btw, you should use the latest in 3.0.x series, 3.0.1 is quite old,
    3.0.3 is more actual. However, 3.1.0 is even greater ;-)<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote
      cite="mid:AANLkTimWTaT2MYzY4knm_Dz27LmJCA-OQUwUgfOR9waj@mail.gmail.com"
      type="cite">
      <br>
      Thank you in advance for your help.<br>
      <br>
      Regards<br>
      Alex<br>
      <br>
      <br>
      <br>
      <br>
      <div class="gmail_quote">On Fri, Nov 12, 2010 at 10:14 PM,
        Daniel-Constantin Mierla <span dir="ltr">&lt;<a
            moz-do-not-send="true" href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div text="#000000" bgcolor="#ffffff"> Hi Alex,<br>
            <br>
            dispatcher module does not send new invites to inactive
            gateways. But in case a destination became inactive while
            some INVITEs were already through dispatcher, these recent
            inactive gateways may still be used for them.<br>
            <br>
            Regarding the probing mode, dispatcher will never select a
            probing gateway as first option to route the call, but they
            are kept as alternative. This is the current implementation,
            we may add a module parameter to skip gateways in probing
            mode even for secondary alternatives.<br>
            <br>
            Non-responsive gateways change the state after a while, see:<br>
            <a moz-do-not-send="true"
href="http://kamailio.org/docs/modules/stable/modules_k/dispatcher.html#id2567110"
              target="_blank">http://kamailio.org/docs/modules/stable/modules_k/dispatcher.html#id2567110</a><br>
            <br>
            Cheers,<br>
            Daniel
            <div>
              <div class="h5"><br>
                <br>
                On 11/12/10 12:58 PM, alex pappas wrote: </div>
            </div>
            <blockquote type="cite">
              <div>
                <div class="h5">Dear all,<br>
                  <br>
                  Does anyone can explain how Dispatcher module is
                  sending calls to the gateways in the different states?<br>
                  <br>
                  I mean if I have 3 gateways and the one of them is in
                  Probing mode why Dispatcher is continuing sending
                  there calls? Why this gateway is not changing from
                  Probing to Inactive since is not replaying to OPTIONS
                  messages send by Kamailio?<br>
                  <br>
                  Configuration:<br>
                  <br>
                  modparam("dispatcher", "flags", 2)<br>
                  modparam("dispatcher", "ds_ping_interval", 5)<br>
                  modparam("dispatcher", "ds_probing_mode", 1)<br>
                  modparam("dispatcher", "ds_probing_threshhold", 2)<br>
                  modparam("dispatcher", "dst_avp", "$avp(s:dst_avp)")<br>
                  modparam("dispatcher", "grp_avp", "$avp(dsgrp)")<br>
                  modparam("dispatcher", "cnt_avp", "$avp(i:202)")<br>
                  modparam("dispatcher", "ds_append_branch", 0)<br>
                  <br>
                  using db for gw:<br>
                  <br>
                  setid 123,destination <a moz-do-not-send="true">sip:xxx.xxxx.xxx</a>,
                  flag 0 ...<br>
                  <br>
                  in ROUTE:<br>
                  if(ds_select_domain("$avp(s:disp_dstgrp)", "4"))<br>
                  <br>
                  in Failure Route<br>
                  <br>
                  if(!ds_next_domain())<br>
                  <br>
                  I want Dispatcher when it sees a node gateway that is
                  dead , to Not send any other calls.<br>
                  <br>
                  Thank you in advance<br>
                  <br>
                  Alex<br>
                  <br>
                   <br>
                </div>
              </div>
              <pre><fieldset></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" 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>
</pre>
            </blockquote>
            <br>
            <pre cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
          </div>
        </blockquote>
      </div>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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></pre>
  </body>
</html>