<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hello Jeff,<br>
<br>
It's not that the dialog is already torn down by the time the BYE gets
to that particular portion of script.<br>
It's complaining about the fact that at the dialog creation, the route
had the "lr=on" parameter, and at BYE time, the parameter has been
stripped and set <br>
just to "lr".<br>
<br>
This should not happen in a regular scenario, as other SIP entities
should not explicitly modify the content of Route headers recorded at
Invite time. <br>
You could try to check the enable_full_lr ( [1] ) parameter, and only
attach "lr" instead of "lr=on", and see if this fixes the behavior.<br>
<br>
[1] <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/devel/rr.html#id250149">http://www.opensips.org/html/docs/modules/devel/rr.html#id250149</a><br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">--
Vlad Paiu
OpenSIPS Developer</pre>
<br>
<br>
On 04/09/2011 10:32 PM, Jeff Pyle wrote:
<blockquote cite="mid:C9C62CA2.1D63E%25jpyle@fidelityvoice.com"
type="cite">
<div>Hello,</div>
<div><br>
</div>
<div>I'm trying a new chunklet of config in loose_route(). I believe
this came from a documentation page somewhere, so I don't pretend to
take credit for the concept.</div>
<div><br>
</div>
<div>
<div> # Clean up dialog data if necessary</div>
<div> if ($DLG_status!=NULL &&
!validate_dialog()) {</div>
<div> xlog("L_INFO", "Unable to
validate dialog, fixing - $hdr(CSeq) on $ci\n");</div>
<div> fix_route_dialog();</div>
<div> }</div>
</div>
<div><br>
</div>
<div>I send the first batch of pseudo-production traffic through this
config today and I ended up with a metric ton of:</div>
<div> ERROR:dialog:dlg_validate_dialog: Check failed for route
number 0.
req=[sip:<opensips-IP?;lr;ftag=23ddd50-0-13c4-1f179b-78884527-1f179b;did=45b.b972314],dlg=[sip:<opensips-IP>;lr=on;ftag=23ddd50-0-13c4-1f179b-78884527-1f179b;did=45b.b972314]</div>
<div><br>
</div>
<div>And, the xlogs from the above line:</div>
<div> Unable to validate dialog, fixing - 3 BYE on <callid></div>
<div><br>
</div>
<div>It showed up on a number of BYEs and ACKs. My dialog module
config is as follows:</div>
<div><br>
</div>
<div>
<div># ----- dialog params -----</div>
<div>modparam("dialog", "dlg_flag", 4)</div>
<div>modparam("dialog", "bye_on_timeout_flag", 4)</div>
<div>modparam("dialog", "default_timeout", 21600)</div>
<div>modparam("dialog|sst", "timeout_avp", "$avp(s:dialog_timeout)")</div>
<div>modparam("dialog", "dlg_extra_hdrs", "Hint: dialog expired\r\n")</div>
<div>modparam("dialog", "dlg_match_mode", 1) # 0 = DID_ONLY; 1 = DID
first, SIP second; 2 = SIP only</div>
<div>modparam("dialog", "db_url",
"mysql://osuer:ospass@dbcluster/osdb")</div>
<div>modparam("dialog", "table_name", "dialog_1")</div>
<div>modparam("dialog", "db_mode", 1) # 1 = Realtime to DB; 2 =
delayed; 3 = on shutdown</div>
<div>modparam("dialog", "profiles_with_value", "711calls; 729calls;
calls")</div>
</div>
<div><br>
</div>
<div>create_dialog() runs on all initial INVITEs.</div>
<div><br>
</div>
<div>Is this type of behavior anything close to normal? What might
cause it? My immediate fix is to simply comment out this portion of
the config, but I'm afraid I might be masking a larger issue. Any
suggestions would be great.</div>
<div><br>
</div>
<div>Just had a thought as I was about to send this email. Perhaps
this is because by the time the BYE gets to this portion of the script,
the dialog is already torn down? Could it be that simple, just add "if
!(is_method("BYE") || is_method("ACK"))" to the top line of this config
portion?</div>
<div><br>
</div>
<div><br>
</div>
<div>- Jeff</div>
<div><br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
<br>
</body>
</html>