Re: [asterisk-users] AGI WAIT FOR DIGIT - key press BEFORE command

2011-04-30 Thread Pezhman Lali
Dear
try phpagi. it has a lot of useful functions.
in this scenario you will lose your digit, set a check point between each
digit gathering

best

On Wed, Apr 27, 2011 at 6:17 PM, David asterisk@spam.lublink.netwrote:

 Hi,

 Consider the following situation :

 SIP/asterisk-001dAGI Rx  WAIT FOR DIGIT 3000
 SIP/asterisk-001dAGI Tx  200 result=48
 SIP/asterisk-001dAGI Rx  WAIT FOR DIGIT 3000
 SIP/asterisk-001dAGI Tx  200 result=48
 SIP/asterisk-001dAGI Rx  WAIT FOR DIGIT 3000
 SIP/asterisk-001dAGI Tx  200 result=48
 SIP/asterisk-001dAGI Rx  WAIT FOR DIGIT 3000

 What happens if the user enters a digit between the 200 result= and the
 next WAIT FOR DIGIT? Will the next WAIT FOR DIGIT catch the digit? Is the
 digit lost? How can I insure I don't lose the digit ? I am calling one digit
 at a time because I want to validate the user's entry at each key press.

 Thanks,

 David


 --
 _
 -- 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

--
_
-- 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

[asterisk-users] AGI WAIT FOR DIGIT - key press BEFORE command

2011-04-27 Thread David

Hi,

Consider the following situation :

SIP/asterisk-001dAGI Rx  WAIT FOR DIGIT 3000
SIP/asterisk-001dAGI Tx  200 result=48
SIP/asterisk-001dAGI Rx  WAIT FOR DIGIT 3000
SIP/asterisk-001dAGI Tx  200 result=48
SIP/asterisk-001dAGI Rx  WAIT FOR DIGIT 3000
SIP/asterisk-001dAGI Tx  200 result=48
SIP/asterisk-001dAGI Rx  WAIT FOR DIGIT 3000

What happens if the user enters a digit between the 200 result= and 
the next WAIT FOR DIGIT? Will the next WAIT FOR DIGIT catch the digit? 
Is the digit lost? How can I insure I don't lose the digit ? I am 
calling one digit at a time because I want to validate the user's entry 
at each key press.


Thanks,

David


--
_
-- 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