[freeside-commits] branch master updated. 9fa1bf13b76c0177a3aa12d70aabe5358a9fa3e5

Ivan ivan at 420.am
Tue Jun 27 17:57:02 PDT 2017


The branch, master has been updated
       via  9fa1bf13b76c0177a3aa12d70aabe5358a9fa3e5 (commit)
      from  575dbfc4c5acb1dd2c04e17fd045351b240db218 (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 9fa1bf13b76c0177a3aa12d70aabe5358a9fa3e5
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Jun 27 17:57:01 2017 -0700

    correctly parse CNAM response, RT#76262, RT#73618

diff --git a/FS/FS/part_export/vitelity.pm b/FS/FS/part_export/vitelity.pm
index 4dd9caa..f80ef6d 100644
--- a/FS/FS/part_export/vitelity.pm
+++ b/FS/FS/part_export/vitelity.pm
@@ -374,7 +374,7 @@ sub _export_insert {
   my $cnam_result = $self->vitelity_command('cnamenable',
                                               'did'=>$svc_phone->phonenum,
                                            );
-  if ( $result ne 'ok' ) {
+  if ( $result !~ /^(ok|success)/i ) {
     #we already provisioned the DID, so...
     warn "Vitelity error enabling CNAM for ". $svc_phone->phonenum. ": $result";
   } elsif ( $self->option('debug') ) {

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

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




More information about the freeside-commits mailing list