[asterisk-dev] Function Read - Timeout

2014-04-25 Thread Jonathan White
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

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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

Re: [asterisk-dev] Function Read - Timeout

2014-04-25 Thread Eric Wieling
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-unconditionalplease-enter-thedigits/11digit/igc/sounds/destinationtelephone-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/destinationnumber)
 same = n,WaitExten(5)
 same = n,EndWhile()
 same = n,Playback(goodbye)

-Original Message-
From: asterisk-dev-boun...@lists.digium.com 
[mailto:asterisk-dev-boun...@lists.digium.com] On Behalf Of Jonathan White
Sent: Friday, April 25, 2014 3:12 PM
To: asterisk-dev@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. 


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

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


Re: [asterisk-dev] Function Read - Timeout

2014-04-25 Thread Jonathan White
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-unconditionalplease-enter-thedigits/11digit/igc/sounds/destinationtelephone-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/destinationnumber)
same = n,WaitExten(5)
same = n,EndWhile()
same = n,Playback(goodbye)

-Original Message-
From: asterisk-dev-boun...@lists.digium.com 
[mailto:asterisk-dev-boun...@lists.digium.com] On Behalf Of Jonathan White

Sent: Friday, April 25, 2014 3:12 PM
To: asterisk-dev@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


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

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