cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2227
Views
0
Helpful
2
Replies

Add phone with an existed line

jialinli
Level 1
Level 1

I tried to add a new device to CUCM and add an existed line to this phone at the same time. When I use the uuid of the dirn, the phone can be added successfully, but when I tried to use the pattern and routePartitionName, it failed, the content in my xml file is:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/11.5">

   <soapenv:Header/>

   <soapenv:Body>

      <ns:addPhone sequence="?">

         <phone ctiid="?">

            <name>SEPC47295A8D5B6</name>

            <description>Jia Ling Li (jialinli) - RedBaron PP - test</description>

            <product>Cisco 7811</product>

            <class>Phone</class>

            <protocol>SIP</protocol>

            <protocolSide>User</protocolSide>

            <devicePoolName uuid="?">Default</devicePoolName>

            <lines>

               <line ctiid="?">

                  <index>1</index>

                  <label>Jia Ling - 32011</label>

                  <display>Jia Ling Li</display>

                  <dirn uuid="?">

                     <pattern>32011</pattern>

                     <routePartitionName uuid="?">Global Learned E164 Patterns</routePartitionName>

                  </dirn>

                  <ringSetting>Ring</ringSetting>

                  <consecutiveRingSetting>Use System Default</consecutiveRingSetting>

                  <mwlPolicy>Use System Policy</mwlPolicy>

               </line>

            </lines>

            <phoneTemplateName uuid="?">Standard 7811 SIP</phoneTemplateName>

            <softkeyTemplateName uuid="?">Standard User</softkeyTemplateName>

            <enableExtensionMobility>false</enableExtensionMobility>

            <sshUserid>debug</sshUserid>

            <sshPwd>debug</sshPwd>

         </phone>

      </ns:addPhone>

   </soapenv:Body>

</soapenv:Envelope>

And the error I got is:

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>Item not valid: The specified numPlanId was not found</faultstring><detail><axlError><axlcode>5007</axlcode><axlmessage>Item not valid: The specified numPlanId was not found</axlmessage><request>addPhone</request></axlError></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>

Does this mean I could only use the uuid of the dirn to add line to the device?

1 Accepted Solution

Accepted Solutions

jialinli
Level 1
Level 1

use <dirn ctiid="?"></dirn> will resolve the problem

View solution in original post

2 Replies 2

jialinli
Level 1
Level 1

I want to add a phone with a given dir number to CUCM, without trying to get the uuid of the dirn, is this possible?

Or how can I get the uuid of dirn according to a phone number like "32011"?  I'm using CUCM 11.5.

jialinli
Level 1
Level 1

use <dirn ctiid="?"></dirn> will resolve the problem