[asterisk-users] Time counting down and # detect

Gordon Henderson gordon+asterisk at drogon.net
Fri Mar 12 04:43:04 CST 2010


On Fri, 12 Mar 2010, Pham Quy wrote:

> I figured that out, i can use monitor() function to record and using a
> loop to count down 60s.
>
> But I dont think it is best solution, any suggestion is appreciated.
> And still, how can i capture '#'?

Have you reied reading the manual, or the wiki, or even just googling for 
asterisk recording?

You'll find the Record() application will do what you need to do regarding 
time and #.

Gordon


>
> On Fri, 2010-03-12 at 15:03 +0700, Pham Quy wrote:
>> Hi all,
>>
>> Here is the script  i want to make
>>
>> - Caller call to a number to record a message
>> - Asterisk answer and start recording message as following
>> 	+ User press * to start recording
>> 	+ Record is finished if:
>> 		+ User press #
>> 		+ OR message duration reach 60 second
>> 	+ Hangup
>>
>> How do you counting down 60s, and how to detect # (i make a test using
>> Read() but it cant read #)
>>
>> Thanks in advance
>> Quyps
>
>
>
> -- 
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list