Summary:ASTERISK-09040: ChangeMonitor AMI command doesn't change the filename, and causes other problems
Reporter:Jared Smith (jsmith)Labels:
Date Opened:2007-03-17 21:22:49Date Closed:2007-06-30 09:20:09
Versions:Frequency of
Description:The ChangeMonitor AMI command doesn't seem to change the filename (as it's supposed to do), and unsets the "Mix" setting if it was previously set to true.

First, my AMI commands and their responses:

Action: Monitor
Channel: SIP/linksys2-10216d68
File: test-recording
Format: gsm
Mix: true

Response: Success
Message: Started monitoring channel

Action: ChangeMonitor
Channel: SIP/linksys2-10216d68
File: new-test-recording

Response: Success
Message: Changed monitor filename

Action: StopMonitor
Channel: SIP/linksys2-10216d68

Response: Success
Message: Stopped monitoring channel

If I do the "Monitor" and "StopMonitor" commands without the "ChangeMonitor" command, the inbound and outbound audio get mixed, and the filename is set to "test-recording.gsm".  If I do call the "ChangeMonitor" command as shown above, the inbound and outbound audio *don't* get mixed, and I end up with two files:

-rw-r--r-- 1 root root 539748 Mar 17 22:09 test-recording-out.gsm
-rw-r--r-- 1 root root 539748 Mar 17 22:09 test-recording-in.gsm

****** STEPS TO REPRODUCE ******

Monitor a channel with the Monitor command, with the Mix option set to true
Call the ChangeMonitor command to change the filename
Stop monitoring the call by hanging up or calling StopMonitor
Notice that the filename(s) didn't get changed, and that the channel didn't get mixed.
Comments:By: Joshua C. Colp (jcolp) 2007-03-20 23:27:49

Grab me tomorrow jsmith and we'll talk.

By: Joshua C. Colp (jcolp) 2007-03-21 13:06:57

Fixed in 1.2 as of revision 59086, 1.4 as of revision 59087, and trunk as of revision 59088.