[freeside-commits] branch master updated. e1cb134fa87a2a526694eca3fa862f262c916f56

Ivan ivan at 420.am
Wed Jul 12 15:17:40 PDT 2017


The branch, master has been updated
       via  e1cb134fa87a2a526694eca3fa862f262c916f56 (commit)
      from  4f3565bf10ff89ceca0ebb9d3e1b63674f69ce60 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e1cb134fa87a2a526694eca3fa862f262c916f56
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Jul 12 15:17:37 2017 -0700

    correctly parse error response from e911 provisioning, RT#76262

diff --git a/FS/FS/part_export/vitelity.pm b/FS/FS/part_export/vitelity.pm
index f80ef6d..332e457 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?

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/part_export/vitelity.pm |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list