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: [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED]
signature.asc
Description: OpenPGP digital signature
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
