Nguyen Trung Tin
2005-Jul-21 21:36 UTC
[Asterisk-Users] Re: Asterisk-Users Digest, Vol 12, Issue 143
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. any advice ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050721/2cb57763/attachment.htm
Adam Goryachev
2005-Jul-21 22:49 UTC
[Asterisk-Users] Re: Asterisk-Users Digest, Vol 12, Issue 143
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