Wrong forum. Delete

Sorry, Posted in the wrong forum.

The easiest way may be to disable the second line in the phone.

You can also use the group count feature in Asterisk.

You could also consider testing the device state to detect an in use condition. I think you may have to enable call limits for this.

And I was going to add it was the wrong forum!