Created by: John Katsavras on 22-05-2013 10:33:55 AM Hi there, I am using CUCM 8.5 AXL API method "listPhone" to get all the phone that i want. That part is fine.
I am stuck on using the attributes that I get from method "listPhone" to getting the extention numbers associated with a phone from the list of results. What attribute from method "listPhone" do i need to use to say find the extention number using a method like "GetLineReq" or "GetLine" Thanks for the help/advice
Alexis
Subject: RE: From listPhone to Phone Line Replied by: David Staudt on 22-05-2013 03:15:31 PM The most basic piece of info would be the 'uuid' attribute: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:axl="http://www.cisco.com/AXL/API/8.5"> <soapenv:Body> <axl:listPhone> <searchCriteria> <name>SEP%</name> </searchCriteria> <returnedTags /> </axl:listPhone> </soapenv:Body> </soapenv:Envelope> ------------------------------------ <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns:listPhoneResponse xmlns:ns="http://www.cisco.com/AXL/API/8.5"> <return> <phone uuid="{04A5F4D0-1C1C-438A-B4DD-2024C64F9CE8}"/> <phone uuid="{9EE1CEF5-E02E-FB3C-AA77-CE66AE10008B}"/> ... <phone uuid="{DD3415CE-E88C-4D7A-B1FA-10FDDA67AAF1}"/> </return> </ns:listPhoneResponse> </soapenv:Body> </soapenv:Envelope> then <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.5"> <soapenv:Header/> <soapenv:Body> <ns:getPhone sequence="1"> <uuid>{04A5F4D0-1C1C-438A-B4DD-2024C64F9CE8}</uuid> <returnedTags> <lines> <line> <dirn> <pattern/> <routePartitionName/> </dirn> </line> </lines> </returnedTags> </ns:getPhone> </soapenv:Body> </soapenv:Envelope> ------------------------------------ <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns:getPhoneResponse xmlns:ns="http://www.cisco.com/AXL/API/8.5"> <return> <phone uuid="{04A5F4D0-1C1C-438A-B4DD-2024C64F9CE8}"> <lines> <line uuid="{D2B5F355-10F3-41DF-B249-A695FA3A289B}"> <dirn uuid="{35D0092C-3372-4B9F-9922-65D60BADF5B1}"> <pattern>1012</pattern> <routePartitionName/> </dirn> </line> </lines> </phone> </return> </ns:getPhoneResponse> </soapenv:Body> </soapenv:Envelope>
Subject: RE: From listPhone to Phone Line Replied by: John Katsavras on 23-05-2013 07:21:55 AM thanks David tahts what i needed alexis
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: