<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>there is something wrong in your config file, failing to detect
      the traffic from freeswitch. Load debugger module and enable
      cfgtrace logging, then see what actions are executed in the
      configuration file, maybe you can spot what goes wrong there.</p>
    <p>Otherwise, to get more help from the mailing lists, the full
      config is needed.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 22.11.19 09:51, Gaurav Bmotra wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHeMQFoW-RTwCLqRFee==wHq5z+9_nf2BWDOw_P6_cRaFVP12Q@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">hi <br>
        i m using kamailio 5.3 as register server and using dispatcher i
        m dendign the calls to freeswitch ..
        <div><br>
        </div>
        <div>but the issue is then freeswitch send back call to kamailio
          after processing media ... it should go back to client but it
          again send call to freeswitch ,, which create the loop and
          hangup the call with (<span
style="background-color:rgba(255,255,255,0.7);color:rgb(200,0,0);font-family:Ubuntu;font-size:12px">Temporarily
            Unavailable (code: 480)</span>)<br>
          <br>
          <b>what i want <br>
          </b>client1------>Kamailio------>FS-----Kamailio----->Client2<br>
          <br>
          <b>but I am getting this </b></div>
        <div>
          <div>client1------>Kamailio------>FS-----Kamailio----->FS----->kamailio----->FS<br>
            <br>
            <b>Routing Logic<br>
            </b>-------------------------------<br>
            if(!ds_is_from_list()) {                                    
                                                                       
               </div>
          <div>   route(DISPATCH);                                      
                                                                       
                        }                           <br>
          </div>
          <div>--------</div>
          <div># Dispatch requests                                      
                                                                       
                                                                       
                                                           <br>
            route[DISPATCH] {                                          
                                                                       
                                                                       
                                                         <br>
                    # round robin dispatching on gateways group '1'    
                                                                       
                                                                       
                                                         <br>
                    if(!ds_select_dst("1", "4")) {                      
                                                                       
                                                                       
                                                        <br>
                            send_reply("404", "No destination");        
                                                                       
                                                                       
                                                        <br>
                            exit;                                      
                                                                       
                                                                       
                                                         <br>
                    }                                                  
                                                                       
                                                                       
                                                         <br>
                    xdbg("--- SCRIPT: going to <$ru> via
            <$du> (attrs: $xavp(_dsdst_=>attrs))\n");          
                                                                       
                                                                       
                    <br>
                    t_on_failure("RTF_DISPATCH");                      
                                                                       
                                                                       
                                                         <br>
                    route(RELAY);                                      
                                                                       
                                                                       
                                                         <br>
                    exit;                                              
                                                                       
                                                                       
                                                         <br>
            }                                                          
                                                                       
                                                                       
                                                         <br>
                                                                       
                                                                       
                                                                       
                                                         <br>
            # Try next destionations in failure route                  
                                                                       
                                                                       
                                                         <br>
            failure_route[RTF_DISPATCH] {                              
                                                                       
                                                                       
                                                         <br>
                    xnotice("RTF_DISPATCH: $rm $rU [$ci]");            
                                                                       
                                                                       
                                                         <br>
                    if (t_is_canceled()) {                              
                                                                       
                                                                       
                                                        <br>
                            exit;                                      
                                                                       
                                                                       
                                                         <br>
                    }                                                  
                                                                       
                                                                       
                                                         <br>
                    # next DST - only for 500 or local timeout          
                                                                       
                                                                       
                                                        <br>
                    if (t_check_status("(^5)")                          
                                                                       
                                                                       
                                                        <br>
                                    or (t_branch_timeout() and
            !t_branch_replied())) {                                    
                                                                       
                                                                  <br>
                            xnotice("RTF_DISPATCH: WARNING $du is broken
            and marked as inactive");                                  
                                                                       
                                                        <br>
                             # ds_mark_dst("ip");                      
                                                                       
                                                                       
                                                         <br>
                            if(ds_next_dst()) {                        
                                                                       
                                                                       
                                                         <br>
                                    #xdbg("--- SCRIPT: retrying to
            <$ru> via <$du> (attrs:
            $xavp(_dsdst_=>attrs))\n");                              
                                                                       
                                        <br>
                                    t_on_failure("RTF_DISPATCH");      
                                                                       
                                                                       
                                                         <br>
                                    route(RELAY);                      
                                                                       
                                                                       
                                                         <br>
                                    exit;                              
                                                                       
                                                                       
                                                         <br>
                            }                                          
                                                                       
                                                                       
                                                         <br>
                    }                                                  
                                                                       
                                                                       
                                                         <br>
            }                                                        <br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          -- <br>
          <div dir="ltr" class="gmail_signature"
            data-smartmail="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">thank you <br>
                              <br>
                              <br>
                              <br>
                              <br>
                              <br>
                              <br>
                              <br>
                              <font color="#999999"><b>Regards:</b><br>
                                Gaurav Kumar</font><br>
                            </div>
                          </div>
                          <div><br>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - April 27-29, 2020, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>