|
|
@ -65,7 +65,9 @@ sub get_resource {
|
|
|
|
my %profile_allowed_attrs; # for filtering subscriber attrs on its profile
|
|
|
|
my %profile_allowed_attrs; # for filtering subscriber attrs on its profile
|
|
|
|
my $has_profile = 0;
|
|
|
|
my $has_profile = 0;
|
|
|
|
my $attr = 0;
|
|
|
|
my $attr = 0;
|
|
|
|
|
|
|
|
my $resource = {};
|
|
|
|
if($type eq "subscribers") {
|
|
|
|
if($type eq "subscribers") {
|
|
|
|
|
|
|
|
$resource->{'lock'} = 0;
|
|
|
|
$prefs = $item->provisioning_voip_subscriber->voip_usr_preferences;
|
|
|
|
$prefs = $item->provisioning_voip_subscriber->voip_usr_preferences;
|
|
|
|
my $profile = $item->provisioning_voip_subscriber->voip_subscriber_profile;
|
|
|
|
my $profile = $item->provisioning_voip_subscriber->voip_subscriber_profile;
|
|
|
|
if ($profile) {
|
|
|
|
if ($profile) {
|
|
|
@ -95,7 +97,6 @@ sub get_resource {
|
|
|
|
order_by => { '-asc' => 'id' },
|
|
|
|
order_by => { '-asc' => 'id' },
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
my $resource;
|
|
|
|
|
|
|
|
foreach my $pref($prefs->all) {
|
|
|
|
foreach my $pref($prefs->all) {
|
|
|
|
my $value;
|
|
|
|
my $value;
|
|
|
|
my $processed = 0;
|
|
|
|
my $processed = 0;
|
|
|
|