exten => _XX.,1,SetGroup(21) ; Put this call in group 21 exten => _XX.,2,GetGroupCount(21) ; Count the number of calls in group 21 exten => _XX.,3,Gotoif,"$[${GROUPCOUNT} < 33]?4:9" ; If <33 then allow the call exten => _XX.,4,SetCAllerID(${CALLERIDNUM}) ; Set The caller ID exten => _XX.,5,Dial(....to your provider/${EXTEN}) ; Do the Dialy stuff exten => _XX.,6,Congestion ; Game Over exten => _XX.,9,Congestion ; Too Many calls