I would like to use the mixmonitor command to record calls between peer A and peer B by issuing the command using AMI. The problem is that I don’t know how to get the channel during the call. The channel argument must be passed to mixmonitor. All I have is the peer name, e.g. bob. The command ‘core show channels’ lists the channel’s string as ‘SIP/peer-[number]’, e.g. ‘SIP/bob-00000042’. Having only the peer name, how can I get the ‘SIP/peer-[number]’ channel string dynamically during a call so I can pass it to mixmonitor?