Of the top of my head I think you can have a property in the user object say: isBusy: false. When the call is established between the 2, you update that property.
When you get an incoming call, you check that property before you accept. If busy you can decline by sending a message to the call via websockets(pusher)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Of the top of my head I think you can have a property in the user object say:
isBusy: false
. When the call is established between the 2, you update that property.When you get an incoming call, you check that property before you accept. If busy you can decline by sending a message to the call via websockets(pusher)