You want to trade concurrent call scripts? I have one to and sometimes run into issues where it thinks there is an existing call for a user so it sends a reached max calls limit.<br><br><br><br><br><div class="gmail_quote">
On Thu, Nov 3, 2011 at 3:36 PM, Ryan Revels <span dir="ltr"><<a href="mailto:ryan@revelous.net">ryan@revelous.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<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 face="'courier new', monospace"># Check gateway calls total</font></div><div><font face="'courier new', monospace">if ($avp(custgwtotal_limit) != "0" && $avp(custgwtotal_limit) != NULL && $avp(custgwtotal_limit) != "")</font></div>
<div><font face="'courier new', monospace">{</font></div><div><font face="'courier new', monospace"> get_profile_size("custgwtotal","$rd","$avp(custgwtotal_count)");</font></div>
<div><font face="'courier new', monospace"> if (!$avp(custgwtotal_count) < $avp(custgwtotal_limit))</font></div><div><font face="'courier new', monospace"> {</font></div>
<div><font face="'courier new', monospace"> sl_send_reply("486","Endpoint Session Limit");</font></div><div><font face="'courier new', monospace"> exit;</font></div>
<div><font face="'courier new', monospace"> }</font></div><div><font face="'courier new', monospace">}</font></div></div><div><font face="'courier new', monospace">set_dlg_profile("custgwtotal","$rd"); #count total calls to customer's IP</font></div>
<div><font face="'courier new', monospace"><br></font></div><div><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 face="arial, helvetica, sans-serif"><br></font></div><div><div><font face="'courier new', monospace">dialog:: hash=629:349156783</font></div><div><font face="'courier new', monospace"><span style="white-space:pre-wrap">        </span>state:: 3</font></div>
<div><font face="'courier new', monospace"><span style="white-space:pre-wrap">        </span>user_flags:: 0</font></div><div><font face="'courier new', monospace"><span style="white-space:pre-wrap">        </span>timestart:: 1320336333</font></div>
<div><font face="'courier new', monospace"><span style="white-space:pre-wrap">        </span>timeout:: 1320357957</font></div><div><font face="'courier new', monospace"><span style="white-space:pre-wrap">        </span>callid:: did2.139.1120741</font></div>
<div><font face="'courier new', monospace"><span style="white-space:pre-wrap">        </span>from_uri:: <a href="mailto:sip%3A16034299966@64.136.174.30" target="_blank">sip:16034299966@64.136.174.30</a></font></div>
<div><font face="'courier new', monospace"><span style="white-space:pre-wrap">        </span>to_uri:: <a href="mailto:sip%3A16038869119@184.106.218.8" target="_blank">sip:16038869119@184.106.218.8</a></font></div>
<div><font face="'courier new', monospace"><span style="white-space:pre-wrap">        </span>caller_tag:: 1ae26ee84c61df6b84baef371d2bf5e4</font></div><div><font face="'courier new', monospace"><span style="white-space:pre-wrap">        </span>caller_contact:: sip:184.106.219.203:5060;transport=udp</font></div>
<div><font face="'courier new', monospace"><span style="white-space:pre-wrap">        </span>callee_cseq:: 0</font></div><div><font face="'courier new', monospace"><span style="white-space:pre-wrap">        </span>caller_route_set:: </font></div>
<div><font face="'courier new', monospace"><span style="white-space:pre-wrap">        </span>caller_bind_addr:: udp:<a href="http://184.106.218.8:5060" target="_blank">184.106.218.8:5060</a></font></div>
<div><font face="'courier new', monospace"><span style="white-space:pre-wrap">        </span>callee_tag:: as58f4e19a</font></div><div><font face="'courier new', monospace"><span style="white-space:pre-wrap">        </span>callee_contact:: <a href="mailto:sip%3A16038869119@71.168.70.47" target="_blank">sip:16038869119@71.168.70.47</a></font></div>
<div><font face="'courier new', monospace"><span style="white-space:pre-wrap">        </span>caller_cseq:: 2</font></div><div><font face="'courier new', monospace"><span style="white-space:pre-wrap">        </span>callee_route_set:: </font></div>
<div><font face="'courier new', monospace"><span style="white-space:pre-wrap">        </span>callee_bind_addr:: udp:<a href="http://184.106.218.8:5060" target="_blank">184.106.218.8:5060</a></font></div>
<div style="font-family:arial, helvetica, sans-serif"><br></div></div><div><font face="arial, helvetica, sans-serif">Any help would be appreciated.</font></div><div><font face="arial, helvetica, sans-serif"><br>
</font></div><div><font face="arial, helvetica, sans-serif">Thanks,</font></div><div><font face="arial, helvetica, sans-serif">Ryan</font></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><br clear="all"><br>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--<br>