<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Get Phone with specific Directory Number (Line)</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=10984731" />
  <subtitle>Get Phone with specific Directory Number (Line)</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=10984731</id>
  <updated>2013-06-19T07:44:07Z</updated>
  <dc:date>2013-06-19T07:44:07Z</dc:date>
  <entry>
    <title>RE: Get Phone with specific Directory Number (Line)</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11035828" />
    <author>
      <name>Juerg Ott</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11035828</id>
    <updated>2013-01-23T15:37:51Z</updated>
    <published>2013-01-23T15:37:51Z</published>
    <summary type="html">thanks Leandro, works perfect!
 
 
 </summary>
    <dc:creator>Juerg Ott</dc:creator>
    <dc:date>2013-01-23T15:37:51Z</dc:date>
  </entry>
  <entry>
    <title>RE: Get Phone with specific Directory Number (Line)</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=10985711" />
    <author>
      <name>Leandro Wajswajn</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=10985711</id>
    <updated>2013-01-22T14:56:06Z</updated>
    <published>2013-01-22T14:56:06Z</published>
    <summary type="html">I'm not sure if you can search through Line # within AXL; what I found that you can do is to use an "executeSQLQuery" command and build yourown SQL Query for what you need. In your case, to list all phone name (SEPXXXXXXXX) which its line starts with "1000", you will need to run this query:
SELECT device.name
FROM device
INNER JOIN devicenumplanmap ON devicenumplanmap.fkdevice=device.pkid
INNER JOIN numplan ON devicenumplanmap.fknumplan=numplan.pkid
WHERE numplan.dnorpattern LIKE '1000%'
The whole SOAP XML would be:
&lt;axl:executeSQLQuery xmlns:axl="[url=http://www.cisco.com/AXL/API/8.5]http://www.cisco.com/AXL/API/8.5[/url]" xsi:schemaLocation="[url=http://www.cisco.com/AXL/API/8.5]http://www.cisco.com/AXL/API/8.5[/url] axlsoap.xsd"&gt;
    &lt;sql&gt;SELECT device.name FROM device INNER JOIN devicenumplanmap ON devicenumplanmap.fkdevice=device.pkid INNER JOIN numplan ON devicenumplanmap.fknumplan=numplan.pkid WHERE numplan.dnorpattern LIKE '1000%'&lt;/sql&gt;
&lt;/axl:executeSQLQuery&gt;</summary>
    <dc:creator>Leandro Wajswajn</dc:creator>
    <dc:date>2013-01-22T14:56:06Z</dc:date>
  </entry>
  <entry>
    <title>Get Phone with specific Directory Number (Line)</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=10984730" />
    <author>
      <name>Juerg Ott</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=10984730</id>
    <updated>2013-01-22T14:24:29Z</updated>
    <published>2013-01-22T14:24:29Z</published>
    <summary type="html">i searching the best way to find the phone device with a specific line number.
with the Unified CM Administration Webinterface i can easy find them with Device - Phone and then as Filter
Find Phone where "Directory Number" begins with "1000" 
But if i want to do this with AXL, i cannot set a "Directory Number" Filter in ListPhoneReqSearchCriteria() 
can somebody give me the correct way get the Phone Device with has a specific Directory Number?
thanks
Jürg</summary>
    <dc:creator>Juerg Ott</dc:creator>
    <dc:date>2013-01-22T14:24:29Z</dc:date>
  </entry>
</feed>

