I Want to know how to make calls using local channel for use with .call files or AMI .
Below is my code ;-
originateAction = new OriginateAction(); originateAction.setChannel("local/666691976222215@outbound/n"); originateAction.setExten("6666919768203876"); originateAction.setPriority(new Integer(1)); originateAction.setTimeout(new Integer(30000)); originateResponse = managerConnection.sendAction(originateAction, 30000); System.out.println(originateResponse.getResponse());
It shows me this error in the cli:-
NOTICE: chan_local.c:710 local_call: No such extension/context 666691976222215@outbound while calling Local channel
[Aug 4 17:03:56] NOTICE: channel.c:4201 __ast_request_and_dial: Unable to call channel local/6666919768203876@outbound/n
[Aug 4 17:03:56] ERROR: pbx.c:9366 device_state_cb: Received invalid event that had no device IE
[Aug 4 17:03:56] ERROR: app_queue.c:1112 device_state_cb: Received invalid event that had no device IE