03-01-2016 07:12 AM
"Wireless Headset Hookswitch Control" found under Phone configuration / Product Specific Configuration Layout
Does anyone know how to enable this with AXL API?.
Call Manager Version = ( 10.5.2.12901(1) )
Solved! Go to Solution.
03-02-2016 10:12 AM
Configuration items in the Phone/Device Specific Config area (sometimes referred to as the 'vendor config' data) are stored as a block of XML in the CUCM database. Depending on the device (and the possible size of this chunk of XML), the data may be stored in the devicexml4k/devicexml8k/devicexml16k tables. See this FAQ for info on some stored procedures that make this a bit easier to deal with:
https://developer.cisco.com/site/axl/help/faqs/index.gsp#section-1
The actual content of the XML consists of elements which describe the device specific config settings. Unfortunately there is no available schema describing the XML for this content, though the fields are generally pretty self explanatory. Also, note that generally the XML for any given device will be empty until a specific config is changed, in which case generally only the changed XML config element will be present.
In order to perform the operation you describe, you will need to do something like:
- Know the XML element and values needed to enable/disable the setting (typically by changing the setting in CUCM, then reading the XML to see what values are present)
- For each device, read the existing vendor config XML data for the device,
- Iterate through the XML elements to see if the particular config element you are interested in is present - if not, add it
- Set the desired value
- Write the XML chunk back to CUCM
03-02-2016 10:12 AM
Configuration items in the Phone/Device Specific Config area (sometimes referred to as the 'vendor config' data) are stored as a block of XML in the CUCM database. Depending on the device (and the possible size of this chunk of XML), the data may be stored in the devicexml4k/devicexml8k/devicexml16k tables. See this FAQ for info on some stored procedures that make this a bit easier to deal with:
https://developer.cisco.com/site/axl/help/faqs/index.gsp#section-1
The actual content of the XML consists of elements which describe the device specific config settings. Unfortunately there is no available schema describing the XML for this content, though the fields are generally pretty self explanatory. Also, note that generally the XML for any given device will be empty until a specific config is changed, in which case generally only the changed XML config element will be present.
In order to perform the operation you describe, you will need to do something like:
- Know the XML element and values needed to enable/disable the setting (typically by changing the setting in CUCM, then reading the XML to see what values are present)
- For each device, read the existing vendor config XML data for the device,
- Iterate through the XML elements to see if the particular config element you are interested in is present - if not, add it
- Set the desired value
- Write the XML chunk back to CUCM
03-03-2016 11:35 AM
thanks for sharing your knowledge
06-11-2018 08:47 AM
This works for me.
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/11.5">
<soapenv:Header/>
<soapenv:Body>
<ns:updatePhone>
<uuid>{85EAC416-8055-1FAD-68E0-5647ABA3F2E3}</uuid>
<vendorConfig>
<ehookEnable>1</ehookEnable>
</vendorConfig>
</ns:updatePhone>
</soapenv:Body>
</soapenv:Envelope>
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide