vonage call activity

I recently downloaded all of my call history from Vonage, which I’ve used for years. It wasn’t entirely obvious, but it turned out to be pretty straightforward. Check out the examples, then read on to see what I did.

Downloading

First, the call activity page only shows a week at a time, and the advanced search is limited to 20 calls per page. However, you can easily edit the internal call activity page URL to span any date range you want.

Here are example URLs for a single week’s call activity. The first is for incoming calls, the second is for outgoing.

https://secure.vonage.com/webaccount/activity/activityDetail.htm?accountNumber=XXX&dateEnd=XXX&dateStart=XXX&bcType=I&style=ActivityReceived&type=html&timeZone=5

https://secure.vonage.com/webaccount/activity/activityDetail.htm?accountNumber=XXX&dateEnd=XXX&dateStart=XXX&bcType=O&style=ActivityPlaced&type=html&timeZone=5

Note the XXXes for account number and start and end date. You can find your account number in the upper right corner of any Vonage page once you’ve logged in. The start and end date are UNIX timestamps in milliseconds.

Here are modified links with start and end dates set to include everything from 2001 to 2038. Fill in the XXXes with your account number.

https://secure.vonage.com/webaccount/activity/activityDetail.htm?accountNumber=XXX&dateEnd=2145945600000&dateStart=978336000000&bcType=I&style=ActivityReceived&type=html&timeZone=5

https://secure.vonage.com/webaccount/activity/activityDetail.htm?accountNumber=XXX&dateEnd=2145945600000&dateStart=978336000000&bcType=O&style=ActivityPlaced&type=html&timeZone=5

Formatting

These URLs only return HTML fragments, not full pages, so they need extra formatting. Here’s what I did.

First, I added this inline style at the beginning of both downloaded HTML files. It’s extracted from Vonage’s old and new styles_1_11_0.css stylesheets.

<style type="text/css">
.iconButton {float:left;width:20px;height:18px;padding:1px 0 0 0;}
.tableheader9{background:#FFFFFF; color:#000000; font-weight:bold;}
.tablebody1{background:#eeeeee; color:#000000; font-weight:normal;}
.phoneNumber {float:left;padding:1px 0 0 0;}
</style>

Next, I ran the incoming calls file through this sed pipeline to extract the caller IDs into their own table column…

sed -e 's/ width=".*"//' \
  -e 's/ *<a href="javascript:void(0)" onclick=.*<br><br><b>\\(.*\\)<\/b>\',CSSCLASS.*<\/a>/\1\n<\/td>\n<td nowrap>/' \
  -e 's/ *<div class="iconButton">//' \
  -e 's/ *<\/div>//'

…and added the Caller ID <td> element below to the header row:

<table id="arTable">
<tr>
  <td class="tableheader9" nowrap>Date</td>
  <td class="tableheader9" nowrap>Time</td>
  <td class="tableheader9" nowrap>Caller ID</td>
  <td class="tableheader9" nowrap>From</td>
  ...

That’s it! Here are examples of the resulting call log files: incoming and outgoing.

2 thoughts on “vonage call activity

  1. I followed your example and entered the following URL, where XXX is my account number:
    https://secure.vonage.com/webaccount/activity/activityDetail.htm?accountNumber=XXX&dateEnd=1296500400&dateStart=1217617200&bcType=I&style=ActivityReceived&type=html&timeZone=5

    Questions:

    1. I get the following return from Vonage:
      We apologize for any inconvenience…
      We are currently upgrading our system to provide you better service.
      Did I get anything wrong?

    2. I am in the US EST time zone. Is the timeZone=5 adequate here, knowing that my unix timestamp=GMT-5?

    Thank you for your kind assistance.

Leave a Reply

Your email address will not be published. Required fields are marked *