[Asterisk-Users] Re: Asterisk-Users Digest, Vol 12, Issue 143

Adam Goryachev mailinglists at websitemanagers.com.au
Thu Jul 21 22:49:50 MST 2005


On Thu, 2005-07-21 at 21:36 -0700, Nguyen Trung Tin wrote:
> Hello ALl
> i need context to do:
> record to wave file and receive DTMF when recording wave file.
> for example:
> exten => s,1,Record(test:wav)
> exten => s,2,hangup
> when recording, press # to hangup and i want to receive others DTMF
> (while recording), max DTMF to received as 7 and when received enough
> 7 DTMFs, asterisk will end call, the result save to MySQL.
> 
> for currently, asterisk only record wave file and hangup with # key.
> any DTMF without save.

Maybe you want to do something like this:
exten => s,1,Monitor(test:wav)
exten => s,2,Read(value)
exten => s,3,dbput(...=${value})
exten => s,4,hangup

Read the docs for each of those applications, and you should get the
right idea. Of course, you probably need some AGI (or see
asterisk-addons for mysql app) to save the data to mysql DB...

Regards,
Adam





More information about the asterisk-users mailing list