[freeside-commits] branch master updated. 7ef142d90992c4c4ece444f51b5bd3b70f588b6e

Ivan Kohler ivan at freeside.biz
Thu Aug 29 15:32:49 PDT 2019


The branch, master has been updated
       via  7ef142d90992c4c4ece444f51b5bd3b70f588b6e (commit)
      from  1f1190b8fb6d06852dbd16c6a288f9acd9cc83dd (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 7ef142d90992c4c4ece444f51b5bd3b70f588b6e
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Aug 29 15:32:14 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