我想使用 Cisco Call Manager 6 的 AXL API 添加一个新的 IP 电话和 Java 新线路。这是我的代码:
XRoutePartition partition = new XRoutePartition();
partition.setName("PT_INTERNAL");
XNPDirectoryNumber dirn = new XNPDirectoryNumber();
dirn.setPattern("1006");
dirn.setRoutePartition(partition);
XLine phoneLine = new XLine();
phoneLine.setDirn(dirn);
XLine[] phoneLineArray = new XLine[1];
phoneLineArray[0] = phoneLine;
AddLineReq addLine = new AddLineReq();
addLine.setNewLine(dirn);
XIPPhone.Lines lines = new XIPPhone.Lines();
lines.getLine().add(0, phoneLine);
XIPPhone xp = new XIPPhone();
xp.setName("SEP64168D50552C");
xp.setDescription("Laroussi Nader Test");
xp.setProduct("Cisco 7911");
xp.setClazz("Phone");
xp.setModel("Cisco 7911");
xp.setProtocol("SCCP");
xp.setProtocolSide("User");
xp.setDefaultProfileName("Standard Common Phone Profile");
//XDevicePool devicePool = new XDevicePool();
//devicePool.setName("Default");
xp.setDevicePoolName("Default");
//XLocation location = new XLocation();
//location.setName("Hub_None");
xp.setLocationName("Hub_None");
xp.setLines(lines);
AddPhoneReq addPhoneReq = new AddPhoneReq();
addPhoneReq.setNewPhone(xp);
StandardResponse response = axlPort.addPhone(addPhoneReq);
SOAP 响应是:指定的名称包含无效字符或格式不适合此设备类型。
我能做些什么来解决这个问题?谢谢