cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2355
Views
1
Helpful
5
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Shahar Mosek on 25-10-2011 10:40:01 AM
I have a new system installed. It has a CUCM server and a MediaSense server.
I'm trying to use the MediaSense API, and get stuck with the signIn method (the getAPIVersion method works).
I created a user and group on CUCM with the AXL role.
When I post to the signIn URL with the following parameters:
{
    "requestParameters": {
        "username": "AXLUser",
        "password": "xxxxxxxx"
    }
}
I get back the following:
{"responseMessage":"Failure: An unknown server error occurred. Please try again later.","responseCode":5000}
 
In the Real Time Monitoring Tool, I see in the ora node the following:
0000000834: 192.168.5.118: Oct 25 2011 16:32:08.249 +0200: %CCBU____________API-6-CAPTURE_SERVICE_ADAPTER_REQUEST: %[request_sent_to_psbu_recorder=http://192.168.5.118:8081/PurgedRecordings]: Request sent to PSBU Recorder 
0000000835: 192.168.5.118: Oct 25 2011 16:32:08.305 +0200: %CCBU____________API-6-CAPTURE_SERVICE_ADAPTER_RESPONSE: %[response_received_from_psbu_recorder=<PurgedRecordings>
</PurgedRecordings>
]: Response received from PSBU Recorder 
0000000836: 192.168.5.118: Oct 25 2011 16:32:12.706 +0200: %CCBU____________API-6-SESSION_VERIFIER_TASK_INFO: %: Session verification task information
0000000837: 192.168.5.118: Oct 25 2011 16:32:12.727 +0200: %CCBU____________API-6-SESSION_VERIFIER_TASK_INFO: %: Session verification task information
0000000838: 192.168.5.118: Oct 25 2011 16:32:14.716 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer makeRequest first level: entered function.
0000000839: 192.168.5.118: Oct 25 2011 16:32:14.717 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer makeRequest second level: entered function.
0000000840: 192.168.5.118: Oct 25 2011 16:32:14.717 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer getNextIP: useServer= 0.
0000000841: 192.168.5.118: Oct 25 2011 16:32:14.717 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} RequestState getServerToBeUsed: serverToBeUsed= 1.
0000000842: 192.168.5.118: Oct 25 2011 16:32:14.717 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} RequestState setServerToBeUsed: serverToBeUsed= 0.
0000000843: 192.168.5.118: Oct 25 2011 16:32:14.717 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} RequestState getServerToBeUsed: serverToBeUsed= 0.
0000000844: 192.168.5.118: Oct 25 2011 16:32:14.717 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} RequestState incrementServerToBeUsed: serverToBeUsed= 1.
0000000845: 192.168.5.118: Oct 25 2011 16:32:14.718 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer getIP: server to be used is 192.168.5.118
0000000846: 192.168.5.118: Oct 25 2011 16:32:14.718 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer hasMoreServers: state counter = 0, serversList size = 1.
0000000847: 192.168.5.118: Oct 25 2011 16:32:14.718 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer makeRequest second level: making a(nother) request
0000000848: 192.168.5.118: Oct 25 2011 16:32:14.718 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer makeRequest third level: entered function.
0000000849: 192.168.5.118: Oct 25 2011 16:32:14.718 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer makeRequest: URL Path being sent to the HttpClient is: http://192.168.5.118:8080/oraconfiguration/authenticationService/authentication/authenticateAPIUser
0000000850: 192.168.5.118: Oct 25 2011 16:32:16.105 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer makeRequest third level: response received.
0000000851: 192.168.5.118: Oct 25 2011 16:32:16.106 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer makeRequest second level: actual makeRequest passed.
0000000852: 192.168.5.118: Oct 25 2011 16:32:16.106 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7}   LoadBalancer processResponse: entered function
0000000853: 192.168.5.118: Oct 25 2011 16:32:16.106 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer processResponse: httpResponse is not null.
0000000854: 192.168.5.118: Oct 25 2011 16:32:16.106 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer processResponse: httpStatusCode is valid.
0000000855: 192.168.5.118: Oct 25 2011 16:32:16.106 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer processSuccessfulResponse: entered function.
0000000856: 192.168.5.118: Oct 25 2011 16:32:16.106 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer getNextIP: useServer= 0.
0000000857: 192.168.5.118: Oct 25 2011 16:32:16.106 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} RequestState getServerToBeUsed: serverToBeUsed= 1.
0000000858: 192.168.5.118: Oct 25 2011 16:32:16.107 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} RequestState setServerToBeUsed: serverToBeUsed= 0.
0000000859: 192.168.5.118: Oct 25 2011 16:32:16.107 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} RequestState getServerToBeUsed: serverToBeUsed= 0.
0000000860: 192.168.5.118: Oct 25 2011 16:32:16.107 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} RequestState incrementServerToBeUsed: serverToBeUsed= 1.
0000000861: 192.168.5.118: Oct 25 2011 16:32:16.107 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer getIP: server to be used is 192.168.5.118
0000000862: 192.168.5.118: Oct 25 2011 16:32:16.107 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer processSuccessfulResponse: resultcode is 5; request needs redirection; now trying 192.168.5.118
0000000863: 192.168.5.118: Oct 25 2011 16:32:16.107 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer processSuccessfulResponse: exiting function.
0000000864: 192.168.5.118: Oct 25 2011 16:32:16.107 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer processResponse: exiting function.
0000000865: 192.168.5.118: Oct 25 2011 16:32:16.108 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer hasMoreServers: state counter = 1, serversList size = 1.
0000000866: 192.168.5.118: Oct 25 2011 16:32:16.108 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer makeRequest: state is not null
0000000867: 192.168.5.118: Oct 25 2011 16:32:16.108 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer makeRequest second level: state is not done.
0000000868: 192.168.5.118: Oct 25 2011 16:32:16.108 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer hasMoreServers: state counter = 1, serversList size = 1.
0000000869: 192.168.5.118: Oct 25 2011 16:32:16.108 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer makeRequest second level: has no more servers
0000000870: 192.168.5.118: Oct 25 2011 16:32:16.108 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer makeRequest: state ip is = 192.168.5.118
0000000871: 192.168.5.118: Oct 25 2011 16:32:16.108 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer makeRequest: state httpresponse is = not null
0000000872: 192.168.5.118: Oct 25 2011 16:32:16.109 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer makeRequest second level: exited function.
0000000873: 192.168.5.118: Oct 25 2011 16:32:16.109 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} LoadBalancer makeRequest first level: OraHttpResponse is not null. returning from function with responseBody.
0000000874: 192.168.5.118: Oct 25 2011 16:32:16.109 +0200: %CCBU____________API-7-TRACE:  {Thrd=http-8443-7} Result from the command - {"responseMessage":"Failure: An unknown server error occurred. Please try again later.","responseCode":5000}
0000000875: 192.168.5.118: Oct 25 2011 16:32:16.109 +0200: %CCBU____________API-6-AUTH_SERVICE_IMPL_SIGN_IN_RESULT: %[auth_service_impl_sign_in_result={"responseMessage":"Failure: An unknown server error occurred. Please try again later.","responseCode":5000}]: Authentication service impl signIn result

Subject: RE: Unspecified error in signIn
Replied by: David Lender on 08-11-2011 08:59:50 AM
- Confirm if you have added this user as a MediaSense user in MediaSense¿s API User configuration page
- If on UCM, confirm this is an End User and NOT an application user
- Collect logs from RTMT for the ¿Cisco MediaSense Configuration Service¿
- In MediaSense¿s serviceability page, confirm if all services are up & running (¿in service¿)
Comments

While making the same Sign-In API Call, I get the following error each time:

Response as string: {"responseMessage":"Failure: Invalid session. The session may have expired. Sign in again or enter a valid JSESSIONID.","responseCode":4021}

I have asked this question in this community too: Un-able to Sign-In using Media Sense SIgn-In API Call

Can anyone guide me regarding this error ? I may share my code too.

Thanks in Advance

dlender
Level 6
Level 6

I suggest you clear your browser cache and attempt the signin again. Are you able to signin using Poster?

In Mozzila Adds On, I am un-able to make https calls that each time returns with 'No response received .... '

@delender


I want to create a simple call recording App that I want to record call made on specific agent extension. I am using this API call: http://192.168.200.204:8440/ora/controlService/control/startRecording

with body:

{

"requestParameters": {

"deviceRef": "42021",

"mediaStreams": [

{

"mediaType": "AUDIO"

}

]

}

}

Now, I want to record calls received on extension '42021'. But I am un-able to find out where it stores the recoreded file ? Or what else I need to do If I am missing anything ? or any sample app or tutorial link will also be appreciated.

Thanks,

I am new in Mediasense, I want to create a simple call recording App that I

want to record call made on specific agent extension. I am using this API

call: http://192.168.200.204:8440/ora/controlService/control/startRecording

with body:

{

"requestParameters": {

"deviceRef": "42021",

"mediaStreams": [

{

"mediaType": "AUDIO"

}

]

}

}

Now, I want to record calls received on extension '42021'. But I am un-able

to find out where it stores the recoreded file ? Or what else I need to do

If I am missing anything ? or any sample app or tutorial link will also be

appreciated.

Thanks,

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links