[freeside-commits] branch FREESIDE_4_BRANCH updated. 8fe68aec8f45a9fd5a74887ab6a03b900e79cd34
Ivan Kohler
ivan at freeside.biz
Thu Aug 29 15:32:52 PDT 2019
The branch, FREESIDE_4_BRANCH has been updated
via 8fe68aec8f45a9fd5a74887ab6a03b900e79cd34 (commit)
from 32cfce396c2588bec65ef71785f9f059fd51426c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8fe68aec8f45a9fd5a74887ab6a03b900e79cd34
Author: Ivan Kohler <ivan at freeside.biz>
Date: Thu Aug 29 15:32:17 2019 -0700
avoid errors trying to import v12-style amaflags to our int field, RT#83146
diff --git a/FS/bin/freeside-cdr-asterisk_sql b/FS/bin/freeside-cdr-asterisk_sql
index a5a570d60..3d9096cf8 100755
--- a/FS/bin/freeside-cdr-asterisk_sql
+++ b/FS/bin/freeside-cdr-asterisk_sql
@@ -130,6 +130,8 @@ while ( my $row = $sth->fetchrow_hashref ) {
$cdr->cdrbatchnum($cdrbatchnum);
+ $cdr->amaflags('') unless $cdr->amaflags =~ /^(\d+)$/;
+
if ( my $error = $cdr->insert ) {
log_msg( error =>
sprintf 'Non-fatal failure to import acctid(%s) from table(%s): %s',
-----------------------------------------------------------------------
Summary of changes:
FS/bin/freeside-cdr-asterisk_sql | 2 ++
1 file changed, 2 insertions(+)
More information about the freeside-commits
mailing list