correctly parse error response from e911 provisioning, RT#76262
authorIvan Kohler <ivan@freeside.biz>
Wed, 23 Aug 2017 18:57:28 +0000 (11:57 -0700)
committerIvan Kohler <ivan@freeside.biz>
Wed, 23 Aug 2017 18:57:28 +0000 (11:57 -0700)
FS/FS/part_export/vitelity.pm

index 332e457..51bb0aa 100644 (file)
@@ -425,7 +425,7 @@ sub e911_send {
 
   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 '';
   }