3

I am trying to record the call legs for the RingOut API in Java.

From RingCentral API documentation, I understand that the URL should be "https://platform.devtest.ringcentral.com/restapi/v1.0/account/accountId/telephony/sessions/telephonySessionId/parties/partyId/recordings", however, I don't see the "telephony" object in Java SDK.

Can someone guide me with recording call legs with RingOut API in Java.

  • HI, You need to fetch telephony session id from create ring out call API (https://platform.devtest.ringcentral.com/restapi/v1.0/account/accountId/telephony/call-out). It will return the session object and it has id (sessionid). After that you can pass account id, partyid and telephonySessionId in createRecording API. – Khadhar Koneti Nov 06 '19 at 16:47

1 Answers1

0

You need to fetch telephony session id from create ring out call API https://developers.ringcentral.com/api-reference/Call-Control/createCallOutCallSession1. It will return the session object and it has id (sessionid). After that you can pass account id, partyid and telephonySessionId in createRecording API.

 {
   "session": {
      "creationTime": "2019-08-19T11:42:21Z",
      "id": "s-54a38392c79849dab4a25fe8040edd53",
      "origin": {
         "type": "Call"
      },
      "parties": [
         {
            "direction": "Outbound",
            "from": {
               "deviceId": "803469127021",
               "extensionId": "297277020",
               "name": "John Smith",
               "phoneNumber": "+18885287464"
            },
            "id": "p-54a38392c79849dab4a25fe8040edd53-1",
            "muted": false,
            "owner": {
               "accountId": "37439510",
               "extensionId": "297277020"
            },
            "standAlone": false,
            "status": {
               "code": "Setup"
            },
            "to": {
               "phoneNumber": "+79817891689"
            }
         }
      ]
   }
}
Vasileios Pallas
  • 4,801
  • 4
  • 33
  • 50
Khadhar Koneti
  • 189
  • 3
  • 14