[asterisk-users] recrding calls
I would like to outgoing/icoming calls and email the files. This is what I have: ... exten = _7.,n,Set(CALLFILENAME=${EXTEN:1}-${TIMESTAMP}) exten = _7.,n,Monitor(wav,${CALLFILENAME},m) ... How do I email these file? -- Joseph -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] recrding calls
On 19/1/13 1:25 am, Joseph wrote: I would like to outgoing/icoming calls and email the files. This is what I have: exten = _7.,n,Set(CALLFILENAME=${EXTEN:1}-${TIMESTAMP}) exten = _7.,n,Monitor(wav,${CALLFILENAME},m) How do I email these file? You probably want to use MixMonitor() instead of Monitor(): http://www.voip-info.org/wiki/view/Asterisk+cmd+Mixmonitor One of its options allows you to execute a command at the end of recording, which you can then use to call a script to handle your recordings however you wish. Kind regards, Chris -- This email is made from 100% recycled electrons -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] recrding calls
On 01/19/13 01:34, Chris Bagnall wrote: On 19/1/13 1:25 am, Joseph wrote: I would like to outgoing/icoming calls and email the files. This is what I have: exten = _7.,n,Set(CALLFILENAME=${EXTEN:1}-${TIMESTAMP}) exten = _7.,n,Monitor(wav,${CALLFILENAME},m) How do I email these file? You probably want to use MixMonitor() instead of Monitor(): http://www.voip-info.org/wiki/view/Asterisk+cmd+Mixmonitor One of its options allows you to execute a command at the end of recording, which you can then use to call a script to handle your recordings however you wish. Kind regards, Chris I see, so MixMonitor mixes the IN/OUT sound as one file; that is good. I've modified it but the call is recorded as raw extension and no TIMESTAMP. exten = 11,n,Set(CALLFILENAME=${EXTEN:1}-${TIMESTAMP}) exten = 11,n,MixMonitor(${CALLFILENAME},wav,b) -- Joseph -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] recrding calls
On Fri, 18 Jan 2013, Joseph wrote: I've modified it but the call is recorded as raw extension and no TIMESTAMP. exten = 11,n,Set(CALLFILENAME=${EXTEN:1}-${TIMESTAMP}) exten = 11,n,MixMonitor(${CALLFILENAME},wav,b) Please re-read the description for mixmonitor(). The arguments are not the same as monitor(). -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] recrding calls
On 01/18/13 18:09, Steve Edwards wrote: On Fri, 18 Jan 2013, Joseph wrote: I've modified it but the call is recorded as raw extension and no TIMESTAMP. exten = 11,n,Set(CALLFILENAME=${EXTEN:1}-${TIMESTAMP}) exten = 11,n,MixMonitor(${CALLFILENAME},wav,b) Please re-read the description for mixmonitor(). The arguments are not the same as monitor(). Got it, it should be: exten = 11,n,Set(CALLFILENAME=${EXTEN}-${TIMESTAMP}) exten = 11,n,MixMonitor(${CALLFILENAME}.wav,b) However, my argument ${TIMESTAMP} is not taking any effect :-/ -- Joseph -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] recrding calls
On Fri, Jan 18, 2013 at 6:25 PM, Joseph syscon...@gmail.com wrote: I would like to outgoing/icoming calls and email the files. This is what I have: ... exten = _7.,n,Set(CALLFILENAME=${**EXTEN:1}-${TIMESTAMP}) exten = _7.,n,Monitor(wav,${**CALLFILENAME},m) ... How do I email these file? This is how we do it: exten = _1NXXNXX,1,Set(recordfilename=/var/spool/asterisk/monitor/${EXTEN}-${TIMESTAMP:0:8}${TIMESTAMP:8}.WAV) \exten = _1NXXNXX,n,MixMonitor(${recordfilename},b) exten = _1NXXNXX,n,(dial here or whatever) exten = h,1,System(/usr/sbin/sendEmail -t u...@domain.com -f p...@domain.com-u Call recording for ${recordingfilename} -m There is a new call recording. -a ${recordfilename}) Google the sendEmail app and download it, very useful for a lot of things. -- Carlos Alvarez TelEvolve 602-889-3003 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] recrding calls
On 01/18/13 19:27, Carlos Alvarez wrote: On Fri, Jan 18, 2013 at 6:25 PM, Joseph [1]syscon...@gmail.com wrote: I would like to outgoing/icoming calls and email the files. This is what I have: ... exten = _7.,n,Set(CALLFILENAME=${EXTEN:1}-${TIMESTAMP}) exten = _7.,n,Monitor(wav,${CALLFILENAME},m) ... How do I email these file? This is how we do it: exten = _1NXXNXX,1,Set(recordfilename=/var/spool/asterisk/monitor/${EXTEN}- ${TIMESTAMP:0:8}${TIMESTAMP:8}.WAV) \exten = _1NXXNXX,n,MixMonitor(${recordfilename},b) exten = _1NXXNXX,n,(dial here or whatever) Thanks Carlos I'm just concentrating right now on ${TIMESTAMP} variable but is is not working: I have: exten = 11,n,Set(recordfilename=/var/spool/asterisk/monitor/${EXTEN}-${TIMESTAMP:0:8}${TIMESTAMP:8}.WAV) exten = 11,n,MixMonitor(${recordfilename},b) and the file name I got was: -11.wav Why I'm not getting any timestamp? -- Joseph -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] recrding calls
Around version 1.4 or 1.6, TIMESTAMP was phased out and replaced with STRFTIME. See this page for details on how to properly generate a timestamp: http://www.voip-info.org/wiki/view/Asterisk+func+strftime On Fri, Jan 18, 2013 at 8:46 PM, Joseph syscon...@gmail.com wrote: On 01/18/13 19:27, Carlos Alvarez wrote: On Fri, Jan 18, 2013 at 6:25 PM, Joseph [1]syscon...@gmail.com wrote: I would like to outgoing/icoming calls and email the files. This is what I have: ... exten = _7.,n,Set(CALLFILENAME=${**EXTEN:1}-${TIMESTAMP}) exten = _7.,n,Monitor(wav,${**CALLFILENAME},m) ... How do I email these file? This is how we do it: exten = _1NXXNXX,1,Set(**recordfilename=/var/spool/** asterisk/monitor/${EXTEN}- ${TIMESTAMP:0:8}${TIMESTAMP:8}**.WAV) \exten = _1NXXNXX,n,MixMonitor(${**recordfilename},b) exten = _1NXXNXX,n,(dial here or whatever) Thanks Carlos I'm just concentrating right now on ${TIMESTAMP} variable but is is not working: I have: exten = 11,n,Set(recordfilename=/var/**spool/asterisk/monitor/${** EXTEN}-${TIMESTAMP:0:8}${**TIMESTAMP:8}.WAV) exten = 11,n,MixMonitor(${**recordfilename},b) and the file name I got was: -11.wav Why I'm not getting any timestamp? -- Joseph -- __**__**_ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/**mailman/listinfo/asterisk-**usershttp://lists.digium.com/mailman/listinfo/asterisk-users -- Thanks, --Warren Selby, dCAP http://www.SelbyTech.com http://www.selbytech.com -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] recrding calls
Yeah, sorry, that example was from one of our older servers. On Fri, Jan 18, 2013 at 8:08 PM, Warren Selby wcse...@selbytech.com wrote: Around version 1.4 or 1.6, TIMESTAMP was phased out and replaced with STRFTIME. See this page for details on how to properly generate a timestamp: http://www.voip-info.org/wiki/view/Asterisk+func+strftime On Fri, Jan 18, 2013 at 8:46 PM, Joseph syscon...@gmail.com wrote: On 01/18/13 19:27, Carlos Alvarez wrote: On Fri, Jan 18, 2013 at 6:25 PM, Joseph [1]syscon...@gmail.com wrote: I would like to outgoing/icoming calls and email the files. This is what I have: ... exten = _7.,n,Set(CALLFILENAME=${**EXTEN:1}-${TIMESTAMP}) exten = _7.,n,Monitor(wav,${**CALLFILENAME},m) ... How do I email these file? This is how we do it: exten = _1NXXNXX,1,Set(**recordfilename=/var/spool/** asterisk/monitor/${EXTEN}- ${TIMESTAMP:0:8}${TIMESTAMP:8}**.WAV) \exten = _1NXXNXX,n,MixMonitor(${**recordfilename},b) exten = _1NXXNXX,n,(dial here or whatever) Thanks Carlos I'm just concentrating right now on ${TIMESTAMP} variable but is is not working: I have: exten = 11,n,Set(recordfilename=/var/**spool/asterisk/monitor/${** EXTEN}-${TIMESTAMP:0:8}${**TIMESTAMP:8}.WAV) exten = 11,n,MixMonitor(${**recordfilename},b) and the file name I got was: -11.wav Why I'm not getting any timestamp? -- Joseph -- __**__**_ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/**mailman/listinfo/asterisk-**usershttp://lists.digium.com/mailman/listinfo/asterisk-users -- Thanks, --Warren Selby, dCAP http://www.SelbyTech.com http://www.selbytech.com -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Carlos Alvarez TelEvolve 602-889-3003 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] recrding calls
On 01/18/13 21:08, Warren Selby wrote: Around version 1.4 or 1.6, TIMESTAMP was phased out and replaced with STRFTIME. See this page for details on how to properly generate a timestamp: [1]http://www.voip-info.org/wiki/view/Asterisk+func+strftime Thank Warren for the pointer, yes it is working now. Correct sequence should be: exten = 11,n,Set(recordfilename=${EXTEN}-${STRFTIME(${EPOCH},MST,%C%y-%m-%d-%H%M)}.wav) exten = 11,n,MixMonitor(${recordfilename},b) -- Joseph -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users