From: Ivan Kohler Date: Wed, 28 Jun 2017 00:57:01 +0000 (-0700) Subject: correctly parse CNAM response, RT#76262, RT#73618 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=9fa1bf13b76c0177a3aa12d70aabe5358a9fa3e5 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 4dd9caa5e..f80ef6d6d 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') ) {