Help in sip calls

Hello.
I want to do this

Only allow 1 incoming call at time in extensions 201 if a second call incoming dial extension 202, if a 3rd call incoming, call 203

I try using call-limit but if i set call-limit=2 to extension 201 i can’t transfer the current call via PSTN or to another SIP device, because im limiting that peer. :S

I need a sample code using DEVSTATE or something like it.

Take alook at setting up a queue and using agents. That maybe your best bet to set up a round robin type answering method.

voip-info.org/wiki/view/Aste … ueues.conf