[asterisk-users] send record file to email
Hello; how do i embed and send the recorded file to email automagically exten = _1XXX,3,MixMonitor(${CALLFILENAME}|b|/usr/sbin/wav2mp3 ${CALLFILENAME} ${peeremail} ${EXTEN} ${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)} ) Regards. Kyeyune Bob Network IT Engineer +256 774 702 258 bob.kyey...@onesolutions.ug Integrated IT services from Plot 57B Luthuli Avenue Bugolobi, Kampala On Fri, Feb 1, 2013 at 4:39 PM, A J Stiles asterisk_l...@earthshod.co.ukwrote: On Friday 01 February 2013, Joseph wrote: When recording the filename I use: exten = _NXX,n,Set(recordfilename=${EXTEN}-${STRFTIME(${EPOCH},MST,%C%y_%m_%d_ %H%M)}.wav) This works OK but I would like to add to the name the local extension from which the calls is originating, what is the variable called? ${CALLERID(num)} has the originating extension number, unless you changed it e.g. to show your direct line on an outgoing call (but you can always do that *after* you generate the filename for the recording). -- AJS Answers come *after* questions. -- _ -- 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 -- _ -- 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] send record file to email
On Friday 01 February 2013, Bob Kyeyune wrote: Hello; how do i embed and send the recorded file to email automagically exten = _1XXX,3,MixMonitor(${CALLFILENAME}|b|/usr/sbin/wav2mp3 ${CALLFILENAME} ${peeremail} ${EXTEN} ${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)} ) Regards. Kyeyune Bob Network IT Engineer +256 774 702 258 bob.kyey...@onesolutions.ug You will have to put some logic in the h extension, which gets called on HangUp() so that if ${CALLFILENAME} != then it will fire off a script to e- mail the recording. It doesn't even need to be a full-on AGI script; you can just use System() to run it. Your favourite scripting language should already be able to create e-mails with attachments (or else you really should be looking for a new favourite). -- AJS Answers come *after* questions. -- _ -- 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] send record file to email
On Fri, Feb 1, 2013 at 8:35 AM, A J Stiles asterisk_l...@earthshod.co.ukwrote: On Friday 01 February 2013, Bob Kyeyune wrote: Hello; how do i embed and send the recorded file to email automagically exten = _1XXX,3,MixMonitor(${CALLFILENAME}|b|/usr/sbin/wav2mp3 ${CALLFILENAME} ${peeremail} ${EXTEN} ${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)} ) Here's an example of how we record and e-mail. You will need to download the sendEmail binary. [conference-record] exten = s,1,Answer exten = s,n,Set(MEETME_RECORDINGFILE=/var/spool/asterisk/monitor/TelEvolve-conf-${UNIQUEID}) exten = s,n,Set(MEETME_RECORDINGFORMAT=wav49) exten = s,n,Wait(1) exten = s,n,MeetMe(televolve,cDr) exten = h,1,System(/usr/sbin/sendEmail -t car...@televolve.com -f notificati...@televolve.com -u Conference call recording -m Conference call ${UNIQUEID}) -- 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