Hello, Is it possible to limit the number of user in a particular conference room? Foong -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20030820/e0f75c18/attachment.htm
Florian Overkamp
2003-Aug-20 00:55 UTC
[Asterisk-Users] Limit Number of user in Conference
Citeren Chee Foong <cheefoong@inovas.com>:> Hello, > > Is it possible to limit the number of user in a particular conference room? > > FoongHi, I think the easiest way is to create a counter that adds one when a user joins and subtracts when a user leaves or hangs up. A few simple AGI scripts could do it. Just make sure you lock the counter when updating so as to avoid miscounting when two channels join at the same time.. -- Best regards, Florian Overkamp
Steven Critchfield
2003-Aug-20 05:15 UTC
[Asterisk-Users] Limit Number of user in Conference
On Wed, 2003-08-20 at 02:55, Florian Overkamp wrote:> Citeren Chee Foong <cheefoong@inovas.com>: > > > Hello, > > > > Is it possible to limit the number of user in a particular conference room? > > > > Foong > > Hi, > > I think the easiest way is to create a counter that adds one when a user joins > and subtracts when a user leaves or hangs up. A few simple AGI scripts could > do it. Just make sure you lock the counter when updating so as to avoid > miscounting when two channels join at the same time..Problem with that is making sure that calls exit the conference and passes through your exit AGI. This is why I submitted a patch some time ago to modify MeetMeCount to set a variable to the number of users in the conference. -- Steven Critchfield <critch@basesys.com>
Yes, I see that in the source code. But how do I know how many users are in the conference room in real time. I mean how can I retrieve the number of user from meetme? Do I need to edit the source? Foong ----- Original Message ----- From: "Steven Critchfield" <critch@basesys.com> To: <asterisk-users@lists.digium.com> Sent: Wednesday, August 20, 2003 8:15 PM Subject: Re: [Asterisk-Users] Limit Number of user in Conference> On Wed, 2003-08-20 at 02:55, Florian Overkamp wrote: > > Citeren Chee Foong <cheefoong@inovas.com>: > > > > > Hello, > > > > > > Is it possible to limit the number of user in a particular conferenceroom?> > > > > > Foong > > > > Hi, > > > > I think the easiest way is to create a counter that adds one when a userjoins> > and subtracts when a user leaves or hangs up. A few simple AGI scriptscould> > do it. Just make sure you lock the counter when updating so as to avoid > > miscounting when two channels join at the same time.. > > Problem with that is making sure that calls exit the conference and > passes through your exit AGI. > > This is why I submitted a patch some time ago to modify MeetMeCount to > set a variable to the number of users in the conference. > -- > Steven Critchfield <critch@basesys.com> > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
Steven Critchfield
2003-Aug-20 22:35 UTC
[Asterisk-Users] Limit Number of user in Conference
On Thu, 2003-08-21 at 00:26, Chee Foong wrote:> Yes, I see that in the source code. But how do I know how many users are in > the conference room in real time. > I mean how can I retrieve the number of user from meetme? Do I need to edit > the source?As of this afternoon, Mark had accepted the changes for the MeetMeCount app and made them part of CVS. So if you grab the most recent CVS checkout you can get this new feature. What you will then do is something like... exten => 1234,1,MeetMeCount(1234|count) exten => 1234,2,Gotoif,$[${count} < ${CONFMAX}]?1234|3:1234|103 exten => 1234,3,MeetMe(1234) exten => 1234,4,Goto(s|1) exten => 1234,103,Background(TooManyUsers) exten => 1234,104,Goto(s|1) Hope this helps.> ----- Original Message ----- > From: "Steven Critchfield" <critch@basesys.com> > To: <asterisk-users@lists.digium.com> > Sent: Wednesday, August 20, 2003 8:15 PM > Subject: Re: [Asterisk-Users] Limit Number of user in Conference > > > > On Wed, 2003-08-20 at 02:55, Florian Overkamp wrote: > > > Citeren Chee Foong <cheefoong@inovas.com>: > > > > > > > Hello, > > > > > > > > Is it possible to limit the number of user in a particular conference > room? > > > > > > > > Foong > > > > > > Hi, > > > > > > I think the easiest way is to create a counter that adds one when a user > joins > > > and subtracts when a user leaves or hangs up. A few simple AGI scripts > could > > > do it. Just make sure you lock the counter when updating so as to avoid > > > miscounting when two channels join at the same time.. > > > > Problem with that is making sure that calls exit the conference and > > passes through your exit AGI. > > > > This is why I submitted a patch some time ago to modify MeetMeCount to > > set a variable to the number of users in the conference. > > -- > > Steven Critchfield <critch@basesys.com> > > > > _______________________________________________ > > Asterisk-Users mailing list > > Asterisk-Users@lists.digium.com > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users-- Steven Critchfield <critch@basesys.com>
Cheers mate! After getting the latest CVS, I manage to get it work in my AGI script. Excellent patch, thanks a lot. Foong
Florian Overkamp
2003-Aug-21 12:38 UTC
[Asterisk-Users] Limit Number of user in Conference
At 00:35 21-8-2003 -0500, you wrote:>On Thu, 2003-08-21 at 00:26, Chee Foong wrote: > > Yes, I see that in the source code. But how do I know how many users are in > > the conference room in real time. > > I mean how can I retrieve the number of user from meetme? Do I need to edit > > the source? > >As of this afternoon, Mark had accepted the changes for the MeetMeCount >app and made them part of CVS. So if you grab the most recent CVS >checkout you can get this new feature. What you will then do is >something like... > >exten => 1234,1,MeetMeCount(1234|count) >exten => 1234,2,Gotoif,$[${count} < ${CONFMAX}]?1234|3:1234|103 >exten => 1234,3,MeetMe(1234) >exten => 1234,4,Goto(s|1) > >exten => 1234,103,Background(TooManyUsers) >exten => 1234,104,Goto(s|1)Excellent work, this makes it a lot more elegant than my AGI hackings! Florian