[asterisk-users] How can I use "Asterisk Manager API" to hold and retrive an active call?

Stefan Reuter stefan.reuter at reucon.com
Tue Feb 13 19:38:13 MST 2007


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 at reucon.com
Jabber:  stefan.reuter at reucon.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070213/3baeca7a/signature.pgp


More information about the asterisk-users mailing list