cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1731
Views
10
Helpful
4
Replies

addPhone vendorConfig AXL for cisco telepresence sx20 using python/Zeep

lp.descamps
Level 1
Level 1

I'm trying to create a phone using python/zeep but i'm stuck for Product Specific Configuration Layout which is the vendorConfig.

How would you create the RoomName?

1 Accepted Solution

Accepted Solutions

lp.descamps
Level 1
Level 1

here is the script I have been using

script

 

using the python module lxml

 

sample of the code

xmlstring = '<items>' \
'<webAccess>2</webAccess>' \
'</items>'
tree = ET.fromstring(xmlstring)
client.addPhone(phone=
        {
        'vendorConfig': tree
		}

 

 

View solution in original post

4 Replies 4

dstaudt
Cisco Employee
Cisco Employee

The value you'll send it to vendorConfig will be an XML string comprised of the settings you want to control.  To get the format for a specific device (I assume the RoomName is one of those elements), one way is to create the device using the CUCM admin UI setting the variable as desired, and then use something like soapUI to perform <getPhone> - you can them examine the <vendorConfig> element as a template...

lp.descamps
Level 1
Level 1

here is the script I have been using

script

 

using the python module lxml

 

sample of the code

xmlstring = '<items>' \
'<webAccess>2</webAccess>' \
'</items>'
tree = ET.fromstring(xmlstring)
client.addPhone(phone=
        {
        'vendorConfig': tree
		}

 

 

Mike Hagans
Level 1
Level 1

Have you upgraded to 12.5 and if so, having issues with vendorConfig? 

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: