[asterisk-users] howto copy a voicemail message to another machine ?

Tech Support asterisk at voipbusiness.us
Tue Jun 16 10:52:07 CDT 2015


    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




More information about the asterisk-users mailing list