Fettahlioglu, Mahmut
2003-Mar-26 22:13 UTC
[Asterisk-Users] RE: [Asterisk-Dev] Several patches, including recording and music -on-hold
Hi Wade, Thanks! The call recording is pretty easy to use. There is a new resource providing call monitoring, and it registers these three applications and manager commands: - Monitor - StopMonitor - ChangeMonitor Monitor is used to start recording a channel. It takes an optional filename as a parameter. If no filename is supplied it determines one on its own, based on channel name. Two files are created, one for each direction. Files are created under /var/spool/asterisk/monitor. Another optional parameter is used for file format, it defaults to "wav". StopMonitor is used to stop recording. Note that recording stops when the channel hangs up cleanly too, so it is not needed to use that unless you want to record only a specific section of the call. ChangeMonitor is used to change the filename recording is done, while recording is going on. This change physically takes place after recording stops. The manager command versions take an additional channel name option. Some examples: - Application version: exten => _4XXXXX,1,Goto,2 exten => _4XXXXX,2,Monitor,pcm|testfile exten => _4XXXXX,3,Answer exten => _4XXXXX,4,Queue,hpoutgoing|15 exten => _4XXXXX,5,Goto,hpbye|1 - Manager version (in this example a client attached to the manager port sees the channel queue event and sends a message to start monitoring) exten => _1XXXXX,1,Goto,2 exten => _1XXXXX,2,AbsoluteTimeout,3600 exten => _1XXXXX,3,Answer exten => _1XXXXX,4,Queue,hpoutgoing|15 exten => _1XXXXX,5,Goto,hpbye|1> -----Original Message----- > From: Wade Weppler [mailto:weppler@wwworks-inc.com] > Sent: Thursday, 27 March 2003 4:34 > To: asterisk-dev@lists.digium.com > Subject: RE: [Asterisk-Dev] Several patches, including recording and > music-on-hold > > > Nice work Mahmut! > > Now that the recording patches are in CVS, can you give us > some examples of > how to use this? > > -wade > > > I was working on implementing several changes to asterisk. > I had described > > the changes and their reasons in several emails before I > started the job. > > > _______________________________________________ > Asterisk-Dev mailing list > Asterisk-Dev@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-dev >
Wade Weppler
2003-Mar-26 23:42 UTC
[Asterisk-Users] RE: [Asterisk-Dev] Several patches, including recording and music -on-hold
Thanks! I added this to an iaxtel extension I had, and it worked great! Was: [iaxtel] exten => _91700NXXXXXXX,1,StripMSD,1 exten => _1700NXXXXXXX,2,Dial,IAX/Zebble:mypassword@iaxtel.com/BYEXTENSION@iaxtel Now: [iaxtel] exten => _91700NXXXXXXX,1,StripMSD,1 exten => _1700NXXXXXXX,2,Monitor exten => _1700NXXXXXXX,3,Dial,IAX/Zebble:mypassword@iaxtel.com/BYEXTENSION@iaxtel When I dial my iaxtel number from my extension on channel Zap/15, I get two files recorded in /var/spool/asterisk/monitor: Zap-15-1-in.wav and Zap-15-1-out.wav and they sound fine. When I dial again, it overwrites the same two files. A nice option would be to append to the current files (with an audible *break*), or create another unique filename (timestamp?). I realize the latter could be done with variables and the former could be done with AGI, but it might be nice to have it part of the Monitor resource? It would also be great to see only one file. A mix can be done later, but it looks like the two files start and stop at different times so it would be pretty tough to sync the two files up after the fact. Another option might be a logfile with start/stop times of each file to assist with syncing? The times would have to be pretty accurate (at least within milliseconds) to work well... I haven't tried it yet, but when recording a meetme conference, there are probably a set of files for every incoming channel. Syncing those up into a single WAV could be a serious nightmare. ;) And don't get me wrong. I ain't complainin', just thinkin' out loud. :) Thanks again Mahmut. -wade> Hi Wade, > > Thanks! The call recording is pretty easy to use. There is a new resource > providing call monitoring, and it registers these three applications and > manager commands: > - Monitor > - StopMonitor > - ChangeMonitor
Mark Spencer
2003-Mar-27 08:40 UTC
[Asterisk-Users] RE: [Asterisk-Dev] Several patches, including recording and music -on-hold
They are merged with CVS now. Mark On Thu, 27 Mar 2003, it wrote:> Hi,I would like to know from where to download the patches? > > Regards. > > john > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >