I´m trying to spy an agent and record the call.<br>I have this configuration in my dialplan<br><br>'espia' => 1. Answer() [pbx_config]<br> 2. Set(MONITORDIR=/var/lib/asterisk/sounds/supervisor) [pbx_config]
<br> 3. Set(CALLFILENAME=Agente-${CALLERIDNUM}-${TIMESTAMP}) [pbx_config]<br> 4. Monitor(gsm|${MONITORDIR}/${CALLFILENAME}|) [pbx_config]<br> 5. Chanspy(Agent/${CALLERIDNUM}|q) [pbx_config]
<br> 6. System(rm ${MONITORDIR}/${CALLFILENAME}-in ) [pbx_config]<br> 7. Hangup() [pbx_config]<br><br>This work well but Monitor application make two gsm files I need only the
out.gsm file.<br>Because of this I put "6. System(rm ${MONITORDIR}/${CALLFILENAME}-in )" to delete the other file.<br><br>Never execute this lines...<br>See this log....<br><br> -- Executing Answer("Zap/3-1", "") in new stack
<br> -- Executing Set("Zap/3-1", "MONITORDIR=/var/lib/asterisk/sounds/supervisor") in new stack<br> -- Executing Set("Zap/3-1", "CALLFILENAME=Agente-102-20060921-133010") in new stack
<br> -- Executing Monitor("Zap/3-1", "gsm|/var/lib/asterisk/sounds/supervisor/Agente-102-20060921-133010|") in new stack<br> -- Executing ChanSpy("Zap/3-1", "Agent/102|q") in new stack
<br> == Spying on channel Agent/102<br>Sep 21 13:30:10 NOTICE[31496]: app_chanspy.c:197 start_spying: Attaching Zap/3-1 to Agent/102<br> -- Channel 0/2, span 1 got hangup request<br> -- Hungup 'Zap/1-1'<br> == Spawn extension (telpin-112, 90, 4) exited non-zero on 'Zap/2-1'
<br> -- Hungup 'Zap/2-1'<br> == Done Spying on channel Agent/102<br> -- Channel 0/3, span 1 got hangup request<br> == Spawn extension (default, espia, 5) exited non-zero on 'Zap/3-1'<br> -- Hungup 'Zap/3-1'<br>
<br>Any ideas?<br>Thanks<br><br>