Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Asterisk multiple recipeints when e-mailing voicemail messages?

Posted on 2009-07-14
4
Medium Priority
?
462 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 2000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month10 days, 7 hours left to enroll

886 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