Hello,
I recently upgraded asterisk and the java api to version 2 but since then
my previous code which used to use monitor action. Could someone please
tell me if I need to make any modification?
I do know I have to append the id in the channels but other than that are
there any other changes?
This is the code I am using -
MonitorAction ma = new
MonitorAction("SIP/3004-5bab","testsdgsdgdsgsdg");
ManagerResponse originateResponse;
Boolean yes = new Boolean("true");
ma.setMix(yes);
managerConnection.login();
originateResponse = managerConnection.sendAction(ma);
System.out.println(originateResponse.getResponse());
managerConnection.logoff();
I sometimes get "error" back and sometimes "permission denied"?
|