02-22-2021 08:33 AM
I am getting error from addRemoteDestination request "Remote Destination must reference a Remote Destionation Profile, a Dual Mode device or a MobileSmartClient.
Anyone have any idea?
<axl:addRemoteDestination xmlns:axl="http://www.cisco.com/AXL/API/12.0">
<remoteDestination>
<name>1113</name>
<destination>1113</destination>
<answerTooSoonTimer>1500</answerTooSoonTimer>
<answerTooLateTimer>19000</answerTooLateTimer>
<delayBeforeRingingCell>4000</delayBeforeRingingCell>
<ownerUserId>testuser5</ownerUserId>
<remoteDestinationProfileName>TCT11113</remoteDestinationProfileName>
<isMobilePhone>false</isMobilePhone>
<enableMobileConnect>true</enableMobileConnect>
<timeZone>Africa/Banjul</timeZone>
<singleNumberReachVoicemail>Use System Default</singleNumberReachVoicemail>
</remoteDestination>
</axl:addRemoteDestination>
<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>Remote Destination must reference a Remote Destionation Profile, a Dual Mode device or a MobileSmartClient</faultstring>
<detail>
<axlError>
<axlcode>10131</axlcode>
<axlmessage>Remote Destination must reference a Remote Destionation Profile, a Dual Mode device or a MobileSmartClient</axlmessage>
<request>addRemoteDestination</request></axlError></detail></soapenv:Fault></soapenv:Body>
</soapenv:Envelope>
03-11-2021 01:45 PM
You're right, and that process seems correct to me. So in this case, I'd add a remote destination this way (TCT7007 is the iPhone):
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/12.5"> <soapenv:Header/> <soapenv:Body> <ns:addRemoteDestination> <remoteDestination> <name>TCT7007</name> <destination>7007009</destination> <answerTooSoonTimer>1500</answerTooSoonTimer> <answerTooLateTimer>19000</answerTooLateTimer> <delayBeforeRingingCell>4000</delayBeforeRingingCell> <ownerUserId>nicholas</ownerUserId> <enableUnifiedMobility>true</enableUnifiedMobility> <dualModeDeviceName>TCT7007</dualModeDeviceName> <isMobilePhone>true</isMobilePhone> <enableMobileConnect>true</enableMobileConnect> </remoteDestination> </ns:addRemoteDestination> </soapenv:Body> </soapenv:Envelope>
This works fine for me. Reply:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns:addRemoteDestinationResponse xmlns:ns="http://www.cisco.com/AXL/API/12.5"> <return>{9CC6619D-0539-D847-58E9-BBC0DBDE7BB0}</return> </ns:addRemoteDestinationResponse> </soapenv:Body> </soapenv:Envelope>
04-06-2021 06:34 AM
Hi Nick,
I think I am going to open a new case. What do you think?
Thanks!
Jung
04-06-2021 08:04 AM
I thought we solved it here. What problem are you still having?
Thanks,
Nick
04-06-2021 09:04 AM
Hi Nick,
Still can't get the request to work. Trying to add the RD to TCT phone.
TCT phone has to be specified in <remoteDestinationProfileName> tag for addRemoteDestination request not <dualModePhoneName> tag. There are two remote destinations. One is Mobility Identity which uses <dualModePhoneName> and the other is Remote Destination which uses <remoteDestinationProfileName> for TCT phone.
Thanks,
Jung
04-06-2021 09:36 AM
How is your request different than the one I posted that works?
04-06-2021 10:02 AM
Hi Nick,
Different tags are in bold.
Jung
Here is your request:
<ns:addRemoteDestination>
<remoteDestination>
<name>TCT7007</name>
<destination>7007009</destination>
<answerTooSoonTimer>1500</answerTooSoonTimer>
<answerTooLateTimer>19000</answerTooLateTimer>
<delayBeforeRingingCell>4000</delayBeforeRingingCell>
<ownerUserId>nicholas</ownerUserId>
<enableUnifiedMobility>true</enableUnifiedMobility>
<dualModeDeviceName>TCT7007</dualModeDeviceName>
<isMobilePhone>true</isMobilePhone>
<enableMobileConnect>true</enableMobileConnect>
</remoteDestination>
</ns:addRemoteDestination>
Here is mine:
<axl:addRemoteDestination xmlns:axl="http://www.cisco.com/AXL/API/12.0">
<remoteDestination>
<name>1113</name>
<destination>1113</destination>
<answerTooSoonTimer>1500</answerTooSoonTimer>
<answerTooLateTimer>19000</answerTooLateTimer>
<delayBeforeRingingCell>4000</delayBeforeRingingCell>
<ownerUserId>testuser5</ownerUserId>
<remoteDestinationProfileName>TCT11113</remoteDestinationProfileName>
<isMobilePhone>false</isMobilePhone>
<enableMobileConnect>true</enableMobileConnect>
<timeZone>Africa/Banjul</timeZone>
<singleNumberReachVoicemail>Use System Default</singleNumberReachVoicemail>
</remoteDestination>
</axl:addRemoteDestination>
04-06-2021 11:04 AM
Try setting <name>1113</name> to <name>TCT11113</name>
04-06-2021 11:29 AM
No luck,
Still getting the same error response.
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>Remote Destination must reference a Remote Destionation Profile, a Dual Mode device or a MobileSmartClient</faultstring><detail><axlError><axlcode>10131</axlcode><axlmessage>Remote Destination must reference a Remote Destionation Profile, a Dual Mode device or a MobileSmartClient</axlmessage><request>addRemoteDestination</request></axlError></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
04-06-2021 12:19 PM
I followed the exact steps you outlined, after which my SOAP request worked fine, as you can see from my post with the request and response.
I repeated the process just to make sure it really works. Here are the steps I followed (copied from your post on this):
Here is the steps to add the RD to dual mode iphone from CUCM admin web gui.
- Device >> Phone
- Select New to add the new phone
- Select Phone Type to Cisco Dual Mode for iPhone
- Enter Device Name as TCT9007 and enter all required fields
- Make sure assigned the Mobility User ID to the phone and save
Then I did this in AXL:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/12.5"> <soapenv:Header/> <soapenv:Body> <ns:addRemoteDestination> <remoteDestination> <name>TCT9007</name> <destination>7009009</destination> <answerTooSoonTimer>1500</answerTooSoonTimer> <answerTooLateTimer>19000</answerTooLateTimer> <delayBeforeRingingCell>4000</delayBeforeRingingCell> <ownerUserId>nicholas</ownerUserId> <enableUnifiedMobility>true</enableUnifiedMobility> <dualModeDeviceName>TCT9007</dualModeDeviceName> <isMobilePhone>true</isMobilePhone> <enableMobileConnect>true</enableMobileConnect> </remoteDestination> </ns:addRemoteDestination> </soapenv:Body> </soapenv:Envelope>
The response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns:addRemoteDestinationResponse xmlns:ns="http://www.cisco.com/AXL/API/12.5"> <return>{74A6FB5C-8792-A87A-19E9-0B80A11C8C9A}</return> </ns:addRemoteDestinationResponse> </soapenv:Body> </soapenv:Envelope>
04-06-2021 01:47 PM
Hi Nick,
Did you check cucm admin page for the phone and where the RD was added after your request was done? Mobility Identity or Remote Destination of the phone.
Please let me know.
Thanks,
Jung
04-06-2021 02:06 PM
Here's what it looks like (I didn't create a mobility identity):
04-06-2021 02:09 PM
OK when I do it it goes to MI. I will try again....
04-06-2021 02:20 PM
Hi Nick,
OMG it worked! Don't know what I did wrong before.
Sorry to waste your time....
Thanks so much!!
Jung
04-06-2021 02:24 PM
It's not a waste, it's my job! My pleasure, glad you have it working now.
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