Re: [Asterisk-Users] Monitor calls timeout
jurgen wrote: Thanks for the suggestion, but it's no good. It still times out after 10 seconds. It seems to be something in the Monitor application, rather than anywhere else. I can playback a sound (like the monkeys, or MOH) forever and ever without timing out. Monitoring kills itself though. That's because * is getting tired of waiting for the caller to dial an extension. Try this exten = s,1,Answer exten = s,2,Monitor(wav,testrecord,m) exten = s,3,Wait(600) exten = s,4,Goto(s,3) ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Monitor calls timeout
Hi Trevor, That's because * is getting tired of waiting for the caller to dial an extension. Try this exten = s,1,Answer exten = s,2,Monitor(wav,testrecord,m) exten = s,3,Wait(600) exten = s,4,Goto(s,3) Awfully clever, Trevor. It works brilliantly! Also gives the added bonus of being able to specify a maximum timout to prevent runaway recordings. I've raised the Wait(600) to a Wait(900) (15 minutes), and eliminated the Goto. With busy detection, once both parties hang up, the call is terminated and a recording is generated. Or if the recording goes over 15 minutes, it's automatically aborted. Thanks very much! ...jurgen -- [EMAIL PROTECTED] is jurgen's gmail address. Visit http://jurgen.ca/ for more yummy goodness. ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] Monitor calls timeout
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 [EMAIL PROTECTED]: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 -- [EMAIL PROTECTED] is jurgen's gmail address. Visit http://jurgen.ca/ for more yummy goodness. ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Monitor calls timeout
jurgen wrote: snip 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. did you try setting using AbsoluteTimeout in the context? e.g. exten = s,1,Answer exten = s,2,AbsoluteTimeout(0) exten = s,3,Monitor(wav,testrecod,m) I also once had a problem where my TDM400P card thought the far end had disconnected even though the two parties were still talking to each other. It was happening after roughly a minute and 40 seconds into the call. Setting busydetect=no and callprogress=no in zapata.conf helped a bit, although I suspect it might actually had something to do with the phone line itself. Flynn ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Monitor calls timeout
On Mon, 31 Jan 2005 09:26:05 +0800, el Flynn [EMAIL PROTECTED] wrote: did you try setting using AbsoluteTimeout in the context? e.g. exten = s,1,Answer exten = s,2,AbsoluteTimeout(0) exten = s,3,Monitor(wav,testrecod,m) Thanks for the suggestion, but it's no good. It still times out after 10 seconds. It seems to be something in the Monitor application, rather than anywhere else. I can playback a sound (like the monkeys, or MOH) forever and ever without timing out. Monitoring kills itself though. Oh - and using Monitor the way it's supposed to be used works just fine, with no problems or timeouts (I have one of the Zap channels set to record everything, and that works all the time). jurgen -- [EMAIL PROTECTED] is jurgen's gmail address. Visit http://jurgen.ca/ for more yummy goodness. ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users