I have modified a softkey template to include the 'Record' button when the call state is 'connected'.
I also see that the 'Record' button is getting displayed when the call is active (Connected).
Is there a way to invoke the Record button via JTAPI? (some way to access the Component groups of a phone?)
We are using CUCM 9x version and I dont seem to access the phoneTerminal.
(The below code prints not a phone terminal)
Sample Code:
try {
Terminal terminal = myprovider.getTerminal("5551212");
ComponentGroup groups[];
if (terminal instanceof PhoneTerminal) {
groups = ((PhoneTerminal)terminal).getComponentGroups();
} else{
System.out.println("Not a PhoneTerminal");
}
} catch (Exception excp) {
// Handle exceptions
}
The Answer is
You can send action request from JTAPI client to CUCM, and trigger the softkey. But it's not very safe, for you should know the position of the key in the phone screen. Otherwise, you may trigger another incorrect key.
Maybe the better way is to start recording via JTAPI client directly.
Comments
0 comments
Please sign in to leave a comment.