question

API Enthu avatar image
API Enthu asked Phong Vu answered

Is there a way to fetch a specific call data using webhook payload prams ?

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: [ [Object] ],
    sequence: 43,
    presenceStatus: 'Available',
    userStatus: 'Available',
    dndStatus: 'TakeAllCalls',
    allowSeeMyPresence: true,
    ringOnMonitoredCall: false,
    pickUpCallsOnHold: false,
    totalActiveCalls: 1
  }
}
webhooks
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Phong Vu avatar image
Phong Vu answered

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


1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys