[Asterisk-java-devel] Multiple parking using Asterisk Java API
Brought to you by:
srt
|
From: Vij G. <vij...@ya...> - 2009-09-24 20:18:28
|
Hi Fellow Developers,
I've a question regarding multiple call parking. How to park the multiple calls using Asterisk Java API? I am able to park one call at a time, but when parking the second call it knocks out the first one. There are 20 slots in the parking lot.
There doesn't appear to be a .SetContext or .SetPriority method in Java Asterisk api.
ParkAction parkAction = new ParkAction();
parkAction.setChannel(Channel1);
parkAction.setChannel2(Channel2);
parkAction.setTimeout(120000);
// connect to Asterisk and log in
managerConnection.login();
parkResponse = managerConnection.sendAction(parkAction, 30000);
-------------------------------------
Any help would be appreciated.
From cricket scores to your friends. Try the Yahoo! India Homepage! http://in.yahoo.com/trynew |