Hi All,
I am facing with a problem while originating a call via Asterisk. I get the error Channel not specified. Below is my code. Can someone tell me what is wrong?
originateAction.setChannel(“SIP/111006”);
originateAction.setTimeout(10);
originateAction.setAsync(true);
Thread.sleep(3000);
originateAction.setContext(“some-context”);
originateAction.setExten(“111006”);
originateAction.setPriority(new Integer(1));
originateAction.setTimeout(new Integer(30000));
originateResponse = managerConnection.sendAction(originateAction,30000);
ResponseEvents r = managerConnection.sendEventGeneratingAction(statusaction);
System.out.println(“getAction()”+originateAction.getAction());
System.out.println("$$$$$$$$$$$$$" + originateResponse.getResponse());
System.out.println("$$$$$$$$$$$$$" + originateResponse.getMessage());
The output of the above line is Channel Not Specified.