<DIV>hi,Bogdan<BR></DIV>
<DIV>I will see to it, thank you.</DIV>
<DIV>regards,</DIV>
<DIV>Jing</DIV><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------&nbsp;原始邮件&nbsp;------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Bogdan-Andrei Iancu"&lt;bogdan@opensips.org&gt;; </div><div><b>发送时间:</b> 2014年7月15日(星期二) 晚上7:33</div><div><b>收件人:</b> "jing "&lt;605507247@qq.com&gt;; "users"&lt;users@lists.opensips.org&gt;; </div><div><b>主题:</b> Re: 回复: 回复: 回复: [OpenSIPS-Users] 回复: 回复: Dialog Concurrency Control Issue.</div></div><div><br></div><DIV class=moz-cite-prefix><TT>Hi,<BR>OK, that's good. But not enough - as Liviu mentioned in a separate email, the test and set you do (check the number of dialogs and create a new dialog) is not an atomic operation, considering the fact that opensips is doing multi-processing. You should protect that test&amp;set operation with a lock, to make it atomic. see:<BR>&nbsp;&nbsp;&nbsp; <A class=moz-txt-link-freetext href="http://www.opensips.org/html/docs/modules/1.11.x/cfgutils.html#id294109" target=_blank>http://www.opensips.org/html/docs/modules/1.11.x/cfgutils.html#id294109</A><BR><BR>Regards,<BR></TT><PRE class=moz-signature cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<A class=moz-txt-link-freetext href="http://www.opensips-solutions.com" target=_blank>http://www.opensips-solutions.com</A></PRE>On 15.07.2014 14:29, jing wrote:<BR></DIV>
<BLOCKQUOTE cite=mid:tencent_410D62904DFC7684586A9A5E@qq.com type="cite">
<DIV>
<DIV>hi,Bogdan<BR>Thanks for your help.</DIV>
<DIV>I changed the script as fllow. Then when I start the second call ,it send 503.</DIV>
<DIV>
<DIV>if (is_method("INVITE")) {<BR>xlog("active dialog is $stat(active_dialogs)");</DIV>
<DIV>if ($DLG_count&gt;=1){</DIV>
<DIV>&nbsp;xlog("we have more than 1 call(s) - currently $stat(active_dialogs) \n");<BR>sl_send_reply("503", "Service Unavailable");<BR>exit;<BR>}<BR># create dialog with timeout<BR>if ( !create_dialog("B") ) {<BR>send_reply("500","Internal Server Error");<BR>exit;<BR>}</DIV>
<DIV>setflag(ACC_DO); # do accounting<BR>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,<BR>Regards,<BR>jing<BR><BR></DIV></DIV></DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV style="PADDING-BOTTOM: 2px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: Arial Narrow; FONT-SIZE: 12px; PADDING-TOP: 2px">------------------&nbsp;原始邮件&nbsp;------------------</DIV>
<DIV style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>发件人:</B> "Bogdan-Andrei Iancu"<A class=moz-txt-link-rfc2396E href="mailto:bogdan@opensips.org" target=_blank>&lt;bogdan@opensips.org&gt;</A>; </DIV>
<DIV><B>发送时间:</B> 2014年7月15日(星期二) 下午5:35</DIV>
<DIV><B>收件人:</B> "jing "<A class=moz-txt-link-rfc2396E href="mailto:605507247@qq.com" target=_blank>&lt;605507247@qq.com&gt;</A>; "users"<A class=moz-txt-link-rfc2396E href="mailto:users@lists.opensips.org" target=_blank>&lt;users@lists.opensips.org&gt;</A>; </DIV>
<DIV><B>主题:</B> Re: 回复: 回复: [OpenSIPS-Users] 回复: 回复: Dialog Concurrency Control Issue.</DIV></DIV>
<DIV><BR></DIV>
<DIV class=moz-cite-prefix><TT>Place a xlog message inside the IF statement, to see if you ever get there :<BR><BR></TT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($stat(active_dialogs)&gt;=1){<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog("we have more than 1 call(s) - currently $stat(active_dialogs) \n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply("503", "Service Unavailable");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<B> &nbsp;&nbsp; exit;</B><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <PRE class=moz-signature cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<A class=moz-txt-link-freetext href="http://www.opensips-solutions.com" target=_blank moz-do-not-send="true">http://www.opensips-solutions.com</A></PRE>On 15.07.2014 12:28, jing wrote:<BR></DIV>
<BLOCKQUOTE cite=mid:tencent_0F2B992D67CEA29059A3FC30@qq.com type="cite">
<DIV>hi,Bogdan<BR></DIV>
<DIV>I have tried , &nbsp;but it is no change to have exit.</DIV>
<DIV>regards,</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV style="PADDING-BOTTOM: 2px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: Arial Narrow; FONT-SIZE: 12px; PADDING-TOP: 2px">------------------&nbsp;原始邮 件&nbsp;------------------</DIV>
<DIV style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>发件人:</B> "Bogdan-Andrei Iancu"<A class=moz-txt-link-rfc2396E href="mailto:bogdan@opensips.org" target=_blank moz-do-not-send="true">&lt;bogdan@opensips.org&gt;</A>; </DIV>
<DIV><B>发送时间:</B> 2014年7月15日(星期二) 下午5:26</DIV>
<DIV><B>收件人:</B> "jing "<A class=moz-txt-link-rfc2396E href="mailto:605507247@qq.com" target=_blank moz-do-not-send="true">&lt;605507247@qq.com&gt;</A>; "users"<A class=moz-txt-link-rfc2396E href="mailto:users@lists.opensips.org" target=_blank moz-do-not-send="true">&lt;users@lists.opensips.org&gt;</A>; </DIV>
<DIV><B>主题:</B> Re: 回复: [OpenSIPS-Users] 回复: 回复: Dialog Concurrency Control Issue.</DIV></DIV>
<DIV><BR></DIV>
<DIV class=moz-cite-prefix><TT>Because you need to have an "exit;" after the sl_send_reply():<BR><BR></TT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($stat(active_dialogs)&gt;=1){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply("503", "Service Unavailable");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<B> &nbsp;&nbsp; exit;</B><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR><BR>Otherwise the script execution will continue.<BR><BR>Regards,<BR><PRE class=moz-signature cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<A class=moz-txt-link-freetext href="http://www.opensips-solutions.com" target=_blank moz-do-not-send="true">http://www.opensips-solutions.com</A></PRE>On 15.07.2014 12:19, jing wrote:<BR></DIV>
<BLOCKQUOTE cite=mid:tencent_48ED3AD33206F1B3771E1C3D@qq.com type="cite">
<DIV>hi,Bogdan.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I just want to limit the total number of active dialog. And now I have&nbsp;2 questions .</DIV>
<DIV>&nbsp;</DIV>
<DIV>I changed the script like this:</DIV>
<DIV>&nbsp;</DIV>
<DIV>if (is_method("INVITE")) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("active dialog is $stat(active_dialogs)");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("dlgcount is $DLG_count");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($stat(active_dialogs)&gt;=1){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply("503", "Service Unavailable");<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # create dialog with timeout<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( !create_dialog("B") ) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; send_reply("500","Internal Server Error");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setflag(ACC_DO); # do accounting<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR></DIV>
<DIV>Then I started 3 dialog,&nbsp;they were all successful , but no 503 sent. The log showed:</DIV>
<DIV>
<DIV>active dialog is 2<BR>dlgcount is 2</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>I used opensipsctl fifo command to show the dialog statistics, it showed </DIV>
<DIV>dialog:active_dialogs = 3.</DIV>
<DIV>1.what is wrong in my script ?</DIV>
<DIV>2. How to&nbsp;end the&nbsp;dialogs which have been active long time ,but have no response.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Or is there other way to limit the total number of active dialog?</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am a newbie to opensips,&nbsp; would you please tell me more detailed advice?</DIV>
<DIV>Very thanks!</DIV>
<DIV>kind regards</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV style="PADDING-BOTTOM: 2px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: Arial Narrow; FONT-SIZE: 12px; PADDING-TOP: 2px">------------------&nbsp;原始邮 件&nbsp;------------------</DIV>
<DIV style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>发件人:</B> "Bogdan-Andrei Iancu"<A class=moz-txt-link-rfc2396E href="mailto:bogdan@opensips.org" target=_blank moz-do-not-send="true">&lt;bogdan@opensips.org&gt;</A>; </DIV>
<DIV><B>发送时间:</B> 2014年7月15日(星期二) 下午4:43</DIV>
<DIV><B>收件人:</B> "users"<A class=moz-txt-link-rfc2396E href="mailto:users@lists.opensips.org" target=_blank moz-do-not-send="true">&lt;users@lists.opensips.org&gt;</A>; "jing "<A class=moz-txt-link-rfc2396E href="mailto:605507247@qq.com" target=_blank moz-do-not-send="true">&lt;605507247@qq.com&gt;</A>; </DIV>
<DIV><B>主题:</B> Re: [OpenSIPS-Users] 回复: 回复: Dialog Concurrency Control Issue.</DIV></DIV>
<DIV><BR></DIV>
<DIV class=moz-cite-prefix><TT>Hi,<BR><BR>I see you added the missing "exit" after the sl_send_reply() and you do create the dialog for each INVITE (hopefully only for the initial ones :) ). <BR><BR>What seems to be the exact problem now ?<BR><BR>Regards,<BR></TT><PRE class=moz-signature cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<A class=moz-txt-link-freetext href="http://www.opensips-solutions.com" target=_blank moz-do-not-send="true">http://www.opensips-solutions.com</A></PRE>On 15.07.2014 05:21, jing wrote:<BR></DIV>
<BLOCKQUOTE cite=mid:tencent_6BBDD6C6338F7B911A4403D3@qq.com type="cite">
<DIV>hi,Schneur.</DIV>
<DIV>Thanks for your advice.</DIV>
<DIV>But I did&nbsp;put the check before&nbsp; create_dialog("B")&nbsp; in the original oprnsips.cfg:</DIV>
<DIV>&nbsp;</DIV>
<DIV>if (is_method("INVITE")) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("active dialog is $stat(active_dialogs)");</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($stat(active_dialogs)&gt;=1){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply("503", "Service Unavailable");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # create dialog with timeout<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( !create_dialog("B") ) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; send_reply("500","Internal Server Error");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setflag(ACC_DO); # do accounting<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV><BR></DIV>
<DIV>So what is wrong in the script?</DIV>
<DIV>And I still&nbsp;want to know how to judge a call is "active_dialogs"?</DIV>
<DIV>Thanks a lot.</DIV>
<DIV>&nbsp;</DIV>
<DIV>regards,</DIV>
<DIV>jing<BR></DIV>
<DIV style="PADDING-BOTTOM: 2px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: Arial Narrow; FONT-SIZE: 12px; PADDING-TOP: 2px">------------------&nbsp;原始 邮 件&nbsp;------------------</DIV>
<DIV style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>发件人:</B>&nbsp;"Schneur Rosenberg";<A class=moz-txt-link-rfc2396E href="mailto:rosenberg11219@gmail.com" target=_blank moz-do-not-send="true">&lt;rosenberg11219@gmail.com&gt;</A>;</DIV>
<DIV><B>发送时间:</B>&nbsp;2014年7月14日(星期一) 晚上6:25</DIV>
<DIV><B>收件人:</B>&nbsp;"OpenSIPS users mailling list"<A class=moz-txt-link-rfc2396E href="mailto:users@lists.opensips.org" target=_blank moz-do-not-send="true">&lt;users@lists.opensips.org&gt;</A>; <WBR></DIV>
<DIV><B>主题:</B>&nbsp;Re: [OpenSIPS-Users]回复: Dialog Concurrency Control Issue.</DIV></DIV>
<DIV><BR></DIV>
<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" &lt;<A href="mailto:605507247@qq.com" target=_blank moz-do-not-send="true">605507247@qq.com</A>&gt; wrote:<BR type="attribution">
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>
<DIV><FONT color=#000000>Thanks for your reply.But&nbsp;I have another question, I used &nbsp;active_dialogs&nbsp;</FONT><FONT color=#000000> in the cfg file as this:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#000000>if (is_method("INVITE")) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ($stat(active_dialogs)&gt;=1){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply("503", "Service Unavailable");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<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>&nbsp;aim to the number I set ,</FONT></DIV>
<DIV><FONT color=#000000>opensips sent 503,but&nbsp; the value of active_dialogs<FONT color=#000000>&nbsp;</FONT>sitll increase. </FONT></DIV>
<DIV><FONT color=#000000>So&nbsp;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>&nbsp;</DIV>
<DIV>regards,</DIV>
<DIV>Jing</DIV></FONT></DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV style="PADDING-BOTTOM: 2px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: Arial Narrow; FONT-SIZE: 12px; PADDING-TOP: 2px">------------------&nbsp;原 始 邮 件&nbsp;------------------</DIV>
<DIV style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>发件人:</B> "Schneur Rosenberg [via OpenSIPS (Open SIP Server)]"&lt;<A href="http://user/SendEmail.jtp?type=node&amp;node=7592371&amp;i=0" rel=nofollow target=_blank moz-do-not-send="true" link="external">[hidden email]</A>&gt;; </DIV>
<DIV><B>发送时间:</B> 2014年7月14日(星期一) 下午2:08</DIV>
<DIV><B>收件人:</B> "jing "&lt;<A href="http://user/SendEmail.jtp?type=node&amp;node=7592371&amp;i=1" rel=nofollow target=_blank moz-do-not-send="true" link="external">[hidden email]</A>&gt;; </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" &lt;<A href="http://user/SendEmail.jtp?type=node&amp;node=7592369&amp;i=0" rel=nofollow target=_blank moz-do-not-send="true" link="external">[hidden email]</A>&gt; 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>&nbsp;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, &nbsp;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 target=_blank moz-do-not-send="true" link="external">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&amp;node=7592369&amp;i=1" rel=nofollow target=_blank moz-do-not-send="true" link="external">[hidden email]</A><BR><A href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel=nofollow target=_blank moz-do-not-send="true" link="external">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&amp;node=7592369&amp;i=2" rel=nofollow target=_blank moz-do-not-send="true" link="external">[hidden email]</A> <BR><A href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel=nofollow target=_blank moz-do-not-send="true" link="external">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 target=_blank moz-do-not-send="true" link="external">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 moz-do-not-send="true" 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&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel=nofollow target=_blank moz-do-not-send="true" link="external">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 moz-do-not-send="true">回复: 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 moz-do-not-send="true">OpenSIPS - Users mailing list archive</A> at Nabble.com.<BR><BR>_______________________________________________<BR>Users mailing list<BR><A href="mailto:Users@lists.opensips.org" target=_blank moz-do-not-send="true">Users@lists.opensips.org</A><BR><A href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target=_blank moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</A><BR><BR></BLOCKQUOTE></DIV></DIV><BR>
<FIELDSET class=mimeAttachmentHeader></FIELDSET> <BR><PRE wrap="">_______________________________________________
Users mailing list
<A class=moz-txt-link-abbreviated href="mailto:Users@lists.opensips.org" target=_blank moz-do-not-send="true">Users@lists.opensips.org</A>
<A class=moz-txt-link-freetext href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target=_blank moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</A>
</PRE></BLOCKQUOTE><BR></BLOCKQUOTE><BR></BLOCKQUOTE><BR></BLOCKQUOTE><BR>