question

Sam Ginn avatar image
Sam Ginn asked ·

active-calls and voIP

The active-calls API has a type field and the only options are Voice and Fax. I am missing calls that are voIP. Is there a way to retrieve these calls with this API?

active-calls
1 |1500 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
Phong Vu avatar image
Phong Vu answered ·

Voice is all types of voice call and include VoIP calls. Here is a sample of an active call object of VoIP call

{ uri:
   'https://platform.ringcentral.com/restapi/v1.0/account/80964xxx/extension/59586xxx/call-log/IqYwk92ibFUjzUQ?view=Detailed',
  id: 'IqYwk92ibFUjzUQ',
  sessionId: '41888286xxx',
  startTime: '2020-06-03T17:38:00.000Z',
  type: 'Voice',
  direction: 'Inbound',
  action: 'Phone Call',
  result: 'In Progress',
  to:
   { name: 'Agent 120',
     phoneNumber: '+1209248xxxx',
     location: 'Modesto, CA' },
  from:
   { name: 'Me myself',
     phoneNumber: '+1650513xxx,
     location: 'San Mateo, CA' },
  extension:
   { uri:
      'https://platform.ringcentral.com/restapi/v1.0/account/80964xxxx/extension/59586xxxx',
     id: 59586xxxx },
  telephonySessionId: 's-87d5abccda974e6c9e5923...',
  legs:
   [ { startTime: '2020-06-03T17:38:00.000Z',
       type: 'Voice',
       direction: 'Inbound',
       action: 'Phone Call',
       result: 'In Progress',
       to: [Object],
       from: [Object],
       extension: [Object],
       telephonySessionId: 's-87d5abccda974e6c9e5923...',
       legType: 'Accept',
       master: true },
     { startTime: '2020-06-03T17:38:04.000Z',
       type: 'Voice',
       direction: 'Outbound',
       action: 'VoIP Call',
       result: 'In Progress',
       to: [Object],
       from: [Object],
       extension: [Object],
       reason: 'Accepted',
       reasonDescription: 'The call connected to and was accepted by this number.',
       telephonySessionId: 's-87d5abccda974e6c9e5923...',
       legType: 'PstnToSip',
       master: false } ] }


1 |1500 characters needed characters left characters exceeded

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 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