[asterisk-users] quenstion about asterisk

2009-07-17 Thread Elvis Jorge

Hello fellows,

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 X because the user should have the quantity the digits 
predefine.

Thanks

Elvis Jorge
Cell: 809-706-8824
ETGTEL DOMINICANA
La información contenida en este correo electrónico, así como los archivos 
anexos que pudiera incluir, es confidencial y únicamente para su destinatario. 
Si usted ha recibido este mensaje por ___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] quenstion about asterisk

2009-07-17 Thread Steve Howes

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 X  
 because the user should have the quantity the digits predefine.

Assuming you intend to use # as a terminator, just collect in a loop,  
1 digit at a time until you get a hash..

S
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] quenstion about asterisk

2009-07-17 Thread Elvis Jorge
Could you give a example how I can do that??

Thanks


- Original Message - 
From: Steve Howes st...@geekinter.net
To: Asterisk Users Mailing List - Non-Commercial Discussion 
asterisk-users@lists.digium.com
Sent: Friday, July 17, 2009 10:34 AM
Subject: Re: [asterisk-users] quenstion about asterisk



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 X
 because the user should have the quantity the digits predefine.

Assuming you intend to use # as a terminator, just collect in a loop,
1 digit at a time until you get a hash..

S
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users 


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] quenstion about asterisk

2009-07-17 Thread Steve Edwards

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 X because the user 
should have the quantity the digits predefine.


On Fri, 17 Jul 2009, Steve Howes wrote:

Assuming you intend to use # as a terminator, just collect in a loop, 1 
digit at a time until you get a hash..


Or, use read() or AGI's stream file.

For future reference, please take a look at:

http://www.catb.org/~esr/faqs/smart-questions.html#bespecific

There are many questions about Asterisk.

--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] quenstion about asterisk

2009-07-17 Thread Elvis Jorge
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.

Could you give me other solution?

Thanks

- Original Message - 
From: Steve Edwards asterisk@sedwards.com
To: Asterisk Users Mailing List - Non-Commercial Discussion 
asterisk-users@lists.digium.com
Sent: Friday, July 17, 2009 11:06 AM
Subject: Re: [asterisk-users] quenstion about asterisk


 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 X because the user
 should have the quantity the digits predefine.

On Fri, 17 Jul 2009, Steve Howes wrote:

 Assuming you intend to use # as a terminator, just collect in a loop, 1
 digit at a time until you get a hash..

Or, use read() or AGI's stream file.

For future reference, please take a look at:

  http://www.catb.org/~esr/faqs/smart-questions.html#bespecific

There are many questions about Asterisk.

-- 
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000





 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users 


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] quenstion about asterisk

2009-07-17 Thread Steve Howes

On 17 Jul 2009, at 16:26, Elvis Jorge wrote:

 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.

 Could you give me other solution?

Yes, the one I suggested a few hours ago. Read one digit at a time.

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] quenstion about asterisk

2009-07-17 Thread Miguel Molina
Elvis Jorge escribió:
 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.

 Could you give me other solution?
   
Instead of XXX,1,Blah() use _X.,1,Blah() then.

Or, you can use a exten = s,1,WaitExten(number of seconds to wait for 
user input) too. If the user doesn't dial anything, the call will be 
redirected to the 't' extension if you have it.

For a better understanding of dialplan basics, how dialplan pattern 
matching works and special 't', 'i' ,'s', 'h', and others please RTFM:

http://downloads.oreilly.com/books/9780596510480.pdf

-- 
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] quenstion about asterisk

2009-07-17 Thread Steve Edwards

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 X 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   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users