[asterisk-users] quenstion about asterisk

Steve Edwards asterisk.org at sedwards.com
Fri Jul 17 16:04:57 CDT 2009


Un-top-posting and snipping...

>> On 17 Jul 2009, at 15:29, Elvis Jorge wrote:
>
>>> I want to know if there´s a way to capture the numbers typed for a 
>>> user; without waiting that the IVR finish or without predefine the 
>>> numbers of digits. I´m going to explain you better, for example I want 
>>> to know that a user typed 12345#,but I want that the user can type 
>>> over IVR and don't predefine the numbers of digits XXXXX because the 
>>> user should have the quantity the digits predefine.

> The problem with read() is that I have to wait that a message that is 
> before read finish, I can use XXX,1 set(variable=${EXTEN}) but the user 
> has to type the quantity of digits predefine.

I'm not sure I'm understanding what you want to do. The read() application 
plays a file and reads keypresses terminated by "#." (It does more, so you 
should read the console description.) Thus:

 	exten = *,n,			read(foo,demo-congrats)

will play demo-congrats. If the caller starts pressing keys, playback is 
stopped. When the caller presses "#" the preceding keypresses are 
available to the dialplan in the channel variable "foo." It has nothing to 
do with ${EXTEN}.

Is this not what you want to do?
-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000


More information about the asterisk-users mailing list