<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
<font size="2">Hello,<br>
<br>
I am attempting to use the dialplan ring_ready and sleep
applications as follows (from my public.xml file):<br>
<br>
</font><font size="2"><tt> <extension name="foo"><br>
<condition field="destination_number"
expression="5551234567"><br>
<!-- indicate ringing to the caller for a configurable
amount of time (in ms)--><br>
<action application="ring_ready" /><br>
<action application="sleep" data="30000"/><br>
<br>
<!-- hang up if no answer (goes busy after?) --><br>
<action application="hangup" data="NO_ANSWER"/><br>
</condition><br>
</extension></tt></font><font size="2"><br>
<br>
My intent is to have the incoming call in the ring state for up to
30 seconds, during which time I would like to issue API commands
from my custom application (which is using the event socket
interface) to transfer the call to various places.<br>
<br>
The issue that I'm having is that the sleep seems to be
non-interruptable. If I try to issue a uuid_transfer command to
transfer the sleeping channel somewhere, it seems the sleep timer
has to expire before it will transfer. Similarly, if the caller
disconnects, the channel stays around until the sleep timer
expires, and then it is destroyed.<br>
<br>
Is there some way to wake a sleeping channel out of sleep? I've
looked for anything obvious and tried a number of things to no
avail. Alternately, is there a better way to approach this?<br>
<br>
thanks,<br>
Steve<br>
<br>
</font>
</body>
</html>