<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2><SPAN class=077065919-15022007>Thanks Stefan for
input.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=077065919-15022007>I know that there is
a "hangup" action in <FONT face="Times New Roman" size=3>Asterisk Manager
API.</FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=077065919-15022007>I am looking for "hold and
retrive" commend. I search google and find that redirecting to parkslot can
work.</SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=077065919-15022007>If I have a PSTN call
connecting to Asterisk and then to a SIP extension, there are two
connections here. If I redirect one channel to parkslot, another channel will
automatically hangup.</SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=077065919-15022007>Later, if I redirect that
channel from parkslot to the SIP extension, that extension will ring again.
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=077065919-15022007></SPAN></FONT> </DIV>
<DIV><FONT size=+0><SPAN class=077065919-15022007>Is there a solution to
redirect that two channels to parkslot at the same time, then reconnect these
two channels without ringing?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT size=2>
<P>-----Original Message-----</P></FONT></DIV>
<DIV><SPAN class=077065919-15022007><SPAN class=077065919-15022007>><SPAN
class=077065919-15022007>></SPAN></SPAN></SPAN>James Zhang wrote:<BR><SPAN
class=077065919-15022007>></SPAN>> These are common functions. Why
"Asterisk Manager"<BR><SPAN class=077065919-15022007>></SPAN>> doesn't
provide commands to hold and retrive an active channel?<BR><SPAN
class=077065919-15022007>></SPAN>> If it must be implemented by AGI, could
anyone give a direction or steps?<BR><BR><SPAN
class=077065919-15022007>></SPAN>Sure the Manager API provides all thing to
do that.<BR><SPAN class=077065919-15022007>></SPAN>Maybe you are just using
the wrong library on top of the Manager API ;)<BR><BR><SPAN
class=077065919-15022007>></SPAN>Asterisk-Java as an example lets you
retrieve active channels, iterate<BR><SPAN
class=077065919-15022007>></SPAN>over them, hangup, redirect, ...
whatever.<BR><BR><SPAN class=077065919-15022007>></SPAN>Example to hangup all
active channels:<BR><BR><SPAN class=077065919-15022007>></SPAN>for
(AsteriskChannel channel : server.getChannels())<BR><SPAN
class=077065919-15022007>></SPAN>{<BR><SPAN
class=077065919-15022007>></SPAN>channel.hangup();<BR><SPAN
class=077065919-15022007>></SPAN>}<BR><BR><SPAN
class=077065919-15022007>></SPAN>http://asterisk-java.org<BR><BR><SPAN
class=077065919-15022007>></SPAN>I am sure other libraries provide similar
abstraction.<BR><BR><SPAN
class=077065919-15022007>></SPAN>=Stefan<BR><BR><SPAN
class=077065919-15022007>></SPAN>-- <BR><SPAN
class=077065919-15022007>></SPAN>reuter network consulting<BR><SPAN
class=077065919-15022007>></SPAN>Neusser Str. 110<BR><SPAN
class=077065919-15022007>></SPAN>50760 Koeln<BR><SPAN
class=077065919-15022007>></SPAN>Germany<BR><SPAN
class=077065919-15022007>></SPAN>Telefon: +49 221 1305699-0<BR><SPAN
class=077065919-15022007>></SPAN>Telefax: +49 221 1305699-90<BR><SPAN
class=077065919-15022007>></SPAN>E-Mail: stefan.reuter<BR><SPAN
class=077065919-15022007>></SPAN>Jabber:
stefan.reuter</DIV></FONT></DIV></BODY></HTML>