[freeside-commits] freeside/bin cdr-voipnow.import, 1.1.2.3, 1.1.2.4
Mark Wells
mark at wavetail.420.am
Mon Feb 14 15:01:20 PST 2011
Update of /home/cvs/cvsroot/freeside/bin
In directory wavetail.420.am:/tmp/cvs-serv2549/bin
Modified Files:
Tag: FREESIDE_2_1_BRANCH
cdr-voipnow.import
Log Message:
VoipNow import adjustment, RT#11178
Index: cdr-voipnow.import
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/cdr-voipnow.import,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -w -d -r1.1.2.3 -r1.1.2.4
--- cdr-voipnow.import 15 Jan 2011 01:20:35 -0000 1.1.2.3
+++ cdr-voipnow.import 14 Feb 2011 23:01:18 -0000 1.1.2.4
@@ -45,7 +45,8 @@
my $table = $opt{T} || 'call_history';
# spelled "disposion" in the table
my @cols = ( qw(
- id extension_number flow channel partyid start answer duration disposion) );
+ id extension_number flow channel partyid start answer duration disposion did
+ client_client_id ) );
my $sql = 'SELECT '.join(',', @cols). " FROM $table WHERE id >= $start_id";
$sql .= " AND id <= $end_id" if $end_id;
$sql .= " ORDER BY id";
@@ -80,6 +81,7 @@
startdate => str2time($row->{start}),
answerdate => str2time($row->{answer}),
cdrbatchnum => $cdrbatchnum,
+ accountcode => $row->{client_client_id},
}
);
print $row->{id},"\n" if $opt{v};
@@ -88,7 +90,7 @@
$cdr->dst($row->{'partyid'});
}
elsif ( $row->{flow} eq 'in' ) {
- $cdr->dst($row->{'extension_number'});
+ $cdr->dst($row->{'did'});
$cdr->src($row->{'partyid'});
}
else {
More information about the freeside-commits
mailing list