> Yes, use your first solution, but precede it with a call to the Read()
> application for the user to enter their conference number. This will
put
> it into a channel variable, e.g. ${CONF}, which you can then put in
place
> of the hard coded number.

Thanks Tony for your advice.
Below is a working version of a Meetme extension which a) check the
conference room number and b) restrict the max size of the attendees of
each conference room.
The good thing is that we only need to program one extension for all
conference room instead of one for each.
The down side is that I have to hard code the conference room numbers
and the max size (which is not good from a good programmer's point of
view).

exten => 8101,1,Answer()
exten => 8101,n(L8101A),Playback(enter-conf-call-number)
exten => 8101,n,Read(ConfNumber,,3)
exten => 8101,n,GotoIf($[${ConfNumber} = 101]?L8101D:L8101B)
exten => 8101,n(L8101B),GotoIf($[${ConfNumber} = 102]?L8101D:L8101C)
exten => 8101,n(L8101C),Playback(conf-invalid)
exten => 8101,n,Wait(1.5)
exten => 8101,n,Goto(L8101A)
exten => 8101,n(L8101D),Playback(conf-thereare)
exten => 8101,n,MeetMeCount(${ConfNumber},ConfCount)
exten => 8101,n,SayNumber(${ConfCount})
exten => 8101,n,Playback(conf-peopleinconf)
exten => 8101,n,GotoIf($[${ConfCount} < 10]?L8101E:L8101F)
exten => 8101,n(L8101E),MeetMe(${ConfNumber},ciMps)
exten => 8101,n,Playback(vm-goodbye)
exten => 8101,n,Hangup()
exten => 8101,n(L8101F),Playback(conf-full)
exten => 8101,n,Playback(vm-goodbye)
exten => 8101,n,Hangup()


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to