<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>
What is the OpenSIPS SVN version and revision that you are using ?<br>
There was recently a bug found, where dialogs would get stuck for
Cancels that had a To-Tag, and it was fixed in rev 9382 .<br>
<br>
Regards,<br>
Vlad<br>
<br>
Pe 11/21/2012 9:19 PM, Brett Nemeroff a scris:<br>
</div>
<blockquote
cite="mid:CAPwC5wwnrkxThLo3oh54WGob3-GTJNVF7ou42ZMaVnXDtf1JXQ@mail.gmail.com"
type="cite">Hey All,
<div>I'm doing simple dialog based topo hiding and I noticed that
CANCELd dialogs are hanging around in state 5. They are starting
to stack up. </div>
<div><br>
</div>
<div>
<div>Here's an example of one of the dialogs.. I kind of thought
that when the timeout ran down, the dialog would disappear,
but it's not:</div>
</div>
<div><br>
</div>
<div>
<p style="margin:0px;font-size:13px;font-family:Arial">dialog::
hash=1645:1160860947</p>
<p style="margin:0px;font-size:13px;font-family:Arial"><span
class="Apple-tab-span" style="white-space:pre"> </span>state::
5</p>
<p style="margin:0px;font-size:13px;font-family:Arial"><span
class="Apple-tab-span" style="white-space:pre"> </span>user_flags::
0</p>
<p style="margin:0px;font-size:13px;font-family:Arial"><span
class="Apple-tab-span" style="white-space:pre"> </span>timestart::
0</p>
<p style="margin:0px;font-size:13px;font-family:Arial"><span
class="Apple-tab-span" style="white-space:pre"> </span>timeout::
0</p>
<p style="margin:0px;font-size:13px;font-family:Arial"><span
class="Apple-tab-span" style="white-space:pre"> </span>callid::
<a moz-do-not-send="true"
href="mailto:69126-1353462109-9996@1.2.3.4">69126-1353462109-9996@1.2.3.4</a></p>
<p style="margin:0px;font-size:13px;font-family:Arial"><span
class="Apple-tab-span" style="white-space:pre"> </span>from_uri::
<a moz-do-not-send="true"
href="http://sip:14387649628@1.2.3.4:5060">sip:14387649628@1.2.3.4:5060</a></p>
<p style="margin:0px;font-size:13px;font-family:Arial"><span
class="Apple-tab-span" style="white-space:pre"> </span>to_uri::
<a moz-do-not-send="true"
href="mailto:sip%3A50931111111@5.6.7.8">sip:50931111111@5.6.7.8</a></p>
<p style="margin:0px;font-size:13px;font-family:Arial"><span
class="Apple-tab-span" style="white-space:pre"> </span>caller_tag::
201142122000875167015</p>
<p style="margin:0px;font-size:13px;font-family:Arial"><span
class="Apple-tab-span" style="white-space:pre"> </span>caller_contact::
<a class="moz-txt-link-freetext" href="sip:1.2.3.4:5060;transport=udp">sip:1.2.3.4:5060;transport=udp</a></p>
<p style="margin:0px;font-size:13px;font-family:Arial"><span
class="Apple-tab-span" style="white-space:pre"> </span>callee_cseq::
0</p>
<p style="margin:0px;font-size:13px;font-family:Arial"><span
class="Apple-tab-span" style="white-space:pre"> </span>caller_route_set:: </p>
<p style="margin:0px;font-size:13px;font-family:Arial"><span
class="Apple-tab-span" style="white-space:pre"> </span>caller_bind_addr::
udp:<a moz-do-not-send="true" href="http://5.6.7.8:5060">5.6.7.8:5060</a></p>
<p style="margin:0px;font-size:13px;font-family:Arial"><span
class="Apple-tab-span" style="white-space:pre"> </span>callee_tag::
2011411220122012615936129</p>
<p style="margin:0px;font-size:13px;font-family:Arial"><span
class="Apple-tab-span" style="white-space:pre"> </span>callee_contact::
<a class="moz-txt-link-freetext" href="sip:9.8.7.6:5060;transport=udp">sip:9.8.7.6:5060;transport=udp</a></p>
<p style="margin:0px;font-size:13px;font-family:Arial"><span
class="Apple-tab-span" style="white-space:pre"> </span>caller_cseq::
1</p>
<p style="margin:0px;font-size:13px;font-family:Arial"><br>
</p>
<p style="margin:0px;font-size:13px;font-family:Arial">
This has been around for about 18 hours! SIP Trace looks
pretty normal really. </p>
<p style="margin:0px;font-size:13px;font-family:Arial"><br>
</p>
<p style="margin:0px;font-size:13px;font-family:Arial">To
properly support topo hiding, I've got this at the top of the
route processing:</p>
<p style="margin:0px;font-size:13px;font-family:Arial"><br>
</p>
<p style="margin:0px"> if (has_totag()) {</p>
<p style="margin:0px">
if(is_method("INVITE|ACK|BYE|UPDATE|CANCEL")) {</p>
<p style="margin:0px"> if(match_dialog())
{</p>
<p style="margin:0px"> t_relay();</p>
<p style="margin:0px"> exit;</p>
<p style="margin:0px">
}</p>
<p style="margin:0px"> }</p>
<p style="margin:0px"><br>
</p>
<p style="margin:0px">I originally didn't include CANCEL in the
method check, but it caused CANCELs to be ignored by one of
the endpoints. Granted, I know the endpoints are using
switches that arn't known for being very compliant. When I
added in CANCEL in this check, the sip traces now look proper
and both sides are happy with the request being terminated,
but the dialog persists in memory.</p>
<p style="margin:0px"><br>
</p>
<p style="margin:0px">Any ideas why these dialogs are not
clearing out of opensips?</p>
<p style="margin:0px;font-size:13px;font-family:Arial"><br>
</p>
<p style="margin:0px;font-size:13px;font-family:Arial">
<br>
</p>
<p style="margin:0px;font-size:13px;font-family:Arial">Thanks,</p>
<p style="margin:0px;font-size:13px;font-family:Arial">Brett</p>
<p style="margin:0px;font-size:13px;font-family:Arial"><br>
</p>
</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>