I need some suggestions (not necessarily using Asterisk?) on how to accomplish the following in the easiest way possible. I would like to have a ~3 prompt VM system, that would ask for some numbers from a caller (case number, id and another id). It would then take their DTMF presses and format an email to a predetermined address (i.e. the email always goes to the same place). I don't really care about the format so much as long as the emails are the same. I.E Lets say I enter VM Prompt 1: 2004123441 VM Prompt 2: 5955 VM Prompt 3: 34 It would format email and send it out something like: To:updates@example.com Subject: 2004123441 5955 34 Anyone know of something cheap and easy to handle this problem? TIA, --Eric
Asterisk with a simple agi routine could do this easily. Jonathan ----- Original Message ----- From: "Eric Balsa" <ericb@sysdump.com> To: <asterisk-users@lists.digium.com> Sent: March 7, 2005 1:02 PM Subject: [Asterisk-Users] DTMF to Email> I need some suggestions (not necessarily using Asterisk?) on how to > accomplish the following in the easiest way possible. I would like to havea> ~3 prompt VM system, that would ask for some numbers from a caller (case > number, id and another id). It would then take their DTMF presses andformat> an email to a predetermined address (i.e. the email always goes to thesame> place). I don't really care about the format so much as long as the emails > are the same. I.E > > Lets say I enter > VM Prompt 1: 2004123441 > VM Prompt 2: 5955 > VM Prompt 3: 34 > > It would format email and send it out something like: > > To:updates@example.com > Subject: 2004123441 5955 > 34 > > Anyone know of something cheap and easy to handle this problem? > > TIA, > --Eric > > > _______________________________________________ > 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
Eric Balsa wrote:> I need some suggestions (not necessarily using Asterisk?) on how to > accomplish the following in the easiest way possible. I would like to have a > ~3 prompt VM system, that would ask for some numbers from a caller (case > number, id and another id). It would then take their DTMF presses and format > an email to a predetermined address (i.e. the email always goes to the same > place). I don't really care about the format so much as long as the emails > are the same. I.E > > Lets say I enter > VM Prompt 1: 2004123441 > VM Prompt 2: 5955 > VM Prompt 3: 34 > > It would format email and send it out something like: > > To:updates@example.com > Subject: 2004123441 5955 > 34 > > Anyone know of something cheap and easy to handle this problem? > > TIA, > --EricEric, Asterisk could do this very easily: exten => s,1,Read(CASENO) exten => s,2,Read(ID1) exten => s,3,Read(ID2) exten => s,4,TrySystem(/usr/bin/mymail ${CASENO} ${ID} ${ID2}) exten => s,5,Hangup Then, /usr/bin/mymail could look like this: #!/bin/bash MAILADD=kris@testmail.com echo -e "$1 \n $3" | mail -s $2 $MAILADD The output mail should look like this (with $1 - 3 filled in with the values from above): To: kris@testmail.com Subject: $2 $1 $3 -- Kristian Kielhofner