[asterisk-users] custom voicemail e-mail

Tilghman Lesher tlesher at digium.com
Thu Sep 17 09:33:59 CDT 2009


On Thursday 17 September 2009 09:13:20 Steve Edwards wrote:
> > On Thursday 17 September 2009 02:52:42 Patrick wrote:
> >> I want to send an email in html format as well as sending an SMS to the
> >> mailbox owner using clickatell's api
> >>
> >> Any other ways to do this ?
>
> On Thu, 17 Sep 2009, Tilghman Lesher wrote:
> > Use the "externnotify" option in voicemail.conf.  The arguments to this
> > program are the context, extension, new-voicemails, old-voicemails, and
> > (on newer versions) urgent-voicemails.
> >
> > Take the new-voicemails (a number), subtract 1, load the corresponding
> > .txt file, and you have all the information available to a voicemail
> > message, so you can send whatever emails you need to from here.
>
> voicemail.conf says "If you need to have an external program, i.e.
> /usr/bin/myapp called when a voicemail is left, delivered, or your
> voicemailbox is checked, uncomment this."
>
> Can myapp differentiate between left, delivered, or checked?

No, not as such.  However, if you listen to all your messages when you check
your mailbox, and you don't leave any in the "new" folder, then when
externnotify runs, there will be a 0 in the new-messages argument.
Presumably, the user doesn't care about the difference between left and
delivered (the second being what happens when a voicemail is forwarded
from another mailbox).

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list