[Asterisk-Users] Voicemail => SMS
Mark Charlton
mcwebtree at gmail.com
Fri Jul 1 09:12:11 MST 2005
On 7/1/05, Wilson Pickett <spamsucks2005 at gmail.com> wrote:
> > I have been trying for a while to find a way to get an SMS send when I
> > receive a voicemail into my asterisk system. I don't want to send an
> > SMS if the caller doesn't leave a message. I have voicemail.conf set
> > up to email and delete.
>
> I use a backward solution to this problem, but it works. Orange, my
> cell provider offers free SMS alerts for email sent to
> yourNumber at provider.dom. I send my vmail messages to my regular email
> server which keeps them for online email retrieval. A procmail recipe
> on the server then makes up an email without the vmail attachment to
> my orange address with the callerid in the subject. Orange sends an
> SMS that tells me I have a vmail message from ${CALLERID}. Although it
> seems like a silly solution it does _exactly_ what you asked about.
>
I have been fighting with the Bayham Systems FastSMS AGI script, and I
re-wrote it as a stand alone Perl script. I am now calling it with
the EXTERNNOTIFY option in the voicemail.conf file. It gets passed
the context, extension and number of messages which I build into a
text, and since they all go to the same location its no problem. I'm
planning on using the extension info to open the mailbox, and read the
text file for the latest message to pull out the caller for the text.
I might also have an extension map in a text file so I can look up who
to notify about a VM.
This works after a fashion, and crucially is only triggered when
someone actually leaves a valid voice mail message. It is limited in
the fact I can't pass any other system details than extn and context.
Plus the voicemail count is wrong since the attach=yes|delete=yes has
already deleted the message when it counts them.
But it works.
Thanks for all the help and advice.
Mark
More information about the asterisk-users
mailing list