<div dir="ltr"><div>I am getting following error in log, I can understand my contact: and Route: values mismatching here. why it is happening? is there a way to get rid on this error?<br><br></div><div>Following is scenario. Only getting error in BYE message. <br></div><div><br></div><div>[UA]--------[OpenSIP]-------[Freeswitch]---------[Opensip]---------[SIP Provide]<br></div><div><br><br>ERROR:dialog:dlg_validate_dialog: failed to validate remote contact: dlg=[sip:16463737221@188.178.235.222:5061;transport=udp] , req=[sip:188.178.235.222;lr;ftag=840e2e35;did=1f4.ca6a6956]<br><br></div>I am using fix_route_dialog() in loose_route() <br><br>if (has_totag()) {<br>                # sequential request withing a dialog should<br>                # take the path determined by record-routing<br>                if (loose_route() || match_dialog())  {<br>                        if ($DLG_status!=NULL &amp;&amp; !validate_dialog() ) {<br>                                xlog(&quot; in-dialog bogus request \n&quot;);<br>                                fix_route_dialog();<br>                         } <br><br>                        xlog(&quot;L_INFO&quot;, &quot;Loose route failed on $hdr(route)\n&quot;);<br>                        if (is_method(&quot;BYE&quot;)) {<br>                                #setflag(ACC_DO); # do accounting ...<br>                                #setflag(ACC_FAILED); # ... even if the transaction fails<br>                        } else if (is_method(&quot;INVITE&quot;)) {<br>                                # even if in most of the cases is useless, do RR for<br>                                # re-INVITEs alos, as some buggy clients do change route set<br>                                # during the dialog.<br>                                record_route();<br>                        }<br><br>                        if (check_route_param(&quot;nat=yes&quot;)) <br>                                setflag(NAT);<br><br>                        # route it out to whatever destination was set by loose_route()<br>                        # in $du (destination URI).<br>                        route(relay);<br>                     }  else {<br><br>                        if ( is_method(&quot;ACK&quot;) ) {<br>                                if ( t_check_trans() ) {<br>                                        # non loose-route, but stateful ACK; must be an ACK after <br>                                        # a 487 or e.g. 404 from upstream server<br>                                        xlog(&quot;non loose-route section\n&quot;);<br>                                        t_relay();<br>                                        exit;<br>                                } else {<br>                                        # ACK without matching transaction -&gt;<br>                                        # ignore and discard<br>                                        xlog(&quot;ACK without matching transaction\n&quot;);<br>                                        exit;<br>                                }<br>                        }<br>                        xlog(&quot;L_INFO&quot;, &quot;destination uri after loose_route: &lt;$du&gt;\n&quot;);<br>                        sl_send_reply(&quot;404&quot;,&quot;Not here&quot;);<br>                }<br>                exit;<br>        }<br><br><br><br><div><br><br><br></div></div>