<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>