Solved

Asterisk multiple recipeints when e-mailing voicemail messages?

Posted on 2009-07-14
4
453 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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

739 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