Call Log Search

Talk with others about developing applications for Switchvox

Moderators: bmdhacks, dpodolsky, tristand, jwitt, joshuas

Call Log Search

Postby jscoulter » Wed Apr 11, 2012 6:38 pm

Hi All.
How do you know how many records are in the call log BEFORE you call "switchvox.callLogs.search" ?
This is really handy to know so you can say pass this value into the "items_per_page" parameter.
Anyone know a trick I can use? The problem i have is, I want to do a bulk download of the call data, but I dont know how many pages or items there are until I do a "switchvox.callLogs.search".

Any help appreciated.

Thanks, Jeremy
jscoulter
Newsterisk
 
Posts: 6
Joined: Fri Sep 14, 2007 3:55 am

Re: Call Log Search

Postby ricmarques » Thu Apr 12, 2012 9:31 am

I choose a date range and set items_per_page to 50,000, and deal with the volume in my script... that way I get everything all at once (I also limit the date range to a subset that shouldn't return more than 50,000 items).
Ric Marques
Team One Networking, Digium Select Reseller
Roseville, CA
http://www.teamonenetworking.com
ricmarques
Newsterisk
 
Posts: 49
Joined: Wed Jan 05, 2011 6:22 pm
Location: Roseville, CA

Re: Call Log Search

Postby jscoulter » Thu Apr 12, 2012 5:08 pm

Thats a great idea....I think I will do that :-)


Thanks, Jeremy
jscoulter
Newsterisk
 
Posts: 6
Joined: Fri Sep 14, 2007 3:55 am


Return to Switchvox Developers

Who is online

Users browsing this forum: No registered users and 3 guests