Magistrate accused of chatting on phone during court session