cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
753
Views
10
Helpful
3
Replies
Highlighted
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?

Everyone's tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Beginner

Re: addPhone vendorConfig AXL for cisco telepresence sx20 using python/Zeep

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

3 REPLIES 3
Highlighted
Contributor

Re: addPhone vendorConfig AXL for cisco telepresence sx20 using python/Zeep

Highlighted
Cisco Employee

Re: addPhone vendorConfig AXL for cisco telepresence sx20 using python/Zeep

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...

Highlighted
Beginner

Re: addPhone vendorConfig AXL for cisco telepresence sx20 using python/Zeep

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

This widget could not be displayed.