04-15-2015 08:27 PM
Does anyone have an example they can share to update the speed dials of a device profile, or any device really in this format?
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/10.0">
<soapenv:Header/>
<soapenv:Body>
<ns:updateLine sequence="?">
<pattern>"dn"</pattern>
<routePartitionName>'''internal'''</routePartitionName>
<newRoutePartitionName>"test"</newRoutePartitionName>
</ns:updateLine>
</soapenv:Body>
</soapenv:Envelope>'''
I have had success using this method with curl to change directory number partitions, this is an example I found online a while back.
BAT has an update speed dials based on template for phones, but not device profiles. I know you can use bulk import / export, but I have had bad experiences with that in the past and an looking to learn more about using the SOAP API.
It is ok if I need to first query the pkid for the device profiles, I can query them from the CLI in advance.
Solved! Go to Solution.
04-17-2015 06:33 AM
Here is an example of how you'd set speed dials on a device profile:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/10.5">
<soapenv:Header/>
<soapenv:Body>
<ns:updateDeviceProfile>
<name>Test Device Profile</name>
<speeddials>
<speeddial>
<dirn>7926</dirn>
<label>Nick Fury</label>
<index>1</index>
</speeddial>
<speeddial>
<dirn>7101</dirn>
<label>Nick Danger</label>
<index>2</index>
</speeddial>
</speeddials>
</ns:updateDeviceProfile>
</soapenv:Body>
</soapenv:Envelope>
04-16-2015 02:52 PM
I'm moving this post to the AXL forums so that those subscribed to that space can reply.
04-17-2015 06:33 AM
Here is an example of how you'd set speed dials on a device profile:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/10.5">
<soapenv:Header/>
<soapenv:Body>
<ns:updateDeviceProfile>
<name>Test Device Profile</name>
<speeddials>
<speeddial>
<dirn>7926</dirn>
<label>Nick Fury</label>
<index>1</index>
</speeddial>
<speeddial>
<dirn>7101</dirn>
<label>Nick Danger</label>
<index>2</index>
</speeddial>
</speeddials>
</ns:updateDeviceProfile>
</soapenv:Body>
</soapenv:Envelope>
04-17-2015 09:23 AM
Thank you so much, we have a working script.
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