Asterisk Manager API Action Monitor
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
Channel: SIP/x7062618529-643d
File: channelsavefile
Mix: 1
RECEIVE:
Response: Success
Message: Started monitoring channel
Message: Started monitoring channel
RECIEVE ON FAIL:
Response: Error
Message: No such channel
Message: No such channel
This produced two files: channelsavefile-in.wav and channelsavefile-out.wav. Saved in this instance to /var/spool/asterisk/monitor/
LINKS:
Asterisk Manager API Action ChangeMonitor
Asterisk Manager API Action StopMonitor
Asterisk Manager API
Asterisk Manager API Action ChangeMonitor
Asterisk Manager API Action StopMonitor
Asterisk Manager API

Comments
333Asterix - Monitor calls using phone extension
Is there anyway to do that?
333Re: how do you get the channel name to pass to the Monitor command
Check the extension field for each channel.
Also, you can check if the channel is linked with another channel.
333how do you get the channel name to pass to the Monitor command