Voicemail entries not included in call logs API request?

  • 1
  • Question
  • Updated 1 year ago
  • Answered
I'm using the 
/restapi/v1.0/account/~/extension/{extensionId}/call-log URL to download call logs, and I'm passing view=Detailed into the querystring, to make sure I get detailed call log entries.

However, I do not seem to be able to find "Voicemail" logs in the results. I see them in the "Call Log" page of RingCentral, but not the API call-log results. Anyone else experiencing this? All of the other entry types seem to be coming down okay. I also checked the "leg" data of the results in case it was buried in there, but still didn't see it.
Photo of Nicholas Head

Nicholas Head

  • 222 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Nicholas Head

Nicholas Head

  • 222 Points 100 badge 2x thumb
Also, the "Call Log" page of RingCentral shows when people push buttons to get into certain queues/etc -- but I don't see this data in the call-log API as far as I can tell. Is there something I'm missing?
Photo of Benjamin Dean

Benjamin Dean

  • 8,602 Points 5k badge 2x thumb
Call Log doesn't contain the data for voice mail...the Message (aka: Message Store or Messages) API resource does (https://developers.ringcentral.com/api-docs/latest/index.html#!#RefGetMessageList).

You can make a GET request to the Message API resource after adding the appropriate API permission (ReadMessages), and then you can add the filter (query param): messageType=Voicemail + direction=Inbound (if you only want voice mail left for an employee or a call group).

GET /restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store?messageType=VoiceMail&direction=Inbound HTTP/1.1
Host: platform.devtest.ringcentral.com
Content-Type: application/json
Accept: application/json
Authorization: Bearer REPLACE_WITH_YOUR_RINGCENTRAL_USER_OR_ADMIN_ACCESS_TOKEN
Cache-Control: no-cache<br>
(Edited)
Photo of Nicholas Head

Nicholas Head

  • 222 Points 100 badge 2x thumb
Thanks for the quick reply! Do you know anything about getting the "queue"/digits pressed data during a call? Or is that not available via API yet?
Photo of Benjamin Dean

Benjamin Dean

  • 8,602 Points 5k badge 2x thumb
You mean the DTMF (https://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling)?

And if yes, when you prefixed that with "queue" I am guessing you mean what dial-tones the callee has executed while stepping through an IVR when they dial into a call queue?

Unfortunately the answer is NO, not via the API at this time.
Photo of Robert Lam

Robert Lam

  • 130 Points 100 badge 2x thumb
Hi I just want to write a quick python script to download the voicemail to my drive on a regular basis. If you have already done something similar perhaps I can buy the code off you ? I am stuck at sandbox stage, no response trying to get the token.
Photo of Benjamin Dean

Benjamin Dean

  • 8,582 Points 5k badge 2x thumb
Have you tried using the Python SDK to simplify the code you need to write? https://github.com/ringcentral/ringcentral-python

It contains a demo.py file which shows example setup: https://github.com/ringcentral/ringcentral-python/blob/master/demo.py
Photo of Robert Lam

Robert Lam

  • 130 Points 100 badge 2x thumb
Taking a look. Many thanks!
Photo of Benjamin Dean

Benjamin Dean

  • 8,582 Points 5k badge 2x thumb
No problem. Let us know how it goes.
Photo of Robert Lam

Robert Lam

  • 130 Points 100 badge 2x thumb
I tried to use demo.py but it uses many libraries. pubnub etc. So I did tried to download them. But some libraries does not work with python 2.7 so I install Python 3.5 but then I find other stuffs only work with 2.7. So at the end I am modifying another piece of python script I had. I managed to get the voice mail id etc. I am working on how to actually download the voice mail. 
Photo of John Wang

John Wang, Official Rep

  • 4,798 Points 4k badge 2x thumb
Robert, can you post some info regarding dependency issues with 2.7 and 3.5 on the SDK's GitHub page so we an have the team look into it?

https://github.com/ringcentral/ringcentral-python/issues
(Edited)