Showing results for 
Search instead for 
Did you mean: 

Adding a directory number to phone associated with a user Using AXL

Level 1
Level 1

I am working on a script to automate the adding of DN to Phone and than adding then making directory number association with a User. I am not able to figure out the AXL syntax for that, will it using SQL or there is some tag for it.

6 Replies 6



try this post!


<soapenv:Envelope xmlns:soapenv="" xmlns:ns="">
      <ns:updateUser sequence="?">
                 <laapProductType>Cisco Unified Client Services Framework</laapProductType>

Cisco Employee
Cisco Employee
If the DN does not already exist, you would use <addLine> to create it.
You can use <updatePhone> to add the existing DN to the device:
- You can use the <updatePhone><lines> list and include your new DN, but note you will want to retrieve the existing <lines> list (via <getPhone>) and add your DN to the existing list of lines - otherwise you'll remove any other lines that were there before, as <lines> is fully replaced by what you submit
- You can use <updatePhone><addLines> to just specify the new DN to add

Not sure what you mean by 'making directory number association with a User'...can you elaborate?

When associating a DN to a Phone, how do we get the list of un-used DNs from the pool. so that we can associate it to the device.

For adding a new DN, I am using the following AXL, 

<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:xsi="" xmlns:xsd="">  
  <axl:addLine xmlns:axl="" sequence="12055">         
    <usage>For test purposes</usage>

is the syntax correct?, it's showing an error

Yes, Syntax is niccht correct.




<soapenv:Envelope xmlns:soapenv="" xmlns:ns="">
      <ns:addLine sequence="?">
            <description>DN 1000</description>

Note <usage> possible values are listed here, though the one you usually want defaults to 'Device':

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: