question

nicholas-head avatar image
nicholas-head asked ·

Voicemail entries not included in call logs API request?

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.
topic-default
1 |1000 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.

nicholas-head avatar image
nicholas-head answered ·
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?
Share
1 |1000 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.

benjamin-dean avatar image
benjamin-dean answered ·
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&nbsp;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>
2 comments Share
1 |1000 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.

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?
1 Like 1 · ·
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.
0 Likes 0 · ·
robert-lam avatar image
robert-lam answered ·
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.
5 comments Share
1 |1000 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.

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
0 Likes 0 · ·
Taking a look. Many thanks!
1 Like 1 · ·
No problem. Let us know how it goes.
0 Likes 0 · ·
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. 
0 Likes 0 · ·
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
0 Likes 0 · ·

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.