It depends on what's happening on the other end. In many cases a bridge or a fifo will be sufficient to handle the ringing on the A leg and the connecting the B leg. <div><br></div><div>What's the application?</div>
<div>-MC<br><br><div class="gmail_quote">On Wed, Nov 24, 2010 at 9:49 AM, Steve Richardson <span dir="ltr"><<a href="mailto:steve@comrex.com">steve@comrex.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div 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>
</div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>