I´m trying to spy an agent and record the call.
I have this configuration in my dialplan

'espia' =>        1. Answer()                                   [pbx_config]
                    2. Set(MONITORDIR=/var/lib/asterisk/sounds/supervisor) [pbx_config]
                    3. Set(CALLFILENAME=Agente-${CALLERIDNUM}-${TIMESTAMP}) [pbx_config]
                    4. Monitor(gsm|${MONITORDIR}/${CALLFILENAME}|) [pbx_config]
                    5. Chanspy(Agent/${CALLERIDNUM}|q)            [pbx_config]
                    6. System(rm ${MONITORDIR}/${CALLFILENAME}-in ) [pbx_config]
                    7. Hangup()                                   [pbx_config]

This work well but Monitor application make two gsm files I need only the out.gsm file.
Because of this I put "6. System(rm ${MONITORDIR}/${CALLFILENAME}-in )" to delete the other file.

Never execute this lines...
See this log....

  -- Executing Answer("Zap/3-1", "") in new stack
    -- Executing Set("Zap/3-1", "MONITORDIR=/var/lib/asterisk/sounds/supervisor") in new stack
    -- Executing Set("Zap/3-1", "CALLFILENAME=Agente-102-20060921-133010") in new stack
    -- Executing Monitor("Zap/3-1", "gsm|/var/lib/asterisk/sounds/supervisor/Agente-102-20060921-133010|") in new stack
    -- Executing ChanSpy("Zap/3-1", "Agent/102|q") in new stack
  == Spying on channel Agent/102
Sep 21 13:30:10 NOTICE[31496]: app_chanspy.c:197 start_spying: Attaching Zap/3-1 to Agent/102
    -- Channel 0/2, span 1 got hangup request
    -- Hungup 'Zap/1-1'
  == Spawn extension (telpin-112, 90, 4) exited non-zero on 'Zap/2-1'
    -- Hungup 'Zap/2-1'
  == Done Spying on channel Agent/102
    -- Channel 0/3, span 1 got hangup request
  == Spawn extension (default, espia, 5) exited non-zero on 'Zap/3-1'
    -- Hungup 'Zap/3-1'

Any ideas?
Thanks

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to