Hi 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. 302 => 302,Website Sales,sip@example.com,,attach=yes|delete=yes However I can't seem to find a way to test is a message is left. I have tried AGI, DEADAGI but neither can pick up the info as it is either not there when I test, or it is deleted before I test. If I turn off deletion i can do it, but the problem there is that if caller 1 rings and leaves a message, I can test for voicemail and send a SMS. If caller 2 rings and doesn't leave a message, when I test for voicemail I get a positive, and so send an SMS, but its not a new VM so I don't want notifying. This was my last attempt before I gave up. ;exten => h,1,HasNewVoiceMail(30${dialed_extn}) ;exten => h,2,goto(h,100) ;exten => h,102,DeadAGI(fastsms|4400000000000|Caller ${CALLERID} left a new voice mail at ${DATETIME} on Sales extn ${dialed_extn}|Asterisk) ;exten => h,103,Hangup Any and all suggestions will be greatly appreciated. Thanks Mark
On 6/30/05, Mark Charlton <mcwebtree@gmail.com> wrote:> Hi > > 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. > >Hi I have had this working fine for a while. I use the fastsms agi and subscription from bayham systems:- http://www.bayhamsystems.com/asterisk.html there are some details on their web page but I supply my conf if you wish. Mike
Sorry I should have paid more attention to your post :) You are already using fastsms! oops.> > ;exten => h,1,HasNewVoiceMail(30${dialed_extn}) > ;exten => h,2,goto(h,100) > ;exten => h,102,DeadAGI(fastsms|4400000000000|Caller ${CALLERID} left > a new voice > mail at ${DATETIME} on Sales extn ${dialed_extn}|Asterisk) > ;exten => h,103,HangupHere is what mine looks like:- [sales] ; sales menu exten => s,1,Background(new/ubertechs/uber_sales) exten => s,2,Playback(new/pls-wait-connect-call) exten => s,3,Dial(${OFFICE},20,trm) exten => s,4,Playback(new/nbdy-avail-to-take-call) exten => s,5,VoiceMail(u${OFFICEVM}) exten => s,6,HasNewVoiceMail(2002) exten => s,7,goto(110) exten => s,106,AGI(fastsms|44792108XXXX|Ubertechs Voicemail. Caller ${CALLERID} left a new voice mail for sales at ${ DATETIME}|441524342XX) exten => s,107,AGI(fastsms|447971494XXX|Ubertechs Voicemail. Caller ${CALLERID} left a new voice mail for sales at ${ DATETIME}|441524342XX) exten => s,110,Hangup exten => h,1,HasNewVoicemail(2002) exten => h,102,DeadAGI(fastsms|44792108XXXX|Uberetchs Voicemail. Caller ${CALLERID} left a new voice mail for sales a t ${DATETIME}|441524342XX) exten => h,103,DeadAGI(fastsms|44797149XXXX|Uberetchs Voicemail. Caller ${CALLERID} left a new voice mail for sales a t ${DATETIME}|441524342XX) It actually sends out two SMS's in the above example. Hope that helps, Mike
In the USA it's possible to send a voicemail to most mobiles now via an email gateway eg 917-207-34XX@mmode.com Is it possible in asterisk (and asterisk@home) to send a voicemail waiting email to 2 email addresses at the same time? Cheers, Dean> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Mike Dent > Sent: Thursday, 30 June 2005 8:07 AM > To: Mark Charlton; Asterisk Users Mailing List - Non-CommercialDiscussion> Subject: Re: [Asterisk-Users] Voicemail => SMS > > On 6/30/05, Mark Charlton <mcwebtree@gmail.com> wrote: > > Hi > > > > I have been trying for a while to find a way to get an SMS send whenI> > receive a voicemail into my asterisk system. I don't want to sendan> > SMS if the caller doesn't leave a message. I have voicemail.confset> > up to email and delete. > > > > > > Hi I have had this working fine for a while. > I use the fastsms agi and subscription from bayham systems:- > > http://www.bayhamsystems.com/asterisk.html > > there are some details on their web page but I supply my conf if youwish.> > > Mike > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
On 6/30/05, Mike Dent <mcdent@gmail.com> wrote:> > Here is what mine looks like:- > > exten => h,103,DeadAGI(fastsms|44797149XXXX|Uberetchs Voicemail. > Caller ${CALLERID} left a new voice mail for sales a > t ${DATETIME}|441524342XX)> Hope that helps, > Mike >I started out using the solution like you are, but in testing found a couple of problems. 1) Caller 1 calls and leaves a message - SMS sent correctly. Caller 2 calls goes to voicemail, but doesn't leave a message - HasVoiceMail returns true, and another SMS is sent, but there is no new voicemail. 2) Several of the mailboxes use 303 => xxx,General Sales,sip@example.com,,attach=yes|delete=yes So the voicemails are send via email and then deleted, so the HasVoiceMail returns false even if a message is left. Is there a variable or trigger or something to tell if a certain caller left a message, or am I going to have to write something in PHP to parse the VM directory, and maintain a list of messages which have triggered an SMS. Please tell me if I am barking up the wrong tree and if there is a simpler way to do this. Thanks again for any help.
> 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@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.
On 6/30/05, Mark Charlton <mcwebtree@gmail.com> wrote:> Hi > > 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.> Any and all suggestions will be greatly appreciated.The manager action MailboxCount gives the number of old and new messages in a mailbox. You would have to call the manager via an agi but it would give you the info you want. Chris
A little off topic, but I'm on orange, what's the domain and what is the format e.g. 07973 or +447973... ________________________________ From: asterisk-users-bounces@lists.digium.com on behalf of Wilson Pickett Sent: Fri 01/07/2005 6:56 To: Mark Charlton; Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Voicemail => SMS> 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@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. _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users The information contained in this email is intended for the personal and confidential use of the addressee only. It may also be privileged information. If you are not the intended recipient then you are hereby notified that you have received this document in error and that any review, distribution or copying of this document is strictly prohibited. If you have received this communication in error, please notify Brendata immediately on: +44 (0)1268 466100, or email 'technical@brendata.co.uk' Brendata (UK) Ltd Nevendon Hall, Nevendon Road, Basildon, Essex. SS13 1BX UK Registered Office as above. Registered in England No. 2764339 See our current vacancies at www.brendata.co.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 4326 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050701/41eeced1/attachment.bin