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

unable to enable pause , resume call recording in CallRecording Gadget?

naveenphp
Level 1
Level 1

Hi,
How to enable pause / resume call recording in CallRecordingGadget?

getting error: "not allowed access...."

Failed to load https://mediasense.myexample.com:987/ora/authenticationService/authentication/signIn: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://uccx.myexample.com:987/' is therefore not allowed access.
pauseRecording @ VM41815 concat:21418
onclick @ VM42266 ifr:802
20:13:15.479 VM41815 concat:21418 Uncaught DOMException: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://mediasense.myexample.com:987/ora/authenticationService/authentication/signIn'.
at Object.pauseRecording (https://uccx.myexample.com:987//gadgets/concat?container=default&gadget=http%2FCallRecording.js:21418:17)
at HTMLButtonElement.onclick (https://uccx.myexample.com:987//gadgets/ifr?container=default&mid=1&nocache=0&country=cccc)

when making a call to mediaSense api : .../ora/controlService/control/pauseRecording

getSessionId request failed because of cross origin request

getting sessionId initially but not able to set it in
https://mediasense.myexample.com:987/ora/queryService/query/getSessionsByDeviceRef?value=789

actual Error:
responseCode:4021
responseMessage:"Failure: Invalid session. The session may have expired. Sign in again or enter a valid JSESSIONID.

any help?

 

1 Reply 1

dekwan
Cisco Employee
Cisco Employee
Hi,

Where are you getting the sessionId from? Before using the pauseRecording API, you have to use the getAllActiveSessions to get the sessionId.

You mention the cross origin request failing. I don't believe that mediasense supports CORS.

Thanx,
Denise