cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
1425
Views
10
Helpful
4
Replies
lp.descamps
Beginner

addPhone vendorConfig AXL for cisco telepresence sx20 using python/Zeep

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
Beginner

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
dhook
Contributor

dstaudt
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
Beginner

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
Beginner

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

Create
Recognize Your Peers
Content for Community-Ad