<!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 bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
From the output of dlg_list, I can see that the ACK was never
received by OpenSIPS, so seems this is the source of your problem.<br>
<br>
You could try to set the dialog timeout to a lower value after the
200 OK is received ( couple of seconds ), and increase it after the
ACK is received to a couple of hours.<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer</pre>
<br>
On 11/03/2011 10:36 PM, Ryan Revels wrote:
<blockquote
cite="mid:CAKFmOsHESWfTsywD-2tsin+v9zMLvVO4he7ybs74z=cGALT9JA@mail.gmail.com"
type="cite">
<div>I've run into an issue where <i>very</i> rarely, dialogs
will "hang", that is, the dialog will continue to exist even
though the call never connected. In the example I managed to
track down, the proxy should reject the call (because a limit of
concurrent calls has been reached) and at first, it seems like
it's going to... but then it sends a 100 Trying and continues to
route the call to the destination. From there, everything
spirals and the dialog doesn't die until it hits the global
timeout.</div>
<div><br>
</div>
<div>The relevant portion of my script looks like:</div>
<div><br>
</div>
<div>
<div><font class="Apple-style-span" face="'courier new',
monospace"># Check gateway calls total</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace">if ($avp(custgwtotal_limit) != "0" &&
$avp(custgwtotal_limit) != NULL &&
$avp(custgwtotal_limit) != "")</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace">{</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace">
get_profile_size("custgwtotal","$rd","$avp(custgwtotal_count)");</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"> if (!$avp(custgwtotal_count) <
$avp(custgwtotal_limit))</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"> {</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"> sl_send_reply("486","Endpoint Session
Limit");</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"> exit;</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"> }</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace">}</font></div>
</div>
<div><font class="Apple-style-span" face="'courier new',
monospace">set_dlg_profile("custgwtotal","$rd"); #count total
calls to customer's IP</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><br>
</font></div>
<div><span class="Apple-style-span" style="font-family:
arial,helvetica,sans-serif;">I've attached a pcap example of
what the signaling looks like when the dialog hangs. For this
example, the output in dlg_list looks like:</span></div>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif"><br>
</font></div>
<div>
<div><font class="Apple-style-span" face="'courier new',
monospace">dialog:: hash=629:349156783</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>state:: 3</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>user_flags:: 0</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>timestart:: 1320336333</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>timeout:: 1320357957</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>callid:: did2.139.1120741</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>from_uri:: <a moz-do-not-send="true"
href="mailto:sip%3A16034299966@64.136.174.30">sip:16034299966@64.136.174.30</a></font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>to_uri:: <a moz-do-not-send="true"
href="mailto:sip%3A16038869119@184.106.218.8">sip:16038869119@184.106.218.8</a></font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>caller_tag::
1ae26ee84c61df6b84baef371d2bf5e4</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>caller_contact::
sip:184.106.219.203:5060;transport=udp</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>callee_cseq:: 0</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>caller_route_set:: </font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>caller_bind_addr:: udp:<a
moz-do-not-send="true" href="http://184.106.218.8:5060">184.106.218.8:5060</a></font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>callee_tag:: as58f4e19a</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>callee_contact:: <a moz-do-not-send="true"
href="mailto:sip%3A16038869119@71.168.70.47">sip:16038869119@71.168.70.47</a></font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>caller_cseq:: 2</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>callee_route_set:: </font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>callee_bind_addr:: udp:<a
moz-do-not-send="true" href="http://184.106.218.8:5060">184.106.218.8:5060</a></font></div>
<div style="font-family: arial,helvetica,sans-serif;"><br>
</div>
</div>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif">Any help would be appreciated.</font></div>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif"><br>
</font></div>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif">Thanks,</font></div>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif">Ryan</font></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>
</body>
</html>