Restricted the number of incoming calls for a context

hello all

   I am using asterisk-1.4.22. Is there any way in asterisk so that we can restricted the number of calls to a particlar context. we have a PRI line and the voip gateway through which we transfer the call to the asterisk context in extensions.conf file. now i need if there are 5 calls are active on that context. it should not take 6th call the 6th caller listen some message as line busy or simply hangup. 

I am using some thing as
exten => 201,1,Goto(xyz,201,1)

exten => 201,1,Playback(welcome)

in my extensions.conf
will you please give your suggestions how to do this.


Use call-limit or GROUPCOUNT.


           GROUPPCOUNT  worked for me.