Man given restraining order after leaving voicemail - court