<div dir="ltr">Great! will give it a shot! <div><br></div><div>Just surprised why it is not matching both dlg and req? does <span style="color:rgb(80,0,80);font-size:12.8000001907349px"> </span><span style="color:rgb(80,0,80);font-size:12.8000001907349px">fix_route_dialog(); has any impact on system when you have very high CPS etc? </span></div><div><span style="color:rgb(80,0,80);font-size:12.8000001907349px"><br></span></div><div><font color="#500050"><span style="font-size:12.8000001907349px">It would be good if fix issue from root, instead of external resources which eat CPU ticks :) </span></font></div><div><br></div><div><span style="font-size:12.8000001907349px"> dlg=[sip:</span><a href="tel:16463737221" value="+16463737221" target="_blank" style="font-size:12.8000001907349px">16463737221</a><span style="font-size:12.8000001907349px">@188.178.</span><span style="font-size:12.8000001907349px">235.222:5061;transport=udp] , req=[sip:188.178.235.222;lr;</span><span style="font-size:12.8000001907349px">ftag=840e2e35;did=1f4.</span><span style="font-size:12.8000001907349px">ca6a6956]</span><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 19, 2015 at 12:24 PM, Vlad Paiu <span dir="ltr"><<a href="mailto:vladpaiu@opensips.org" target="_blank">vladpaiu@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Hello,<br>
<br>
Just to recap, you are saying that the Contact the user agent is
sending is broken and you are happy that OpenSIPS is properly
fixing the message, but you want to get rid of the ERRORs in the
log ? If this is the case, you can use setdebug [1] for this.<br>
<br>
Try something like <br>
<br>
setdebug(-3)<span class=""><br>
if ($DLG_status!=NULL && !validate_dialog() ) {<br>
xlog(" in-dialog bogus request \n");<br>
fix_route_dialog();<br>
}<br></span>
setdebug() <br>
<br>
<a href="http://www.opensips.org/Documentation/Script-CoreFunctions-2-1#toc48" target="_blank">http://www.opensips.org/Documentation/Script-CoreFunctions-2-1#toc48</a><br>
<br>
Best Regards,<br>
<pre cols="72">Vlad Paiu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a> </pre><div><div class="h5">
On 18.03.2015 22:47, Satish Patel wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">I know you guys are super busy in OpenSIPS 2.1
release, but any suggestion on above issue? </div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Mar 18, 2015 at 12:17 AM,
Satish Patel <span dir="ltr"><<a href="mailto:satish.txt@gmail.com" target="_blank">satish.txt@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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:<a href="tel:16463737221" value="+16463737221" target="_blank">16463737221</a>@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 &&
!validate_dialog() ) {<br>
xlog(" in-dialog bogus
request \n");<br>
fix_route_dialog();<br>
} <br>
<br>
xlog("L_INFO", "Loose route failed
on $hdr(route)\n");<br>
if (is_method("BYE")) {<br>
#setflag(ACC_DO); # do
accounting ...<br>
#setflag(ACC_FAILED); #
... even if the transaction fails<br>
} else if (is_method("INVITE")) {<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("nat=yes"))
<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("ACK") ) {<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("non
loose-route section\n");<br>
t_relay();<br>
exit;<br>
} else {<br>
# ACK without
matching transaction -><br>
# ignore and
discard<br>
xlog("ACK without
matching transaction\n");<br>
exit;<br>
}<br>
}<br>
xlog("L_INFO", "destination uri
after loose_route: <$du>\n");<br>
sl_send_reply("404","Not here");<br>
}<br>
exit;<br>
}<br>
<br>
<br>
<br>
<div><br>
<br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>