FS/bin/freeside-cdr-evariste-import
authorJonathan Prykop <jonathan@freeside.biz>
Thu, 21 Apr 2016 21:26:53 +0000 (16:26 -0500)
committerJonathan Prykop <jonathan@freeside.biz>
Thu, 21 Apr 2016 21:26:53 +0000 (16:26 -0500)
FS/bin/freeside-cdr-evariste-import

index 0487ae5..d5e13f9 100755 (executable)
@@ -100,7 +100,7 @@ while (my $row = $csth->fetchrow_hashref) {
     'cdrbatchnum'             => $cdr_batch->cdrbatchnum,
     'uniqueid'                => $row->{'id'},
     'src'                     => $row->{'src'},
-    'dst'                     => $row->{'dest'},
+    'dst'                     => $row->{'routing_target'} || $row->{'dest'}, # dest_orig? dest_trans?
     'startdate'               => int(str2time($row->{'start_time'})),
     'answerdate'              => int(str2time($row->{'answer_time'})),
     'enddate'                 => int(str2time($row->{'end_time'})),