Solved

Asterisk multiple recipeints when e-mailing voicemail messages?

Posted on 2009-07-14
4
445 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 M
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 M
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 M 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now