01-21-2017 06:53 AM
I am trying to set the Alternate enterprise and e.164 numbers when using adding new lines to cucm. I have found that these values in the addLine function are only used for update and get so I am having to do a sql query to manipulate these values. It looks like the table I want to change is called alternatenumber and from what I can tell the only required value is the fknumplan which should be the PKID from the numplan table however when I try to do an insert I am getting the following error.
<faultstring>An Alternate Number can only be associated to directory number or line template.</faultstring><detail><axlError><axlcode>19145</axlcode>
Has anyone done this before and have an idea what I am missing.
Here is my sql query insert into alternatenumber (fknumplan) VALUES ('".$val."')
I have tried using the following for the fknumplan insert value
pkid from the numplan table with and without the {}
abd the dnorpattern it's self from the numplan table.
01-23-2017 11:54 AM
Can you use <updateLine> ?
The below works on my 10.5 test system:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/10.5">
<soapenv:Header/>
<soapenv:Body>
<ns:updateLine>
<pattern>9876</pattern>
<routePartitionName/>
<enterpriseAltNum>
<numMask>8XXXX</numMask>
</enterpriseAltNum>
<e164AltNum>
<numMask>1405555XXXX</numMask>
</e164AltNum>
</ns:updateLine>
</soapenv:Body>
</soapenv:Envelope>
10-26-2018 12:35 PM
Should this work in CUCM 11.5?
10-29-2018 07:43 AM
I would think so, are seeing an issue..?
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