diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-06-27 17:57:03 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-06-27 17:57:03 -0700 |
commit | 89cf3b9abc76f4c78df3d4445575f0c2d08c4e0a (patch) | |
tree | 9cbe191417ee6364809bf33ddd602027239e7f81 | |
parent | d6c11c4fb5d085b819776507e2f00a6e297d8b5e (diff) |
correctly parse CNAM response, RT#76262, RT#73618
-rw-r--r-- | FS/FS/part_export/vitelity.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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') ) { |