API questions

Talk with others about developing applications for Switchvox

Moderators: bmdhacks, dpodolsky, tristand, jwitt, joshuas

API questions

Postby npi » Thu Apr 26, 2012 11:49 am

1.If I make a call to the method "switchvox.users.callQueues.getTodaysStatus" and there are zero completed calls within the requested time the method returns a divide by zero error. It would appear the code with the method is dividing by zero when calculating the averages.

2.The method "switchvox.users.currentCalls.getList" run fine if there are no current calls. But if there is an existing call it returns the following error - "Problems parsing the xml template (switchvox_users_currentCalls_getList)." If the call ends the code runs fine again.

3.The last issue is that I cannot see a way to get some needed data - specifically the wait time and entry position for an active call that entered through a queue. If someone knows how to get this I would be very appreciative.

Kind Regards,
npi
Newsterisk
 
Posts: 3
Joined: Fri Apr 20, 2012 9:56 am

Re: API questions

Postby sterlingmarking » Mon Apr 30, 2012 7:23 am

what version number of switchvox is this running on?
Jesse Carlton
Systems Administrator
Sterling Marking Products Inc.
sterlingmarking
Oldsterisk
 
Posts: 99
Joined: Mon Mar 22, 2010 9:42 am
Location: London, Ontario

Re: API questions

Postby npi » Mon Apr 30, 2012 2:31 pm

5.5.2
npi
Newsterisk
 
Posts: 3
Joined: Fri Apr 20, 2012 9:56 am

Re: API questions

Postby sterlingmarking » Tue May 01, 2012 11:00 am

install 5.5.3, there were some changes in the log directly related to queue stats.
Jesse Carlton
Systems Administrator
Sterling Marking Products Inc.
sterlingmarking
Oldsterisk
 
Posts: 99
Joined: Mon Mar 22, 2010 9:42 am
Location: London, Ontario

Re: API questions

Postby lorsungcu » Tue May 01, 2012 11:11 am

Again, this is why we need a bug/issue tracker. So many people have similar issues, and often they are not aware that others are experiencing them, or what the status is of the same issue that someone else opened 10 days ago.
lorsungcu
Oldsterisk
 
Posts: 116
Joined: Wed Mar 09, 2011 9:30 am

Re: API questions

Postby dpodolsky » Fri May 04, 2012 1:05 pm

1.If I make a call to the method "switchvox.users.callQueues.getTodaysStatus" and there are zero completed calls within the requested time the method returns a divide by zero error. It would appear the code with the method is dividing by zero when calculating the averages.


I had some investigation done on this and did confirm we had an issue, but it is an edge case so hopefully you can confirm this is what you were running into:

A division by zero could occur if you had at least 1 call that was taken in the queue AND NONE of those calls were answered by an agent and NONE of those calls were abandoned. So that means all the calls had to be redirected.

2. Investigating

3.The last issue is that I cannot see a way to get some needed data - specifically the wait time and entry position for an active call that entered through a queue. If someone knows how to get this I would be very appreciative.


You can't get this for a live call, but after the call is handled get this info from the queue reports api.
dpodolsky
Oldsterisk
 
Posts: 325
Joined: Thu Apr 23, 2009 2:35 pm


Return to Switchvox Developers

Who is online

Users browsing this forum: No registered users and 8 guests