projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compliance solutions, RT#77676
[freeside.git]
/
FS
/
FS
/
part_export
/
vitelity.pm
diff --git
a/FS/FS/part_export/vitelity.pm
b/FS/FS/part_export/vitelity.pm
index
332e457
..
574592f
100644
(file)
--- a/
FS/FS/part_export/vitelity.pm
+++ b/
FS/FS/part_export/vitelity.pm
@@
-410,6
+410,7
@@
sub e911_send {
return '' if $self->option('disable_e911');
my %location = $svc_phone->location_hash;
return '' if $self->option('disable_e911');
my %location = $svc_phone->location_hash;
+ $location{'zip'} =~ s/\-\d{4}$//;
my %e911send = (
'did' => $svc_phone->phonenum,
'name' => $svc_phone->phone_name_or_cust,
my %e911send = (
'did' => $svc_phone->phonenum,
'name' => $svc_phone->phone_name_or_cust,
@@
-425,7
+426,7
@@
sub e911_send {
my $e911_result = $self->vitelity_command('e911send', %e911send);
my $e911_result = $self->vitelity_command('e911send', %e911send);
- unless ( $e911_result =~ /
^
(missingdata|invalid)/i ) {
+ unless ( $e911_result =~ /
status=
(missingdata|invalid)/i ) {
warn "Vitelity response: $e911_result" if $self->option('debug');
return '';
}
warn "Vitelity response: $e911_result" if $self->option('debug');
return '';
}