James Zhang
2007-Feb-13 12:45 UTC
[asterisk-users] How can I use "Asterisk Manager API" to hold and retrive an active call?
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? Thanks in advance, James -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070213/9974cc81/attachment.htm
Stefan Reuter
2007-Feb-13 19:37 UTC
[asterisk-users] How can I use "Asterisk Manager API" to hold and retrive an active call?
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@reucon.com Jabber: stefan.reuter@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