[asterisk-dev] Function Read - Timeout

Jonathan White jw at uvacity.com
Fri Apr 25 18:28:48 CDT 2014


Yes that's a good idea. This fixes one of my issues however it doesn't when 
I have two reads one after the other.

It would still be good if there was a parameter to have no delay.

J

-----Original Message----- 
From: Eric Wieling
Sent: Friday, April 25, 2014 8:54 PM
To: Jonathan White ; Asterisk Developers Mailing List
Subject: RE: [asterisk-dev] Function Read - Timeout

You're holding it wrong.

There are several ways to accomplish this, the easiest is to play all sound 
files with one Read, like:

Read(fwdto,call-fwd-unconditional&please-enter-the&digits/11&digit&/igc/sounds/destination&telephone-number,11,,1,6)

If you can't play all the sound files with one Read, then use WaitExten and 
Background:

exten => s,1,Noop(Switch Manager IVR)
same => n,Answer
same => n,Ringing
same => n,Wait(1)
same => n,Set(LOCAL(count)=0)
same => n,While($[${count} < 4])
same => n,Set(count=$[${count}+1])
same => n,Background(please-enter-the&/igc/sounds/destination&number)
same => n,WaitExten(5)
same => n,EndWhile()
same => n,Playback(goodbye)

-----Original Message-----
From: asterisk-dev-bounces at lists.digium.com 
[mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Jonathan White
Sent: Friday, April 25, 2014 3:12 PM
To: asterisk-dev at lists.digium.com
Subject: [asterisk-dev] Function Read - Timeout

Just a quick suggestion to enhance function Read.

I am using function read in places to provide options to skip announcements 
or provide hidden features. However the minimum timeout is 1 second which 
puts an unnatural pause in the flow of announcements when not skipping.

It would be great if there was a parameter not to wait for digits. Possible?

Best regards

J


________________________________

<http://www.avast.com/> This email is free from viruses and malware because 
avast! Antivirus <http://www.avast.com/>  protection is active.



---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com




More information about the asterisk-dev mailing list