[asterisk-dev] Function Read - Timeout
Eric Wieling
EWieling at nyigc.com
Fri Apr 25 14:54:58 CDT 2014
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.
More information about the asterisk-dev
mailing list