Limit Call waiting to 2 lines?

I try limit the call waiting to 2 lines, when the third call come it’s get busy.
but it’s not work:

nor

call-state = 2
busy-limit = 2

nor

call-limit=2 ;it’s give “the extension is not exists” instead of busy

How it’s can work on asterisk 1.4.1.X

Hi

A good way of doing this is to use groupcount and gotoif and when the limit is reached the dialplan will send the call to where you want.

Ian