<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi, Satish!<br>
      <br>
      If you want to stop OpenSIPS from failing over to next FS2, you
      should not call t_relay() in failure_route for the 404 status.<br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 03/08/2015 03:57 PM, Satish Patel
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAPgF-fr2u=Y425h-J78z_fL93Rz-32a3qWDNE4+Nq2+5HKx-1Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>I have two Freeswitch in dispatcher, everything works great
          but i have notice in sip trace if FS1 receive 404 SIP code
          then it sending it to next FS2, i think it should stop there
          instead of forwarding next FS2 </div>
        <div><br>
        </div>
        <div>Following is my config</div>
        <div><br>
        </div>
        <div>#### Dispatcher</div>
        <div>loadmodule "dispatcher.so"</div>
        <div>modparam("dispatcher", "dst_avp", "$avp(271)")</div>
        <div>modparam("dispatcher", "grp_avp", "$avp(272)")</div>
        <div>modparam("dispatcher", "cnt_avp", "$avp(273)")</div>
        <div>modparam("dispatcher", "ds_ping_interval", 5)</div>
        <div>modparam("dispatcher", "ds_probing_threshhold", 5)</div>
        <div>modparam("dispatcher", "ds_probing_mode", 0)</div>
        <div>modparam("dispatcher", "options_reply_codes", "501, 403,
          200")</div>
        <div>modparam("dispatcher", "db_url",
          "mysql://opensips:xxxxxxxx@localhost/opensips")</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>...</div>
        <div>...</div>
        <div><br>
        </div>
        <div>
          <div>route[to_dispatcher] {</div>
          <div><br>
          </div>
          <div>        # Dispatch to FS</div>
          <div>        if ( !ds_select_dst("1", "4", "FM10")) {</div>
          <div>                send_reply("500","Unable to dispatch call
            to Freeswitch");</div>
          <div>                exit;</div>
          <div>        } else {</div>
          <div>        xlog("L_WARN", "dispatcher: Attempting to
            dispatch call to $du\n");</div>
          <div>       </div>
          <div>        }</div>
          <div>        t_on_failure("dispatcher_rollover");</div>
          <div>        t_relay();</div>
          <div>}</div>
          <div><br>
          </div>
          <div>failure_route[dispatcher_rollover] {</div>
          <div>      </div>
          <div>        if (t_was_cancelled()) {</div>
          <div>                exit;</div>
          <div>        }</div>
          <div>        if (t_check_status("408") &amp;&amp;
            t_local_replied("all")) {</div>
          <div>        xlog("L_NOTICE", "dispatcher: connection timeout:
            $rd\n");</div>
          <div>        ds_mark_dst("p");</div>
          <div>        }</div>
          <div>        if(!ds_next_dst()) {</div>
          <div>                xlog("L_ERR", "dispatcher: No more
            dispatcher in route set\n");</div>
          <div>                t_reply("500", "Temporary failure");</div>
          <div>                exit;</div>
          <div>        }</div>
          <div>        xlog("L_INFO", "dispatcher: attempting relay to
            new dispatcher: $du\n");</div>
          <div>        t_on_failure("dispatcher_rollover");</div>
          <div>        t_relay();</div>
          <div>}</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>