projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add "Ignore accounting records from this database" to broadband_sqlradius export...
[freeside.git]
/
FS
/
FS
/
part_export
/
sipwise.pm
diff --git
a/FS/FS/part_export/sipwise.pm
b/FS/FS/part_export/sipwise.pm
index
5cbe89c
..
9d4e336
100644
(file)
--- a/
FS/FS/part_export/sipwise.pm
+++ b/
FS/FS/part_export/sipwise.pm
@@
-5,6
+5,7
@@
use strict;
use FS::Record qw(qsearch qsearchs dbh);
use Tie::IxHash;
use FS::Record qw(qsearch qsearchs dbh);
use Tie::IxHash;
+use IO::Socket::SSL;
use LWP::UserAgent;
use URI;
use Cpanel::JSON::XS;
use LWP::UserAgent;
use URI;
use Cpanel::JSON::XS;
@@
-27,7
+28,7
@@
tie my %options, 'Tie::IxHash',
default => 'default',
},
'subscriber_profile_set' => {
default => 'default',
},
'subscriber_profile_set' => {
- label => 'Subscriber profile set name',
+ label => 'Subscriber profile set name
(optional)
',
},
'reseller_id' => { label => 'Reseller ID' },
'ssl_no_verify' => { label => 'Skip SSL certificate validation',
},
'reseller_id' => { label => 'Reseller ID' },
'ssl_no_verify' => { label => 'Skip SSL certificate validation',
@@
-63,8
+64,6
@@
our %info = (
will receive calls at this number.
</OL>
</P>
will receive calls at this number.
</OL>
</P>
-<P>Export options:
-</P>
END
);
END
);
@@
-803,7
+802,10
@@
sub ua {
$self->{_ua} ||= do {
my @opt;
if ( $self->option('ssl_no_verify') ) {
$self->{_ua} ||= do {
my @opt;
if ( $self->option('ssl_no_verify') ) {
- push @opt, ssl_opts => { verify_hostname => 0 };
+ push @opt, ssl_opts => {
+ verify_hostname => 0,
+ SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE,
+ };
}
my $ua = LWP::UserAgent->new(@opt);
$ua->credentials(
}
my $ua = LWP::UserAgent->new(@opt);
$ua->credentials(