Asterisk Manager API Action: Monitor
Action: Monitor
Parameters: Channel, File, Format, Mix
Example Via Asterisk 1.0.9
SEND:
ACTION: Monitor
Channel: SIP/x7062618529-643d
File: channelsavefile
Mix: 1
RECEIVE:
Response: Success
Message: Started monitoring channel
RECIEVE ON FAIL:
Response: Error
Message: No such channel
This produced two files: channelsavefile-in.wav and channelsavefile-out.wav. Saved in this instance to /var/spool/asterisk/monitor/