sean darcy
2015-Jun-16 15:35 UTC
[asterisk-users] howto copy a voicemail message to another machine ?
My asterisk server is in the cloud. Figuring out how to send an email is too much brain damage. So i can't use the email feature that's built into voicemail. What I want to do is execute a remote command with the voicemail as an argument. The remote machine command would email the message. I'm thinking of: same =>n,VoiceMail(vm,u) same =>n,System(ssh myserver "emailVM '_THE_VOICEMAIL_MESSAGE_'") What variables can I use for _THE_VOICEMAIL_MESSAGE_ Or is this better done with externcmd in voicemail.conf ?: externcmd => ssh myserver "emailVM '_THE_VOICEMAIL_MESSAGE_'" But same question. And can externcmd take arguments ? sean
D'Arcy J.M. Cain
2015-Jun-16 15:52 UTC
[asterisk-users] howto copy a voicemail message to another machine ?
On Tue, 16 Jun 2015 11:35:26 -0400 sean darcy <seandarcy2 at gmail.com> wrote:> My asterisk server is in the cloud. Figuring out how to send an email > is too much brain damage. So i can't use the email feature that's > built into voicemail.Really? That was one of the first things I did when I learned Asterisk. It was dead simple. Rather than creating some sort of Rube Goldberg machine to send email why don't you explain what you tried and where you ran into problems? In case it helps, here are my general settings in voicemail.conf: [general] attach=yes maxsilence=10 serveremail=NULL at Vex.Net format=wav49 fromstring=Vex.Net Voice Mail nextaftercmd=yes forcename=yes pollmailboxes=yes pollfreq=5 And for each extension I have this (sanitized): 1000 => 1234,D'Arcy,darcy at example.com That's the extension, PIN, name and email address. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy at Vex.Net VoIP: sip:darcy at Vex.Net
Tech Support
2015-Jun-16 15:52 UTC
[asterisk-users] howto copy a voicemail message to another machine ?
Check out the "externnotify" parameter in voicemail.conf. What it does is run an external program whenever a caller leaves a voicemail message for a user. The way it works is basically any time that somebody leaves a voicemail on the system (regardless of mailbox number), the command specified for externnotify is run with the arguments (in this order): context, extension, new voicemails, old voicemails and urgent voicemails. These arguments are passed to the program that you set in the externnotify parameter. Regards; John -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of sean darcy Sent: Tuesday, June 16, 2015 11:35 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] howto copy a voicemail message to another machine ? My asterisk server is in the cloud. Figuring out how to send an email is too much brain damage. So i can't use the email feature that's built into voicemail. What I want to do is execute a remote command with the voicemail as an argument. The remote machine command would email the message. I'm thinking of: same =>n,VoiceMail(vm,u) same =>n,System(ssh myserver "emailVM '_THE_VOICEMAIL_MESSAGE_'") What variables can I use for _THE_VOICEMAIL_MESSAGE_ Or is this better done with externcmd in voicemail.conf ?: externcmd => ssh myserver "emailVM '_THE_VOICEMAIL_MESSAGE_'" But same question. And can externcmd take arguments ? sean -- _____________________________________________________________________ -- 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
Tzafrir Cohen
2015-Jun-16 16:17 UTC
[asterisk-users] howto copy a voicemail message to another machine ?
On Tue, Jun 16, 2015 at 11:35:26AM -0400, sean darcy wrote:> My asterisk server is in the cloud. Figuring out how to send an > email is too much brain damage. So i can't use the email feature > that's built into voicemail.Why? If you can ssh between them, you should also be able to route mail between them. Be that using a custom sendmail command which uses ssh in it.> > What I want to do is execute a remote command with the voicemail as > an argument. The remote machine command would email the message. > > I'm thinking of: > > same =>n,VoiceMail(vm,u) > same =>n,System(ssh myserver "emailVM '_THE_VOICEMAIL_MESSAGE_'") > > What variables can I use for _THE_VOICEMAIL_MESSAGE_ > > Or is this better done with externcmd in voicemail.conf ?: > > externcmd => ssh myserver "emailVM '_THE_VOICEMAIL_MESSAGE_'" > > But same question. And can externcmd take arguments ?rsync the whole mailbox. Should be quick enough. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com
sean darcy
2015-Jun-16 18:38 UTC
[asterisk-users] howto copy a voicemail message to another machine ?
On 06/16/2015 11:52 AM, D'Arcy J.M. Cain wrote:> On Tue, 16 Jun 2015 11:35:26 -0400 > sean darcy <seandarcy2 at gmail.com> wrote: >> My asterisk server is in the cloud. Figuring out how to send an email >> is too much brain damage. So i can't use the email feature that's >> built into voicemail. > > Really? That was one of the first things I did when I learned > Asterisk. It was dead simple. Rather than creating some sort of Rube > Goldberg machine to send email why don't you explain what you tried and > where you ran into problems? > > In case it helps, here are my general settings in voicemail.conf: > > [general] > attach=yes > maxsilence=10 > serveremail=NULL at Vex.Net > format=wav49 > fromstring=Vex.Net Voice Mail > nextaftercmd=yes > forcename=yes > pollmailboxes=yes > pollfreq=5 > > And for each extension I have this (sanitized): > > 1000 => 1234,D'Arcy,darcy at example.com > > That's the extension, PIN, name and email address. >There's no problem setting up vm on *. I can't use email off the instance, since the assigned ip address doesn't have a PTR. It looks too much like spam. The mail relays drop it. sean