From 9fa1bf13b76c0177a3aa12d70aabe5358a9fa3e5 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 27 Jun 2017 17:57:01 -0700 Subject: [PATCH] correctly parse CNAM response, RT#76262, RT#73618 --- FS/FS/part_export/vitelity.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') ) { -- 2.11.0