Solved

Asterisk multiple recipeints when e-mailing voicemail messages?

Posted on 2009-07-14
4
447 Views
Last Modified: 2013-11-12
Is it possible for Asterisk to e-mail the voicemail messages to more than one e-mail address per mailbox?  I specified a second e-mail address, but the second e-mail address only received a short message notifying there was a voicemail, and no message was attached.  The subject line was different than what I specified globally, as well as the message body.  The first e-mail address received the normal e-mail with message attached... I specified the 2 e-mail addresses as:

515xxxxxxx => 1111,name,email1@gmail.com,e-mail2@gmail.com,attach=yes,|tz=eastern|saycid=yes|

Thanks!


0
Comment
Question by:jkockler
  • 3
4 Comments
 
LVL 25

Expert Comment

by:Ron Malmstead
ID: 24850207
What you are trying to do is already an available function.
http://www.voip-info.org/wiki/view/Asterisk+cmd+VoiceMail

Voicemail()
Voicemail broadcasts can be created with the VoiceMail command in the dialplan. This can be combined with the delete option to delete the original voicemail.


In extensions.conf:
  exten => 100,1,VoiceMail(u101&102&103)

In voicemail.conf:
  101 => 4242,Group Mailbox,,,delete=1
  102 => 4242,Buckaroo Bonzai,buckaroo@bonzai.com
  103 => 4242,John Whorphin,john@monkeyboy.com

This entry creates a group mailbox at mailbox 101, which, on receipt, is copied to mailboxes 102 and 103. Following the copy to these other mailboxes, the original voice message is deleted.

When multiple mailboxes are specified, the unavailable or busy message will be taken from the first mailbox specified. This could be used to record a special unavailable or busy message for the broadcast mailbox (101 in this example).
0
 
LVL 25

Expert Comment

by:Ron Malmstead
ID: 24850247
The other option would be...make a forwarding e-mail mailbox.... so that when the e-mail message is recieved on that box it is forwarded to two people.
0
 
LVL 4

Author Comment

by:jkockler
ID: 24850394
xuserx...That would be great if this scenario involved multiple mailboxes.  This is only for one mailbox, and one extension, and I do not have control over the recipients e-mail box to setup any forwarding rules.

So for example, a phone call to phone number 515-xxx-xxxx, is missed and sends the caller to voicemail box 515-xxx-xxxx ... The caller leaves a messge in mailbox 515-xxx-xxxx.  I then want that voicemail e-mailed to two e-mail addresses, joe@gmail com, and Mike@gmail.com ...

Currently it will e-mail the first e-mail address in the mailbox functions, with the email text body that I typed out in the [general] context, and attach the e-mail.  The second e-mail in the mailbox function section, gets an e-mail alerting of the voicemail, but does not attach the e-mail, nor is the message body text what I specified.

I am guessing the second e-mail address is pulling it's "servermail" and message body from somewhere else, and it needs to be pulled from general, just like the first e-mail address.

This is an example of what I have for the mailbox function

515xxxxxxx => 1111,name,john@gmail.com,e-mike@gmail.com,attach=yes,|tz=eastern|saycid=yes|
0
 
LVL 25

Accepted Solution

by:
Ron Malmstead earned 500 total points
ID: 24851315
Right.... I got it...
I'm pretty sure this is the default behaviour.... If you specify multiple recipients, only one of them actually get the attachement.

What you should do then is create a "dummy" mailbox (without an extension) for the other external recipient...then use the voicemail broadcast method.

Example extensions.conf
exten => 515xxxxxxx,n,Dial(SIP/${EXTEN})
exten => 515xxxxxxx,n,VoiceMail(u101&515xxxxxx1&515xxxxxx2)

In voicemail.conf:
101 => 4242,Group Mailbox,,,delete=1
515xxxxxx1 => 1234,Person1,email1@gmail.com
515xxxxxx2 => 1234,Person2,email2@gmail.com
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
linux redhat 7.2 10 74
POE switch 8 20
Why  my code (program) build with old compiler? 11 47
Web resource - Man pages for SUSE Enterprise Linux 11 1 26
As companies replace their old PBX phone systems with Unified IP Communications, many are finding out that legacy applications such as fax do not work well with VoIP. Fortunately, Cloud Faxing provides a cost-effective alternative that works over an…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question