Skip to main content

We are using webhook subscription event to fetch call details after a call is being ended in ring central.

In the payload of webhook, we are not getting callId
So how can we get recordings of a particular call.

{
  uuid: '6475624891090878721',
  event: '/restapi/v1.0/account/721083005/extension/721083005/presence?detailedTelephonyState=true&sipData=true',
  timestamp: '2022-05-30T13:41:58.698Z',
  subscriptionId: '51bf9d40-7bca-445d-853c-b204a8f0da26',
  ownerId: '721083005',
  body: {
    extensionId: 721083005,
    telephonyStatus: 'Ringing',
    activeCalls: c iObject] ],
    sequence: 43,
    presenceStatus: 'Available',
    userStatus: 'Available',
    dndStatus: 'TakeAllCalls',
    allowSeeMyPresence: true,
    ringOnMonitoredCall: false,
    pickUpCallsOnHold: false,
    totalActiveCalls: 1
  }
}

You should subscribe for the telephony session event notification instead of the presence?detailedTelephonyState. Read this blog for detailed telephony session event explanation.

This blog and the tutorial also shows you how to detect and download call recordings.

https://medium.com/ringcentral-developers/how-to-start-stop-and-resume-recording-a-call-programmatically-459b02e6976d

https://medium.com/ringcentral-developers/how-to-get-a-new-call-recording-notification-ee9f2a6e41a0



Reply