<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">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)<br>
if ($DLG_status!=NULL && !validate_dialog() ) {<br>
xlog(" in-dialog bogus request \n");<br>
fix_route_dialog();<br>
}<br>
setdebug() <br>
<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreFunctions-2-1#toc48">http://www.opensips.org/Documentation/Script-CoreFunctions-2-1#toc48</a><br>
<br>
Best Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
On 18.03.2015 22:47, Satish Patel wrote:<br>
</div>
<blockquote
cite="mid:CAPgF-fquhQQLtr4b5+_Gb1M4xSaTCNNLcUnFHV=MO7KCHkgFZg@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 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>