<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CUCM 10.5 AXL updateLine - Directory number not found in Management</title>
    <link>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3904582#M3148</link>
    <description>&lt;P&gt;I'm attempting to erase call forward all which also removes the calling search space settings as well. So i wrote some python code to erase the cfw info but update the css per line as follows&amp;nbsp; -- the outer loop works fine (remove cfw all) but the inner loop to update the css applies the same css for all lines in the list.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;line 887&amp;nbsp; css=subscriber css&lt;BR /&gt;line 888&amp;nbsp; css=subscriber css&lt;BR /&gt;line 889&amp;nbsp; css=subscriber css&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;dnToUpdate = list(addressStatus.keys())&lt;BR /&gt;callineSearchSpace = list(addressStatus.values())&lt;/P&gt;&lt;P&gt;for line in dnToUpdate:&lt;BR /&gt;for css in callineSearchSpace:&lt;BR /&gt;service = client.create_service(binding, location)&lt;BR /&gt;resp = service.updateLine(pattern=line, callForwardAll= {'destination' : '', 'callingSearchSpaceName' : css})&lt;BR /&gt;print(resp)&lt;BR /&gt;print (line + ' CFW setting was successfully updated')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2019 13:47:38 GMT</pubDate>
    <dc:creator>dedwards16@bloomberg.net</dc:creator>
    <dc:date>2019-08-07T13:47:38Z</dc:date>
    <item>
      <title>CUCM 10.5 AXL updateLine - Directory number not found</title>
      <link>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3482287#M1050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a python scripts to update call forward on the line. It works well for CUCM 8.6.2 but keeps failing for 10.5.2 I have updated AXL scheme but still does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you advise on how to get this working for 10.5.2, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp; soaprequest = '''&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;soapenv:Envelope&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:soapenv="&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:ns="&lt;A class="jive-link-external-small" href="http://www.cisco.com/AXL/API/10.5" rel="nofollow" target="_blank"&gt;http://www.cisco.com/AXL/API/10.5&lt;/A&gt;"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;soapenv:Header/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;soapenv:Body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns:updateLine sequence="?"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pattern&amp;gt;{0}&amp;lt;/pattern&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;routePartitionName&amp;gt;{1}&amp;lt;/routePartitionName&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;callForwardAll&amp;gt;&amp;lt;destination&amp;gt;{2}&amp;lt;/destination&amp;gt;&amp;lt;/callForwardAll&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ns:updateLine&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/soapenv:Body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/soapenv:Envelope&amp;gt;'''.format(dn,partition,dest)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;global AXLRequest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; soapheaders = {'SOAPAction':'CUCM:DB ver=10.5 updateLine', 'Content-length':'427'}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; conn = "&lt;A _jive_internal="true" href="https://community.cisco.com/message/192001" rel="nofollow" target="_blank"&gt;https://%s:8443/axl/&lt;/A&gt;" % (host)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; authstr = HTTPBasicAuth(usrnm, pw)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AXLRequest = requests.post(url=conn, data = soaprequest, headers = soapheaders, verify = False, auth=authstr)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; root = ET.fromstring(AXLRequest.text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;"&amp;gt;&amp;lt;soapenv:Body&amp;gt;&amp;lt;soapenv:Fault&amp;gt;&amp;lt;faultcode&amp;gt;soapenv:Server&amp;lt;/faultcode&amp;gt;&amp;lt;faultstring&amp;gt;Directory Number not found&amp;lt;/faultstring&amp;gt;&amp;lt;detail&amp;gt;&amp;lt;axlError&amp;gt;&amp;lt;axlcode&amp;gt;5003&amp;lt;/axlcode&amp;gt;&amp;lt;axlmessage&amp;gt;Directory Number not found&amp;lt;/axlmessage&amp;gt;&amp;lt;request&amp;gt;updateLine&amp;lt;/request&amp;gt;&amp;lt;/axlError&amp;gt;&amp;lt;/detail&amp;gt;&amp;lt;/soapenv:Fault&amp;gt;&amp;lt;/soapenv:Body&amp;gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Response [500]&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Element '{&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;}Envelope' at 0x1028d9e08&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Response [500]&amp;gt;&lt;/P&gt;&lt;P&gt;CWDALL failed on DN XXXXXXX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 10:03:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3482287#M1050</guid>
      <dc:creator>konradokon</dc:creator>
      <dc:date>2015-10-12T10:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM 10.5 AXL updateLine - Directory number not found</title>
      <link>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3482288#M1051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="font-size: 10.8px; font-family: arial; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;A href="https://community.cisco.com//people/konradokon"&gt;konradokon&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have wrote an Python Script that is building an XML-String for AXL from a Dictionary. If you send the Output from this Function with requests it should work. I have update the Line Pattern from some Lines with this on CUCM 10.5.2 and it worked great. I didn't made a Call Forward yet, but it should still work too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you give the function a Dictionary like: dict_Source = {'PrimaryNode':'updateLine','&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;pattern':'XXXX', '&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;routePartitionName':'XXXX', '&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;callForwardAll':'XXXX'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use your requests like this:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;global AXLRequest&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;soapheaders, &lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;soaprequest&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;) = do_axl(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;dict_Source)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; soapheaders = {'SOAPAction':'CUCM:DB ver=10.5 updateLine', 'Content-length':'427'}&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; conn = "&lt;A _jive_internal="true" href="https://community.cisco.com/message/192001" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0a63a7;"&gt;https://%s:8443/axl/&lt;/A&gt;" % (host)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; authstr = HTTPBasicAuth(usrnm, pw)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AXLRequest = requests.post(url=conn, data = soaprequest, headers = soapheaders, verify = False, auth=authstr)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; root = ET.fromstring(AXLRequest.text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;#!/usr/bin/python&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;# -*- coding: utf-8 -*-&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;__author__ = &lt;SPAN style="color: #008080; font-weight: bold;"&gt;'Benjamin Schaumburg'&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;xml.etree.ElementTree &lt;SPAN style="color: #000080; font-weight: bold;"&gt;as &lt;/SPAN&gt;eTree&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;sys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;# Namespaces&lt;BR /&gt;&lt;/SPAN&gt;soap_soap = &lt;SPAN style="color: #008080; font-weight: bold;"&gt;&lt;SPAN&gt;'{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;}'&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;soap_cisco_axl = &lt;SPAN style="color: #008080; font-weight: bold;"&gt;&lt;SPAN&gt;'{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/AXL/API/10.5" rel="nofollow" target="_blank"&gt;http://www.cisco.com/AXL/API/10.5&lt;/A&gt;&lt;SPAN&gt;}'&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;def &lt;/SPAN&gt;do_axl(elements_dict):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-weight: bold;"&gt;"PrimaryNode" &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;in &lt;/SPAN&gt;elements_dict:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; axlfunction = elements_dict.pop(&lt;SPAN style="color: #008080; font-weight: bold;"&gt;'PrimaryNode'&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;else&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #008080; font-weight: bold;"&gt;'No PrimaryNode, please check!'&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.exit()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-weight: bold;"&gt;"SecondaryNode" &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;in &lt;/SPAN&gt;elements_dict:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; axlsubfunction = elements_dict.pop(&lt;SPAN style="color: #008080; font-weight: bold;"&gt;'SecondaryNode'&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;else&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; axlsubfunction = &lt;SPAN style="color: #008080; font-weight: bold;"&gt;''&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;# SOAP Headers for request&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;soapheaders = {&lt;SPAN style="color: #008080; font-weight: bold;"&gt;'Content-type'&lt;/SPAN&gt;: &lt;SPAN style="color: #008080; font-weight: bold;"&gt;'text/xml;charset=UTF-8'&lt;/SPAN&gt;, &lt;SPAN style="color: #008080; font-weight: bold;"&gt;'SOAPAction'&lt;/SPAN&gt;: &lt;SPAN style="color: #008080; font-weight: bold;"&gt;'CUCM:DB ver=10.5 ' &lt;/SPAN&gt;+ axlfunction}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;# Build SOAP Envelope&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; # SOAP Envelope, with Namespace SOAP&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;soap_root = eTree.Element(soap_soap + &lt;SPAN style="color: #008080; font-weight: bold;"&gt;'Envelope'&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;# SOAP Body, Header are optional&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;soap_body = eTree.SubElement(soap_root, soap_soap + &lt;SPAN style="color: #008080; font-weight: bold;"&gt;'Body'&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;# AXL Function, in Namespace Cisco&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;soap_function = eTree.SubElement(soap_body, soap_cisco_axl + axlfunction)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;# Wenn noch ein Unterelement benötigt wird, füge es hier ein&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;axlsubfunction:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;soap_subfunction = eTree.SubElement(soap_function, axlsubfunction)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;for &lt;/SPAN&gt;key &lt;SPAN style="color: #000080; font-weight: bold;"&gt;in &lt;/SPAN&gt;elements_dict:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; soap_axlelement = eTree.SubElement(soap_subfunction, key)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; soap_axlelement.text = elements_dict[key]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;else&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;for &lt;/SPAN&gt;key &lt;SPAN style="color: #000080; font-weight: bold;"&gt;in &lt;/SPAN&gt;elements_dict:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; soap_axlelement = eTree.SubElement(soap_function, key)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; soap_axlelement.text = elements_dict[key]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;return &lt;/SPAN&gt;soapheaders, (eTree.tostring(soap_root, &lt;SPAN style="color: #660099;"&gt;encoding&lt;/SPAN&gt;=&lt;SPAN style="color: #008080; font-weight: bold;"&gt;'UTF-8'&lt;/SPAN&gt;, &lt;SPAN style="color: #660099;"&gt;method&lt;/SPAN&gt;=&lt;SPAN style="color: #008080; font-weight: bold;"&gt;'xml'&lt;/SPAN&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 10:30:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3482288#M1051</guid>
      <dc:creator>Benjamin Schaumburg</dc:creator>
      <dc:date>2015-10-14T10:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM 10.5 AXL updateLine - Directory number not found</title>
      <link>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3482289#M1052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for coming back to me. I am trying to implement it but I am not sure where did you take do_axl from.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;(soapheaders, soaprequest) = do_axl(dict_source)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;NameError: name 'do_axl' is not defined&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you advise, please? I am python beginner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 12:59:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3482289#M1052</guid>
      <dc:creator>konradokon</dc:creator>
      <dc:date>2015-10-14T12:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM 10.5 AXL updateLine - Directory number not found</title>
      <link>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3482290#M1053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do_axl is the defined function "&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: bold; color: #000080;"&gt;def &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;do_axl(elements_dict):". You have to define it, before you use it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Script should like this (It is important, that the Function is at the beginning:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-weight: inherit; font-style: italic; color: #808080;"&gt;#!/usr/bin/python&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-weight: inherit; font-style: italic; color: #808080;"&gt;# -*- coding: utf-8 -*-&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;import &lt;/SPAN&gt;xml.etree.ElementTree &lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;as &lt;/SPAN&gt;eTree&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;import &lt;/SPAN&gt;sys&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;STRONG&gt;import&lt;/STRONG&gt; requests&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;# Namespaces&lt;BR /&gt;&lt;/SPAN&gt;soap_soap = &lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;'{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" style="color: #0a63a7; font-weight: inherit; font-style: inherit; font-family: inherit;" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;}'&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;soap_cisco_axl = &lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;'{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/AXL/API/10.5" rel="nofollow" style="color: #0a63a7; font-weight: inherit; font-style: inherit; font-family: inherit;" target="_blank"&gt;http://www.cisco.com/AXL/API/10.5&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;}'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;def &lt;/SPAN&gt;do_axl(elements_dict):&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;if &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;"PrimaryNode" &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;in &lt;/SPAN&gt;elements_dict:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; axlfunction = elements_dict.pop(&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;'PrimaryNode'&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;else&lt;/SPAN&gt;:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000080;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;'No PrimaryNode, please check!'&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.exit()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;if &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;"SecondaryNode" &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;in &lt;/SPAN&gt;elements_dict:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; axlsubfunction = elements_dict.pop(&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;'SecondaryNode'&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;else&lt;/SPAN&gt;:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; axlsubfunction = &lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;''&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;# SOAP Headers for request&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;soapheaders = {&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;'Content-type'&lt;/SPAN&gt;: &lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;'text/xml;charset=UTF-8'&lt;/SPAN&gt;, &lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;'SOAPAction'&lt;/SPAN&gt;: &lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;'CUCM:DB ver=10.5 ' &lt;/SPAN&gt;+ axlfunction}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;# Build SOAP Envelope&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;&amp;nbsp; # SOAP Envelope, with Namespace SOAP&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;soap_root = eTree.Element(soap_soap + &lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;'Envelope'&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;# SOAP Body, Header are optional&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;soap_body = eTree.SubElement(soap_root, soap_soap + &lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;'Body'&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;# AXL Function, in Namespace Cisco&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;soap_function = eTree.SubElement(soap_body, soap_cisco_axl + axlfunction)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;# Wenn noch ein Unterelement benötigt wird, füge es hier ein&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;if &lt;/SPAN&gt;axlsubfunction:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;soap_subfunction = eTree.SubElement(soap_function, axlsubfunction)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;for &lt;/SPAN&gt;key &lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;in &lt;/SPAN&gt;elements_dict:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; soap_axlelement = eTree.SubElement(soap_subfunction, key)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; soap_axlelement.text = elements_dict[key]&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;else&lt;/SPAN&gt;:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;for &lt;/SPAN&gt;key &lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;in &lt;/SPAN&gt;elements_dict:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; soap_axlelement = eTree.SubElement(soap_function, key)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; soap_axlelement.text = elements_dict[key]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit; color: #808080;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #000080;"&gt;return &lt;/SPAN&gt;soapheaders, (eTree.tostring(soap_root, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #660099;"&gt;encoding&lt;/SPAN&gt;=&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;'UTF-8'&lt;/SPAN&gt;, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #660099;"&gt;method&lt;/SPAN&gt;=&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit; color: #008080;"&gt;'xml'&lt;/SPAN&gt;))&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;dict_Source = {'PrimaryNode':'updateLine','&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;pattern':'XXXX', '&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;routePartitionName':'XXXX', '&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;callForwardAll':'XXXX'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;soapheaders, &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;soaprequest&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;) = do_axl(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;dict_Source)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;soapheaders = {'SOAPAction':'CUCM:DB ver=10.5 updateLine', 'Content-length':'427'}&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;conn = "&lt;A _jive_internal="true" href="https://community.cisco.com/message/192001" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0a63a7;"&gt;https://%s:8443/axl/&lt;/A&gt;" % (host)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;authstr = HTTPBasicAuth(usrnm, pw)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;AXLRequest = requests.post(url=conn, data = soaprequest, headers = soapheaders, verify = False, auth=authstr)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;root = ET.fromstring(AXLRequest.text)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 14:32:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3482290#M1053</guid>
      <dc:creator>Benjamin Schaumburg</dc:creator>
      <dc:date>2015-10-14T14:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM 10.5 AXL updateLine - Directory number not found</title>
      <link>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3482291#M1054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as i untestand the log&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;....&lt;BR /&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;"&amp;gt;&amp;lt;soapenv:Body&amp;gt;&amp;lt;soapenv:Fault&amp;gt;&amp;lt;faultcode&amp;gt;soapenv:Server&amp;lt;/faultcode&amp;gt;&lt;STRONG&gt;&amp;lt;faultstring&amp;gt;Directory Number not found&amp;lt;/faultstring&amp;gt;&amp;lt;detail&amp;gt;&amp;lt;axlError&amp;gt;&amp;lt;axlcode&amp;gt;5003&amp;lt;/axlcode&amp;gt;&amp;lt;axlmessage&amp;gt;Directory Number not found&amp;lt;/axlmessage&amp;gt;&amp;lt;request&amp;gt;updateLine&amp;lt;/request&amp;gt;&amp;lt;/axlError&amp;gt;&amp;lt;/detail&amp;gt;&amp;lt;/soapenv:Fault&amp;gt;&lt;/STRONG&gt;&amp;lt;/soapenv:Body&amp;gt;&amp;lt;/soapenv:Envelope&amp;gt;
&lt;P&gt;&amp;lt;Response [500]&amp;gt;&lt;/P&gt;
....&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;Shows that you actually send a soap message and the AXL interface tryes to da the updateLine request.&lt;/P&gt;&lt;P&gt;So your python code should be working fine.&lt;/P&gt;&lt;P&gt;I would check the XML Part provided via AXL.&lt;/P&gt;&lt;P&gt;Could you create a dump of your &lt;STRONG&gt;soaprequest&lt;/STRONG&gt; cretaed and sent via AXL?&lt;BR /&gt;Maybe there is somethin wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made somethin simmilar but in perl.Even if this is a different language the XML and SOAP Part should be mostly the same.&lt;/P&gt;&lt;P&gt;Below you find how i built my XML and it works.&lt;/P&gt;&lt;P&gt;I can change every single Call Forward setting with this:&lt;/P&gt;&lt;PRE&gt;
&lt;P&gt;&amp;lt;pattern&amp;gt;$dn&amp;lt;/pattern&amp;gt;&amp;lt;routePartition&amp;gt;$partition&amp;lt;/routePartition&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;callForwardAll&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;forwardToVoiceMail&amp;gt;f&amp;lt;/forwardToVoiceMail&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;callingSearchSpace/&amp;gt;&amp;lt;destination&amp;gt;$cfa&amp;lt;/destination&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/callForwardAll&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;callForwardBusy&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;forwardToVoiceMail&amp;gt;f&amp;lt;/forwardToVoiceMail&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;callingSearchSpace/&amp;gt;&amp;lt;destination&amp;gt;$cfb&amp;lt;/destination&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/callForwardBusy&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;callForwardBusy&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;forwardToVoiceMail&amp;gt;f&amp;lt;/forwardToVoiceMail&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;callingSearchSpace/&amp;gt;&amp;lt;destination&amp;gt;&amp;lt;/destination&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/callForwardBusy&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;callForwardBusyInt&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;forwardToVoiceMail&amp;gt;f&amp;lt;/forwardToVoiceMail&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;callingSearchSpace/&amp;gt;&amp;lt;destination&amp;gt;$cfbi&amp;lt;/destination&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/callForwardBusyInt&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;callForwardNoAnswer&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;forwardToVoiceMail&amp;gt;f&amp;lt;/forwardToVoiceMail&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;callingSearchSpace/&amp;gt;&amp;lt;destination&amp;gt;$cfna&amp;lt;/destination&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;duration&amp;gt;$cfnar&amp;lt;/duration&amp;gt;&amp;lt;/callForwardNoAnswer&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;callForwardNoAnswer&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;forwardToVoiceMail&amp;gt;f&amp;lt;/forwardToVoiceMail&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;callingSearchSpace/&amp;gt;&amp;lt;destination&amp;gt;&amp;lt;/destination&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;duration&amp;gt;$cfnar&amp;lt;/duration&amp;gt;&amp;lt;/callForwardNoAnswer&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;callForwardNoAnswerInt&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;forwardToVoiceMail&amp;gt;f&amp;lt;/forwardToVoiceMail&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;callingSearchSpace/&amp;gt;&amp;lt;destination&amp;gt;$cfnai&amp;lt;/destination&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/callForwardNoAnswerInt&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;callForwardNoCoverage&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;forwardToVoiceMail&amp;gt;f&amp;lt;/forwardToVoiceMail&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;callingSearchSpace/&amp;gt;&amp;lt;destination&amp;gt;$cfnc&amp;lt;/destination&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/callForwardNoCoverage&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;callForwardNoCoverageInt&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;forwardToVoiceMail&amp;gt;f&amp;lt;/forwardToVoiceMail&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;callingSearchSpace/&amp;gt;&amp;lt;destination&amp;gt;$cfnci&amp;lt;/destination&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/callForwardNoCoverageInt&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;callForwardOnFailure&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;forwardToVoiceMail&amp;gt;f&amp;lt;/forwardToVoiceMail&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;callingSearchSpace/&amp;gt;&amp;lt;destination&amp;gt;$cfcti&amp;lt;/destination&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/callForwardOnFailure&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;callForwardNotRegistered&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;forwardToVoiceMail&amp;gt;f&amp;lt;/forwardToVoiceMail&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;callingSearchSpace/&amp;gt;&amp;lt;destination&amp;gt;$cfu&amp;lt;/destination&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/callForwardNotRegistered&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;callForwardNotRegisteredInt&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;forwardToVoiceMail&amp;gt;f&amp;lt;/forwardToVoiceMail&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;callingSearchSpace/&amp;gt;&amp;lt;destination&amp;gt;$cfui&amp;lt;/destination&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/callForwardNotRegisteredInt&amp;gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 13:54:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3482291#M1054</guid>
      <dc:creator>thedd</dc:creator>
      <dc:date>2016-04-20T13:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM 10.5 AXL updateLine - Directory number not found</title>
      <link>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3904582#M3148</link>
      <description>&lt;P&gt;I'm attempting to erase call forward all which also removes the calling search space settings as well. So i wrote some python code to erase the cfw info but update the css per line as follows&amp;nbsp; -- the outer loop works fine (remove cfw all) but the inner loop to update the css applies the same css for all lines in the list.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;line 887&amp;nbsp; css=subscriber css&lt;BR /&gt;line 888&amp;nbsp; css=subscriber css&lt;BR /&gt;line 889&amp;nbsp; css=subscriber css&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;dnToUpdate = list(addressStatus.keys())&lt;BR /&gt;callineSearchSpace = list(addressStatus.values())&lt;/P&gt;&lt;P&gt;for line in dnToUpdate:&lt;BR /&gt;for css in callineSearchSpace:&lt;BR /&gt;service = client.create_service(binding, location)&lt;BR /&gt;resp = service.updateLine(pattern=line, callForwardAll= {'destination' : '', 'callingSearchSpaceName' : css})&lt;BR /&gt;print(resp)&lt;BR /&gt;print (line + ' CFW setting was successfully updated')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 13:47:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3904582#M3148</guid>
      <dc:creator>dedwards16@bloomberg.net</dc:creator>
      <dc:date>2019-08-07T13:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM 10.5 AXL updateLine - Directory number not found</title>
      <link>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3904729#M3149</link>
      <description>&lt;P&gt;The problem is likely the nested loop.&amp;nbsp; You might try something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;service = client.create_service(binding, location)

for x in range( len( dnToUpdate ) ):

  resp = service.updateLine( pattern = dnToUpdate( x ), 
	callForwardAll = { "destination": '', "callingSearchSpaceName": callineSearchSpace( x ) }
  print( resp )
  print ( dnToUpdate( x ) + ' CFW setting was successfully updated')&lt;/PRE&gt;
&lt;P&gt;or perhaps use a dictionary array to store DN+CSS pairs - this may keep things from getting our of sync between lists:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;lineAndCss = [
	{ 
		"1ine": "1000",
		"Css": "line1Css"
	},
	{
		"1ine": "2000",
		"Css": "line2Css"
	}

service = client.create_service(binding, location)

for line in lineAndCss:

  resp = service.updateLine( pattern = line[ "line" ], 
	callForwardAll = { "destination": '', "callingSearchSpaceName": line[ "Css" ] }
  print( resp )
  print ( line[ "line" ] + ' CFW setting was successfully updated')	&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Aug 2019 16:44:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3904729#M3149</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2019-08-07T16:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM 10.5 AXL updateLine - Directory number not found&amp;body=%0A%0A%23%23- Please type your reply above this line -%23%23</title>
      <link>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3904893#M3151</link>
      <description>Hi David, thanks for your reply -- it lead me down the correct path and issue fixed as follows:&lt;BR /&gt;for address, css in lineAnd_CSS.items():&lt;BR /&gt;service = client.create_service(binding, location)&lt;BR /&gt;resp = service.updateLine(pattern=address, callForwardAll= {'destination' : '', 'callingSearchSpaceName' : css})&lt;BR /&gt;print(resp)&lt;BR /&gt;print (address + ' CFW setting was successfully updated')</description>
      <pubDate>Wed, 07 Aug 2019 21:07:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3904893#M3151</guid>
      <dc:creator>dedwards16@bloomberg.net</dc:creator>
      <dc:date>2019-08-07T21:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM 10.5 AXL updateLine - Directory number not found</title>
      <link>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3904894#M3152</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi David, thanks for your reply -- it lead me down the correct path and issue fixed as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;for address, css in lineAnd_CSS.items():&lt;/DIV&gt;&lt;DIV&gt;service = client.create_service(binding, location)&lt;/DIV&gt;&lt;DIV&gt;resp = service.updateLine(pattern=address, callForwardAll= {'destination' : '', 'callingSearchSpaceName' : css})&lt;/DIV&gt;&lt;DIV&gt;print(resp)&lt;/DIV&gt;&lt;DIV&gt;print (address + ' CFW setting was successfully updated')&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Aug 2019 21:08:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-10-5-axl-updateline-directory-number-not-found/m-p/3904894#M3152</guid>
      <dc:creator>dedwards16@bloomberg.net</dc:creator>
      <dc:date>2019-08-07T21:08:54Z</dc:date>
    </item>
  </channel>
</rss>

