JP Carballo a écrit :

Jean-Michel Hiver wrote:

Hi List,

In one of my AGIs (using DeadAGI) I grab the answered time using:

       my $res = $agi->exec ("DIAL $dialstring");
       my $answeredtime = $agi->get_variable ("ANSWEREDTIME");

However this information differs from what's written in the Master.csv file (which happens to be the correct value!)

Any ideas why?

On my system, answeredtime returns the time elapsed since the call was answered by the destination. The time elapsed stored in Master.csv is from the time the current incoming call (channel) was answered.

There are two values in Master.csv: the first one is the total time of the call (including the ringing bits and everything), the second one being the time which has been effectively answered ("billable" time). This second value is the correct one and differs from what I expect.

Ah well, no worries. I've setup cdr_pgsql.conf and will process the CDRs every minute or so with a cron job. It's a bit patchy but what can you do :)

Cheers,
Jean-Michel.

--
Jean-Michel Hiver - http://ykoz.net/
Découvrez la Réunion des Technologies IP & Telecom
TEL: +262 (0)262 55 03 98 - RCS 434 273 330 SAINT PIERRE

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to