News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
active-calls and voIP
Tags: rest api
Jun 3, 2020 at 7:33am   •   2 replies  •  0 likes
Sam Ginn

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?

2 Answers
answered on Oct 3, 2021 at 7:40pm  

Where were the calls originally placed?


 0
on Oct 4, 2021 at 7:17am   •  0 likes

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

answered on Jun 3, 2020 at 10:44am  

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



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us