summaryrefslogtreecommitdiff
path: root/FS/FS/part_export/portaone.pm
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-04-05 23:12:57 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-04-05 23:12:57 -0500
commit3f7b5f5442d88a440b72e38f4911de4a996f86e4 (patch)
tree05b09217dde485d620dc3433e390c40ae750fa34 /FS/FS/part_export/portaone.pm
parentacb39631e91c32eff550eb756e06d7465c2a1b2c (diff)
RT#40056: Export DIDs to portaone switch [added h323_password]
Diffstat (limited to 'FS/FS/part_export/portaone.pm')
-rw-r--r--FS/FS/part_export/portaone.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/FS/FS/part_export/portaone.pm b/FS/FS/part_export/portaone.pm
index 2654e1c..8d5e19e 100644
--- a/FS/FS/part_export/portaone.pm
+++ b/FS/FS/part_export/portaone.pm
@@ -141,6 +141,7 @@ sub _export_insert {
'i_product' => $product_id,
'activation_date' => time2str("%Y-%m-%d",time),
'billing_model' => 1, # '1' for credit, '-1' for debit, could make this an export option
+ 'h323_password' => $svc_phone->sip_password,
}
},'i_account');
return $self->api_error_logout if $self->api_error;
@@ -381,6 +382,7 @@ sub api_update_account {
'i_account' => $i_account,
'id' => $newid,
'i_product' => $self->option('product_id'),
+ 'h323_password' => $svc_phone->sip_password,
},
},'i_account');
return if $self->api_error;