cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
309
Views
0
Helpful
1
Replies
Highlighted
Rising star

updateRemoteDestination - time of day access

Hi

First off... is there a way to extract the time of day access data and assign values from one remote destination to another (not linking.. just setting the same values)?

Then, I found another issue.. I'm doing a getRemoteDestination, change some values, and submit the update. And then I'm being told

"Item not valid: The specified TOD Access was not found"

Then I downloaded the AXL logs, saw the SQL query it tries to run (select * from todaccess where pkid = 'mypkid here'). Running that same query yields no results. Checking the entire todaccess table shows that the value I'm looking for is there.. but the pkid is all lower case, whereas in the getRemoteDestination, the uuid is all upper case. This being linux and thus case sensitive, we do have a problem.

here's my get:

<?xml version='1.0' encoding='UTF-8'?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

  <soapenv:Body>

  <ns:getRemoteDestinationResponse xmlns:ns="http://www.cisco.com/AXL/API/10.5">

  <return>

  <remoteDestination uuid="{39A89C8E-6E72-7A49-2C12-6D6CD97B10D3}">

  <name>rd_test</name>

  <destination>00767777777</destination>

  <answerTooSoonTimer>5000</answerTooSoonTimer>

  <answerTooLateTimer>25000</answerTooLateTimer>

  <delayBeforeRingingCell>4000</delayBeforeRingingCell>

  <ownerUserId uuid="{9D11B2D6-31F4-13A3-16C2-2016E2CFB874}">testuser</ownerUserId>

  <remoteDestinationProfileName uuid="{F657BBC9-D63D-F182-5DA2-383318F34109}">RDP_testing</remoteDestinationProfileName>

  <ctiRemoteDeviceName/>

  <dualModeDeviceName/>

  <isMobilePhone>true</isMobilePhone>

  <enableMobileConnect>true</enableMobileConnect>

  <lineAssociations>

  <lineAssociation>

  <uuid>{668729C7-E6B1-CFB8-6400-25D1E892E8A7}</uuid>

  <pattern>7306</pattern>

  <routePartitionName uuid="{82056F6A-7CF2-48DA-BDEB-9E17B12DE19D}">p_phones</routePartitionName>

  <index>1</index>

  </lineAssociation>

  </lineAssociations>

  <timeZone>Etc/GMT</timeZone>

  <todAccessName uuid="{05637190-8BAD-991F-5E53-CCB492069B5D}">TOD-RD-39a89c8e-6e72-7a49-2c12-6d6cd97b10d3</todAccessName>

  <mobileSmartClientName/>

  <mobilityProfileName/>

  <singleNumberReachVoicemail>Use System Default</singleNumberReachVoicemail>

  <dialViaOfficeReverseVoicemail>Use System Default</dialViaOfficeReverseVoicemail>

  </remoteDestination>

  </return>

  </ns:getRemoteDestinationResponse>

  </soapenv:Body>

</soapenv:Envelope>

And update

<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:updateRemoteDestination sequence="1">

  <destination>00767777777</destination>

  <newName>rd_test_updated</newName>

  <newDestination>00767777778</newDestination>

  <answerTooSoonTimer>5000</answerTooSoonTimer>

  <answerTooLateTimer>25000</answerTooLateTimer>

  <delayBeforeRingingCell>10</delayBeforeRingingCell>

  <isMobilePhone>false</isMobilePhone>

  <enableMobileConnect>true</enableMobileConnect>

  <lineAssociations>

  <lineAssociation>

  <uuid>{668729C7-E6B1-CFB8-6400-25D1E892E8A7}</uuid>

  <index>1</index>

  </lineAssociation>

  </lineAssociations>

  <timeZone>Etc/GMT</timeZone>

  <todAccessName uuid="{05637190-8BAD-991F-5E53-CCB492069B5D}">TOD-RD-39a89c8e-6e72-7a49-2c12-6d6cd97b10d3</todAccessName>

  <ownerUserId uuid="{9D11B2D6-31F4-13A3-16C2-2016E2CFB874}">testuser</ownerUserId>

  <remoteDestinationProfileName uuid="{F657BBC9-D63D-F182-5DA2-383318F34109}">RDP_testing</remoteDestinationProfileName>

  <singleNumberReachVoicemail>Use System Default</singleNumberReachVoicemail>

  <dialViaOfficeReverseVoicemail>Use System Default</dialViaOfficeReverseVoicemail>

  </ns:updateRemoteDestination>

  </soapenv:Body>

</soapenv:Envelope>

Now, using upper case vs lower case isn't the only problem. The query that CUCM runs is

select * from todaccess  where pkid='{05637190-8BAD-991F-5E53-CCB492069B5D}'

That is wrong on two levels:

1) it must convert the upper case to lower case

2) it must strip the curly brackets.

1 REPLY 1
Highlighted
Cisco Employee

Let me test this and then see If I can submit this up as a bug to the engineers.

Thank you for bringing this to our attention.