Mute and unMute mic API

Hi folks,
How to mute agent mic when he's not on call, and unmute it right before he starts a manual call?
How to mute agent mic when he's not on call, and unmute it right before he starts a manual call?
VICIDIAL astGUIclient discussion forum
http://www.vicidial.org/VICIDIALforum/
http://www.vicidial.org/VICIDIALforum/viewtopic.php?f=4&t=41497