[asterisk-users] Read sometimes disconnects user

Danny Nicholas danny at debsinc.com
Tue Oct 30 08:24:25 CDT 2012


Several factors could be affecting the Read() operation.  I had problems
with 1.4 and DAHDI.  They "magically" disappeared when I went to 10.0.
Also, depending on the carrier, you might need to set LONG DTMF tones. 

 

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Thomas Thomas
Sent: Tuesday, October 30, 2012 4:48 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Read sometimes disconnects user

 

My last message was wrong :

 

If the user doesn't enter any digits within 15 seconds, the file is played
again and a second attempt is made. So the timeout parameter specified for
Read() works.

 

But if the user enters the numbers, he might get disconnected for some
obscure reason. If he enters "04755" and takes too long before entering the
following number (timeout digit being set to 2 seconds), then he should
anyway take "04755" as the number and continue the script. It is definitily
very strange that the user gets disconnected. And that might happen when he
entered his 5 first digits, 9 digits, ... seems random.

 

 

2012/10/30 Thomas Thomas <debussy007 at gmail.com>

But even then, it should do another attempt, play the file again and accept
DMTF input, as I specified that there should be 2 attempts.

 

same => n,Read(mobileNumber,app/input-mobile,10,,2,15)

 

2012/10/30 Steve Edwards <asterisk.org at sedwards.com>

On Tue, 30 Oct 2012, Thomas Thomas wrote:

I am asking the user to enter his mobile phone followed by "#" using Read().


More information about the asterisk-users mailing list