[asterisk-users] How can I use 'Asterisk Manager API' to hold and
retrive an active call?
James Zhang
James.Zhang at amctechnology.com
Fri Feb 16 12:23:17 MST 2007
Thanks Stefan for input.
I know that there is a "hangup" action in Asterisk Manager API.
I am looking for "hold and retrive" commend. I search google and find
that redirecting to parkslot can work.
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.
Later, if I redirect that channel from parkslot to the SIP extension,
that extension will ring again.
Is there a solution to redirect that two channels to parkslot at the
same time, then reconnect these two channels without ringing?
-----Original Message-----
>>James Zhang wrote:
>> These are common functions. Why "Asterisk Manager"
>> doesn't provide commands to hold and retrive an active channel?
>> If it must be implemented by AGI, could anyone give a direction or
steps?
>Sure the Manager API provides all thing to do that.
>Maybe you are just using the wrong library on top of the Manager API ;)
>Asterisk-Java as an example lets you retrieve active channels, iterate
>over them, hangup, redirect, ... whatever.
>Example to hangup all active channels:
>for (AsteriskChannel channel : server.getChannels())
>{
>channel.hangup();
>}
>http://asterisk-java.org
>I am sure other libraries provide similar abstraction.
>=Stefan
>--
>reuter network consulting
>Neusser Str. 110
>50760 Koeln
>Germany
>Telefon: +49 221 1305699-0
>Telefax: +49 221 1305699-90
>E-Mail: stefan.reuter
>Jabber: stefan.reuter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070216/ff6dfd63/attachment.htm
More information about the asterisk-users
mailing list