[freeside-commits] branch FREESIDE_4_BRANCH updated. 95ad3a9ababb36a79c4425c54192659075819ca5
Ivan
ivan at 420.am
Wed Aug 2 11:55:44 PDT 2017
The branch, FREESIDE_4_BRANCH has been updated
via 95ad3a9ababb36a79c4425c54192659075819ca5 (commit)
from d5f2b4e779968e70898fca6d61cbb45e284ba632 (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 95ad3a9ababb36a79c4425c54192659075819ca5
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Aug 2 11:55:41 2017 -0700
VoIP innovations CDR import using SSL, RT#76784
diff --git a/FS/bin/freeside-voipinnovations-cdrimport b/FS/bin/freeside-voipinnovations-cdrimport
index 23ea6bb..10c4bca 100755
--- a/FS/bin/freeside-voipinnovations-cdrimport
+++ b/FS/bin/freeside-voipinnovations-cdrimport
@@ -4,7 +4,8 @@ use strict;
use Getopt::Std;
use Date::Format;
use File::Temp 'tempdir';
-use Net::FTP;
+use Net::SSLGlue::FTP; #at least until the Deb 9 transition is done, then
+ # regular Net::FTP has SSL support
use FS::UID qw(adminsuidsetup datasrc dbh);
use FS::cdr;
use FS::cdr_batch;
@@ -42,8 +43,11 @@ my $hostname = 'customercdr.voipinnovations.com';
my $ftp = Net::FTP->new($hostname, Debug => $opt_d)
or die "Can't connect to $hostname: $@\n";
+$ftp->starttls()
+ or die "TLS initialization failed: ". $ftp->message. "\n";
+
$ftp->login($login, $password)
- or die "Login failed: ".$ftp->message."\n";
+ or die "Login failed: ". $ftp->message. "\n";
###
# get the file list
diff --git a/debian/control b/debian/control
index a268ffd..615b764 100644
--- a/debian/control
+++ b/debian/control
@@ -99,7 +99,7 @@ Depends: aspell-en,gnupg,ghostscript,gsfonts,gzip,latex-xcolor,
libxml-writer-perl, libio-socket-ssl-perl,
libmap-splat-perl, libdatetime-format-ical-perl, librest-client-perl,
libgeo-streetaddress-us-perl, libbusiness-onlinepayment-perl,
- libnet-vitelity-perl (>= 0.05)
+ libnet-vitelity-perl (>= 0.05), libnet-sslglue-perl
Conflicts: libparams-classify-perl (>= 0.013-6)
Replaces: freeside (<<4)
Breaks: freeside (<<4)
-----------------------------------------------------------------------
Summary of changes:
FS/bin/freeside-voipinnovations-cdrimport | 8 ++++++--
debian/control | 2 +-
2 files changed, 7 insertions(+), 3 deletions(-)
More information about the freeside-commits
mailing list