diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-07-12 15:17:56 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-07-12 15:17:56 -0700 |
commit | 7bc20f13e95cb43e12e6a937d6940c82036cdf42 (patch) | |
tree | fbadc0aaf17d773d1a1a8e9d3a8c4b1daa3b9cf5 | |
parent | a0be186f867a0d0a7e8145e02c4a50173778df38 (diff) |
correctly parse error response from e911 provisioning, RT#76262
-rw-r--r-- | FS/FS/part_export/vitelity.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/FS/FS/part_export/vitelity.pm b/FS/FS/part_export/vitelity.pm index f80ef6d6d..332e45712 100644 --- a/FS/FS/part_export/vitelity.pm +++ b/FS/FS/part_export/vitelity.pm @@ -387,7 +387,13 @@ sub _export_insert { my $e911_error = $self->e911_send($svc_phone); - if ( $e911_error =~ /^(missingdata|invalid)/i ) { + if ( $e911_error =~ /status=(missingdata|invalid)/i ) { + + my $status = $1; + if ( $e911_error =~ /error=(.*)/ ) { + $e911_error = "status=$status, error=$1"; + } + #but we already provisioned the DID, so: $self->vitelity_command('removedid', 'did'=> $svc_phone->phonenum,); #and check the results? if it failed, then what? |