P2P switch to JVB

Where does the switch from 2 users doing P2P chat to 3 users doing a JVB based chat happen? What elements are involved in making that decision to switch to a JVB based call?