Hi all,
We're in a transition between OldPhoneSystem and Asterisk. One of the
things that's needed to be done right now with OldPhoneSystem is the
ability to record calls. I thought "Asterisk can record calls", so I
set about to make it happen. And it does, sort of.
I made a .call file that rings the exension that I want to have
recorded, and barges into the conversation, using a series of DTMF
codes that OldPhoneSystem understands. That bit works with no
problems. Once it's connected, the context I've placed the call into
looks like this:
exten => s,1,Answer
exten => s,2,Monitor(wav,testrecord,m)
And even that works - recording files are made called "testrecord"
that contain the conversation from the correct Zap channel.
Problem is, Asterisk times out and disconnects after 10 seconds,
stopping the recording.
If I run something else in the context, say the infamous Monkey
Sounds, everything's fine, and the call just keeps going, annoying the
people on the line with monkey sounds. For some reason, the
*monitoring* always stops after 10 seconds.
Here's what the console tells me:
-- Attempting call on Zap/4/442,55 for s@record:1 (Retry 1)
> Channel Zap/4-1 was answered.
-- Executing Answer("Zap/4-1", "") in new stack
-- Executing SetVar("Zap/4-1",
"RECORDFILENAME=testrecording-s-20050131-102716") in new stack
-- Executing Monitor("Zap/4-1", "wav||m") in new stack
[all good so far]
Jan 31 10:27:26 WARNING[27937712]: pbx.c:1977 ast_pbx_run: Timeout,
but no rule 't' in context 'record'
-- Hungup 'Zap/4-1'
[okay, so I don't have a 't', but it shouldn't be timing out
anyway!]
monitor executing ( nice -n 19 soxmix
//var/spool/asterisk/monitor/Zap-4-1-in.wav
//var/spool/asterisk/monitor/Zap-4-1-out.wav
//var/spool/asterisk/monitor/Zap-4-1.wav && rm -f
//var/spool/asterisk/monitor/Zap-4-1-* ) &
Jan 31 10:27:26 NOTICE[27937712]: pbx_spool.c:244 attempt_thread: Call
completed to Zap/4/442,55
Does anyone have any ideas that could help here?
Thanks very much,
.........jurgen
--
thinger@gmail.com is jurgen's gmail address.
Visit http://jurgen.ca/ for more yummy goodness.