projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
575dbfc
)
correctly parse CNAM response, RT#76262, RT#73618
author
Ivan Kohler
<ivan@freeside.biz>
Wed, 28 Jun 2017 00:57:01 +0000
(17:57 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Wed, 28 Jun 2017 00:57:01 +0000
(17:57 -0700)
FS/FS/part_export/vitelity.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_export/vitelity.pm
b/FS/FS/part_export/vitelity.pm
index
4dd9caa
..
f80ef6d
100644
(file)
--- 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') ) {