cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
59
Views
0
Helpful
0
Replies

adding an mohAudioFile - but there's no addMohAudioFile method

stephan.steiner
Spotlight
Spotlight

I need to work with mohAudioFiles as part of an extension of an application from my team. So I added support for the class in my own AXL lib, and when I went to check the required parameters for an add, found there's no addMohAudioSource method - just getMohAudioSource, listMohAudioSource, updateMohAudioSource and deleteMohAudioSource.

I figured.. maybe an oversight, and just tried to send the add anyway with SOAPAction:

SOAPAction: CUCM:DB ver=15.0 addMohAudioSource

Content: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/15.0"><soapenv:Header/><soapenv:Body><ns:addMohAudioSource sequence="0"><mohAudioSource><sourceId>4</sourceId><sourceFile>SampleAudioSource</sourceFile><periodicAnnouncementInterval>30</periodicAnnouncementInterval><localeAnnouncement>English, United States</localeAnnouncement><name>Test add</name></mohAudioSource></ns:addMohAudioSource></soapenv:Body></soapenv:Envelope>

and, unfortunately, it seems there's indeed no add operation as I get a HTTP 500 back with content

<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault xmlns:nsIDc08="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>nsIDc08:Client</faultcode><faultstring>The endpoint reference (EPR) for the Operation not found is https://srvcucm14.nxodev.intra/axl/services/AXLAPIService and the WSA Action = CUCM:DB ver=15.0 addMohAudioSource. If this EPR was previously reachable, please contact the server administrator.</faultstring><detail/></soapenv:Fault></soapenv:Body></soapenv:Envelope>

So.. how can I add an mohAudioSource without manually going through ccmadmin?

This is on CUCM 15.0.1.12900-234 by the way

0 Replies 0