02-15-2017 10:41 PM
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?
Solved! Go to Solution.
02-19-2017 11:03 PM
use <dirn ctiid="?"></dirn> will resolve the problem
02-15-2017 10:46 PM
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.
02-19-2017 11:03 PM
use <dirn ctiid="?"></dirn> will resolve the problem
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide