This document was generated from CDN thread
Created by: Mohamad Atef on 21-11-2010 01:04:50 PM
I was trying to add a new phone using AXL and java . it really works and I can add a new Phone ,but the problem is that the when the phone is added , it's always named "Default", even I set its name.
and here 's the code:
devPool = stub.getDevicePool(new NameAndGUIDRequest(null, "Default", null)).get_return().getDevicePool();
//adding new phone
AddPhoneReq newPhoneReq = new AddPhoneReq();
XIPPhone phone = new XIPPhone();
phone.setName("KhafagaDevice");
XModelInfo info = new XModelInfo();
info.setName("KhafagaDevice");
info.set_class("Phone");
phone.setModelInfo(info);
phone.setProtocol("SCCP");
phone.setCurrentConfig(new XIPPhoneCurrentConfig());
phone.setProduct("CTI Port");
phone.setDevicePool(devPool);
phone.setModel(XModel._value1);
phone.set_class("Phone");
phone.setProtocolSide("User");
newPhoneReq.setNewPhone(phone);
System.out.println(stub.addPhone(newPhoneReq).get_return());
so , please if anyone knows what is the problem and how I can solve it, let mw know.