<p dir="ltr">You need to do this before the create_dialog() call</p>
<div class="gmail_quote">On Jul 14, 2014 10:33 AM, "jing" <<a href="mailto:605507247@qq.com">605507247@qq.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><font color="#000000">Thanks for your reply.But I have another question, I used active_dialogs </font><font color="#000000"> in the cfg file as this:</font></div>
<div><font></font> </div>
<div><font color="#000000">if (is_method("INVITE")) {<br> if ($stat(active_dialogs)>=1){<br> sl_send_reply("503", "Service Unavailable");<br> }<br>
</font></div>
<div><font color="#000000">
<div><font color="#000000">But it seems not right. </font></div>
<div><font color="#000000">I use sipp to test the limit ,but when the value of active_dialogs</font><font color="#000000"> aim to the number I set ,</font></div>
<div><font color="#000000">opensips sent 503,but the value of active_dialogs<font color="#000000"> </font>sitll increase. </font></div>
<div><font color="#000000">So I want to know how the value of this paramer come</font><font color="#000000">from.</font></div>
<div><font color="#000000">Or is there something wrong in my cfg document?</font></div>
<div> </div>
<div>regards,</div>
<div>Jing</div></font></div><div><br></div><div><br></div><div style="font-size:12px;font-family:Arial Narrow;padding:2px 0 2px 0">------------------ 原始邮件 ------------------</div><div style="font-size:12px;background:#efefef;padding:8px">
<div><b>发件人:</b> "Schneur Rosenberg [via OpenSIPS (Open SIP Server)]"<<a href="http://user/SendEmail.jtp?type=node&node=7592371&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>>; </div>
<div><b>发送时间:</b> 2014年7月14日(星期一) 下午2:08</div><div><b>收件人:</b> "jing "<<a href="http://user/SendEmail.jtp?type=node&node=7592371&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>>; </div>
<div><b>主题:</b> Re: Dialog Concurrency Control Issue.</div></div><div><br></div><p dir="ltr">Very simple, before creating a new dialog check how many open dialogs exist.</p>
<div class="gmail_quote">On Jul 14, 2014 9:05 AM, "jing" <<a href="http://user/SendEmail.jtp?type=node&node=7592369&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:<br type="attribution">
<blockquote style="BORDER-LEFT:#cccccc 2px solid;PADDING-BOTTOM:0px;PADDING-LEFT:1em;PADDING-RIGHT:1em;PADDING-TOP:0px" class="gmail_quote">hi,Bogdan<br><br><br> I want to limit the total number of active dialogs ,what should I do ?<br>
<br>I found there are many questions about "Concurrent calls limitation " based<br>on per user, it's not what I need.<br><br>I appreciate your advice very much, more detailed the better.<br><br>Thanks,<br>Regards,<br>
jing<br><br><br><br>--<br>View this message in context: <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/Dialog-Concurrency-Control-Issue-tp6172931p7592368.html" rel="nofollow" link="external" target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/Dialog-Concurrency-Control-Issue-tp6172931p7592368.html</a><br>
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.<br><br>_______________________________________________<br>Users mailing list<br><a href="http://user/SendEmail.jtp?type=node&node=7592369&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="nofollow" link="external" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></blockquote></div><br>_______________________________________________ <br>
Users mailing list <br><a href="http://user/SendEmail.jtp?type=node&node=7592369&i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a> <br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="nofollow" link="external" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br><br>
<hr color="#cccccc" size="1" noshade>
<div style="FONT:12px tahoma,geneva,helvetica,arial,sans-serif;COLOR:#444">
<div style="FONT-WEIGHT:bold">If you reply to this email, your message will be added to the discussion below:</div><a href="http://opensips-open-sip-server.1449251.n2.nabble.com/Dialog-Concurrency-Control-Issue-tp6172931p7592369.html" rel="nofollow" link="external" target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/Dialog-Concurrency-Control-Issue-tp6172931p7592369.html</a> </div>
<div style="MARGIN-TOP:0.4em;FONT:11px/1.5em tahoma,geneva,helvetica,arial,sans-serif;COLOR:#666">To unsubscribe from Dialog Concurrency Control Issue., <a rel="nofollow" link="external">click here</a>.<br><a style="FONT:9px serif" href="http://opensips-open-sip-server.1449251.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" link="external" target="_blank">NAML</a> </div>
        
        
        
<br><hr align="left" width="300">
View this message in context: <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/Dialog-Concurrency-Control-Issue-tp7592371.html" target="_blank">回复: Dialog Concurrency Control Issue.</a><br>
Sent from the <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html" target="_blank">OpenSIPS - Users mailing list archive</a> at Nabble.com.<br><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>