<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Ravindra,<br>
      <br>
      Please post a link to the SIP trace/capture showing the entire SIP
      call (INVITE + 200 OK + ACK + BYE). The trace must cover all in
      and out traffic in OpenSIPS.<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
</pre>
    <div class="moz-cite-prefix">On 10/17/2017 12:29 PM, Ravindrakumar
      Bhatt wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAN0RySq7Mi6xn-M-_MACqpMMfz7j0cJeR0xDM9u4UMRaoe89-g@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div>Hello,<br>
            i am using opensips v2.2.1 as SBC.<br>
            call flow is like
            caller->opensips->server->opensips->callie.call
            is established successfully but when BYE is sent by any user
            it is not recognised by topology_hiding_match() also i am
            not getting any dialog related values(DLG_status,DLG_did
            etc) in ACK or BYE method.<br>
            <br>
            here is my logic for  requset handling :<br>
            <br>
            route[PROCESS_INVITE] {<br>
            <br>
                    route("SETCDR");<br>
                    if(t_check_trans()) {<br>
                            drop();<br>
                    }<br>
                    route("CHECK_NAT");<br>
                    create_dialog();<br>
                    do_accounting("aaa","cdr|failed");<br>
                    route("REALY_ROUTE");<br>
                    exit;<br>
            }<br>
            <br>
            route[RELAY_ROUTE] {<br>
                    if(is_method("INVITE|UPDATE")) {<br>
                    xlog("L_INFO","CI:$ci In Relay Route RU:$ru DU:$du
            Tu:$tu TU:$tU CT:$ct\n");<br>
                            if(!has_totag() &&
            is_method("INVITE") && !isflagset(15)) {<br>
                                    xlog("L_INFO","CI:$ci
            Topology_Hiding Call\n");<br>
                                    setflag(15);<br>
                                    topology_hiding("UC");<br>
            #                       record_route();<br>
            <br>
            <br>
                            }<br>
                            if($avp(use-rtpproxy)=="YES")
            {                 <br>
                                    route(PROCESS_RTPPROXY_OFFER);<br>
                            }<br>
                            xlog("L_INFO","CI:$ci Routing Call
            IP:$avp(dest-ip) PORT:$avp(dest-port)\n");<br>
            <br>
                            $avp(call_status)="Failed";<br>
                            t_on_branch("DEFAULT_BRANCH_ROUTE");<br>
                            t_on_reply("DEFAULT_REPLY_ROUTE");<br>
                    }<br>
            <br>
                            xlog("L_INFO","DAILOG STATUS:::: 
            $DLG_end_reason $DLG_did      $DLG_status $DLG_count\n");<br>
            <br>
            #       record_route();<br>
                    if (!t_relay()) {<br>
                            sl_reply_error();<br>
                    }<br>
                    exit;<br>
            }<br>
            <br>
            route[MATCH_DIALOG] {<br>
            <br>
                    xlog("L_INFO",":::::DAILOG STATUS:::: $rm:
            $DLG_end_reason $DLG_did     $DLG_status $DLG_count\n");
            #HERE I AM GETTING most values null <br>
                    if(has_totag() &&
            is_method("INVITE|ACK|BYE|UPDATE|REFER|PRACK|INFO") ) {<br>
                            xlog("L_INFO","INSIDE MATCH_DIALOG ::::
            $rm\n");<br>
            #               loose_route();  <br>
                            xlog(" found match request to a dialog \n");<br>
                            if(topology_hiding_match()) {               
                #THIS CONDITIONS FAILS FOR ALL REQUESTS<br>
                                    if(is_method("BYE")) {<br>
                                            rtpproxy_unforce();<br>
                                    }<br>
                                    route("RELAY_ROUTE");<br>
                            }<br>
                    }<br>
            }<br>
            <br>
            what is going wrong here ? is there any way to handle this
            issue?<br>
            <br>
          </div>
          Thanks and  regards ,<br>
        </div>
        Ravindra Bhatt<br>
      </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>