[asterisk-users] Extensions problems

equis software equissoftware at gmail.com
Thu Sep 21 12:36:43 MST 2006

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)
                    3. Set(CALLFILENAME=Agente-${CALLERIDNUM}-${TIMESTAMP})
                    4. Monitor(gsm|${MONITORDIR}/${CALLFILENAME}|)
                    5. Chanspy(Agent/${CALLERIDNUM}|q)
                    6. System(rm ${MONITORDIR}/${CALLFILENAME}-in )
                    7. Hangup()

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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060921/f8acdcb3/attachment.htm

More information about the asterisk-users mailing list