projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4f3565b
)
correctly parse error response from e911 provisioning, RT#76262
author
Ivan Kohler
<ivan@freeside.biz>
Wed, 12 Jul 2017 22:17:37 +0000
(15:17 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Wed, 12 Jul 2017 22:17:37 +0000
(15:17 -0700)
FS/FS/part_export/vitelity.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_export/vitelity.pm
b/FS/FS/part_export/vitelity.pm
index
f80ef6d
..
332e457
100644
(file)
--- 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?