<DIV>Hi, Razvan</DIV>
<DIV>Your reply is helpful for me , I will try to implement it in script, thank you!</DIV>
<DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12px; FONT-FAMILY: Arial Narrow; PADDING-BOTTOM: 2px; PADDING-TOP: 2px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px">------------------ 原始邮件 ------------------</DIV>
<DIV style="FONT-SIZE: 12px; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px">
<DIV><B>发件人:</B> "Răzvan Crainea";<razvan@opensips.org>;</DIV>
<DIV><B>发送时间:</B> 2014年6月27日(星期五) 下午5:10</DIV>
<DIV><B>收件人:</B> "users"<users@lists.opensips.org>; <WBR></DIV>
<DIV></DIV>
<DIV><B>主题:</B> Re: [OpenSIPS-Users]回复: How to set the max number of user and howtoset the max number of regeisted user at the same time?</DIV></DIV>
<DIV><BR></DIV>> Hi, Razvan<BR>> Very thanks for your reply.<BR>> > 1] Where do you want to add those users? In the subscriber table?<BR>> > I want to add those users to subscriber.<BR>> I don't think of any method of limiting the rows in a table. Probably<BR>> only on the provisioning system side (opensipsctl, CP?). Just out of<BR>> curiosity, why would you like to do that?<BR>> I am new to opensips, and I just don't know how many users can be added<BR>> to opensips.<BR><BR>There is no limit - you can add as many subscribers as you want.<BR><BR>> > 3] I am not sure I get the question. You want to have a limit for the<BR>> > maximum registered users? Or the maximum registrations of a single user?<BR>> > I want to have a limit for the maximum registered users.<BR>> You can use the usrloc module statistics[B]<BR>> Do you mean" registered_users"?<BR>> But it writes "Total number of AOR existing in the USRLOC memory cache<BR>> for all domains - can not be resetted. "<BR>> Does it mean the maximum registered number can't be set?<BR>> If it is not " registered_users", which part should I use to limit the<BR>> maximum registered users?<BR><BR>That is a statistic that tells you how many users are currently <BR>registered. You can use it in the script to check if your threshold was <BR>reached - if it was, you can reject calls or do whatever you want.<BR>There is no explicit way to tell OpenSIPS how many users are allowed to <BR>register.<BR><BR>Best regards,<BR>Răzvan<BR><BR>> Best regards,<BR>><BR>><BR>> ------------------ 原始邮件 ------------------<BR>> *发件人:* "Răzvan Crainea";<razvan@opensips.org>;<BR>> *发送时间:* 2014年6月27日(星期五) 下午3:56<BR>> *收件人:* "users"<users@lists.opensips.org>;<BR>> *主题:* Re: [OpenSIPS-Users] How to set the max number of user and<BR>> howtoset the max number of regeisted user at the same time?<BR>><BR>> Hi, Jing!<BR>><BR>> > Hi, Razvan ,<BR>> > thanks for your reply.<BR>> > 1] Where do you want to add those users? In the subscriber table?<BR>> > I want to add those users to subscriber.<BR>> I don't think of any method of limiting the rows in a table. Probably<BR>> only on the provisioning system side (opensipsctl, CP?). Just out of<BR>> curiosity, why would you like to do that?<BR>><BR>> ><BR>> ><BR>> > 3] I am not sure I get the question. You want to have a limit for the<BR>> > maximum registered users? Or the maximum registrations of a single user?<BR>> > I want to have a limit for the maximum registered users.<BR>> You can use the usrloc module statistics[B]<BR>><BR>> [B] http://www.opensips.org/html/docs/modules/1.11.x/usrloc#id295190<BR>><BR>> Best regards,<BR>> Răzvan<BR>><BR>> ><BR>> > Thank you<BR>> > --<BR>> > Regards,<BR>> ><BR>> ><BR>> > ------------------ Original ------------------<BR>> > *From: * "R 0 0zvan Crainea";<razvan@opensips.org>;<BR>> > *Date: * Fri, Jun 27, 2014 03:36 PM<BR>> > *To: * "users"<users@lists.opensips.org>;<BR>> > *Subject: * Re: [OpenSIPS-Users] How to set the max number of user and<BR>> > how toset the max number of regeisted user at the same time?<BR>> ><BR>> > Hi, Jing!<BR>> ><BR>> > 1] Where do you want to add those users? In the subscriber table?<BR>> > 2] You can use the ratelimit module[A] to limit the amount of messages<BR>> > per second.<BR>> > 3] I am not sure I get the question. You want to have a limit for the<BR>> > maximum registered users? Or the maximum registrations of a single user?<BR>> ><BR>> > [A] http://www.opensips.org/html/docs/modules/1.11.x/ratelimit<BR>> ><BR>> > Razvan Crainea<BR>> > OpenSIPS Core Developer<BR>> > http://www.opensips-solutions.com<BR>> ><BR>> > On 06/27/2014 06:02 AM, jing wrote:<BR>> > > Hi All<BR>> > ><BR>> > > I am using OpenSIP1.11<BR>> > ><BR>> > > Question ...<BR>> > ><BR>> > > 1]What should I do when I want to allowed at most 3000 users to be<BR>> > added ?<BR>> > > 2]How to limit the max number of calls be processed at one second?<BR>> > > 3]Howto limit the max number of regist users at the same time ?<BR>> > > Need your advice.<BR>> > ><BR>> > > Thank you<BR>> > ><BR>> > > --<BR>> > > Regards,<BR>> > ><BR>> > ><BR>> > > _______________________________________________<BR>> > > Users mailing list<BR>> > > Users@lists.opensips.org<BR>> > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users<BR>> > ><BR>> ><BR>> > _______________________________________________<BR>> > Users mailing list<BR>> > Users@lists.opensips.org<BR>> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users<BR>> > .<BR>> ><BR>> ><BR>> > _______________________________________________<BR>> > Users mailing list<BR>> > Users@lists.opensips.org<BR>> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users<BR>> ><BR>><BR>> _______________________________________________<BR>> Users mailing list<BR>> Users@lists.opensips.org<BR>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<BR>><BR>><BR>> _______________________________________________<BR>> Users mailing list<BR>> Users@lists.opensips.org<BR>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<BR>><BR><BR>_______________________________________________<BR>Users mailing list<BR>Users@lists.opensips.org<BR>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<BR>
<DIV></DIV></DIV>