Hello,
I need a test outbound dialer , i used orignate action for calling customer
extensions (111) then put the channel in support queue then transfer the
call to extension 222 which is agent the point now that i didn't see in
Asterisk that call 111 was added to queue.
this is my code :
OriginateAction originateAction;
ManagerResponse originateResponse;
originateAction = new OriginateAction();
originateAction.setChannel("SIP/111");
originateAction.setContext("from-internal");
originateAction.setPriority(new Integer(1));
managerConnection.login();
///SIP/111 Customer
QueueAddAction queueaction=new QueueAddAction("support","SIP/111");
System.out.print(queueaction.getQueue());
System.out.print(queueaction.getInterface());
originateAction.setExten("222"); ///222 is Agent
originateResponse = managerConnection.sendAction(originateAction, 30000);
System.out.println(originateResponse.getResponse());
// and finally log off and disconnect
managerConnection.logoff();
Thanks
--
Ahmed Magdy Mahmoud
|