Hi Johnathan, this will help.
Exten =>
611000,1,Answer()
Exten =>
611000,2,DigitTimeout(3)
Exten => 611000,3,Background(/var/lib/asterisk/sounds/Welcome)
Exten => _XXXXXX,1,SetVar(entereddigits=${EXTEN})
Exten => _XXXXXX,2,Authenticate(${entereddigits},a)
Exten => _XXXXXX,3,Playback(${entereddigits})
Exten => _XXXXXX,4,Record(${entereddigits})
Exten => _XXXXXX,5,Hangup()
that was a fast example. Remember that Record() application will save your sounds by default in the sounds directory (usually /var/lib/asterisk/sounds), and you can specify the format (wav,ulaw), for more info check voip-info.org, and make a search "record application".
Also remember to use Background() only when you are expecting digits. Otherwise use Playback()
Best Regards.
I have a question about how to set up some variables. I have an extension that my teachers are going to dial to record their information messages for the public. I need to know what I need to put in step two for my teachers to enter 6 digits on their phone and have that saved as a variable. Any help would be appreciated also direct replies would be helpful because I get the digest message and its hard to keep up.
Thanks in advance!
Exten => 611000,1,Background(/var/lib/asterisk/sounds/Welcome)
Exten => 611000,2,Authenticate(XXXXX,a)
Exten => 611000,3,
Exten => 611000,4,Background(/var/lib/asterisk/sounds/{entereddigits})
Exten => 611000,5,Record(/var/lib/asterisk/sounds/{entereddigits})
Exten => 611000,6,Hangup()
Johnathan Falk
Network Administrator
Clinton Community Schools
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users