We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Take or get the time duration

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
ocbermudez
Posts: 34
Joined: Tue Aug 08, 2006 10:00 am

Take or get the time duration

Post by ocbermudez »

Hi Folk,

I am seeing that I can't get the call time duration. For me service is very important because each client has to pay for each minute that he/she did in the month.
In the result url callback, you may be should have to send this information. Right now, this information is not send it.
Could you tell how I can get this information automatically from your system? (May be you have some web service for that, where I can send a query of each call.)
I saw the session log in PLUM system, but I didn't see any unique ID in this log. So I need to search by ani + date, but the date that you show in the log is not the same that that that the system send in the result or start url callback. Conclusion: very easy if you have 2 clients, but if you have 100 clients VERY complicate (impossible).
Please let me know how I can get the information about the duration of the call.
Thanks.
Omar.

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR link to capture session length in VXML app

Post by support »

Here's an IVR thread on capturing IVR session length in a VXML application:

http://support.plumvoice.com/viewtopic. ... ht=gettime
Last edited by support on Sat Feb 20, 2010 3:27 pm, edited 3 times in total.

ocbermudez
Posts: 34
Joined: Tue Aug 08, 2006 10:00 am

Post by ocbermudez »

Ok, I can do it.
But my question now is:
Will I get the same time that PLUM get for all my calls?
because I need to get same many from my clients, that PLUM will get from me. Do you understand me question? (sorry for my bad English)
Thanks.
Omar.

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

capture IVR session id and use to look up call length

Post by support »

No, it will not be exactly the same. It will likely be a few seconds off as it doesn't account for the 2-4 seconds at the beginning of the IVR call required for callee type detection and the 1-2 seconds of post-call processing that you'll be performing. If you want to perfectly correlate each individual IVR call with logged call length, you should capture the IVR session id (it's the session.id global variable) and use that to look up the call length in the IVR session logs.

Our recommendation, however, is that you should calculate the call length as described in the link above and, over a large sample size (say, 200 calls) determine the difference with the call length as logged by Plum. If the standard deviation is sufficiently low, you can safely apply that delta to all of your calculated call times.

Post Reply