question

Sam Ginn avatar image
Sam Ginn asked Phong Vu commented

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?

rest api
1 |3000

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

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 |3000

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

Matt Gerchow avatar image
Matt Gerchow answered Phong Vu commented

Where were the calls originally placed?

1 comment
1 |3000

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

Phong Vu avatar image Phong Vu ♦♦ commented ·

The call was from a PSTN number (mobile number) to a RingCentral number. You can see the legType is 'PstnToSip'

0 Likes 0 ·

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