David Staudt | With the regular AXL requests, you can use the listPhone request with a wildcard for the name, then perform getPhone for each device in the list. This could potentially take many requests (N+1). Using executeSQLQuery you can try to get a SQL join with all the data at once, the relevant tables are 'device', 'numplan' and 'devicenumplanmap'. Something like: select device.name, numplan.dnorpattern from device, numplan, devicenumplanmap where device.pkid=devicenumplanmap.fkdevice and device.fknumplan=numplan.pkid (not tested) You may need to add some additional restrictions, e.g. to make sure you are retrieving only phone devices types. In addition, the performance impact of executing and/or the size of the response data may be very large, depending on how many devices/lines are present on the system. AXL will throttle/reject queries which are too large, in which case you may need to break up the request into subsets somehow (e.g. 100 devices at a time.) Monitoring performance impact on UCM is also recommended. Please see the AXL Developer Guide for more details on throttling, and the Data Dictionary for details on UCM tables/fields/relationships |
| Please sign in to flag this as inappropriate. |