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:[EMAIL PROTECTED] Subject: 2004123441 5955 34
Anyone know of something cheap and easy to handle this problem?
TIA, --Eric
Eric,
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,HangupThen, /usr/bin/mymail could look like this:
#!/bin/bash
[EMAIL PROTECTED]
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: [EMAIL PROTECTED] Subject: $2
$1 $3
-- Kristian Kielhofner _______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
