Tony Howat
2007-Jan-26 06:54 UTC
[asterisk-users] Dialplan - play sample, interrupt on * and return value?
Hi Asteriskers,
I have the following :
exten => 1,1,Playback(sample)
exten => 1,2,Read(response,,1)
exten => 1,3,GotoIf($["${response}" != "*"]?300:100)
exten => 1,100,Playback(hello)
exten => 1,101, [[[ do stuff ]]]
exten => 1,300,Playback(reject)
exten => 1,301,Hangup
Which plays a confirmation sample, waits for the user to press * and then
continues with the application or hangs up depending on whether or not * has
been pressed.
This is fine, but I need to be able to cope with and detect when the user
presses * during the sample play, and get a return value based on this.
I can't really see a means to do this? Background is concerned with firing
off to new extensions - it seems doubtful to me that I can have a *
extension? Read() itself only provides for playing a sample before the read
with no interruptions.
Am I missing some other way? I'm more familiar with AGI and can see how to
achieve it using that interface, but I'd rather avoid it for what would be a
very small bit of dialplan code.
Thanks in advance,
--
Tony
_________________________________________________________________
Find Love This New Year With match.com! http://msnuk.match.com
Possibly Parallel Threads
- scatterplot 3d equal axis sequence length limitation
- [External] Re: [PATCH] virtio_ring: Suppress tx interrupt when napi_tx disable
- Continuous legend colors
- [External] Re: [PATCH] virtio_ring: Suppress tx interrupt when napi_tx disable
- Generate groups with random size but given total sample size
