TT#153300 Voicemail 'temp' and 'greet' greetings options for Perl-based Admin Panel

WHAT: This fix allows the options: (a) Voicemail greeting "temp", and (b) Voicemail greeting "greet" to be displayed within Subscriber Preferences -> "Voicemail and Voicebox" on Admin Panel (Perl-based). Hence, an Admin can load 'greet' and 'temp' prompts via Admin Panel, similarly as 'unavail' and 'busy' options.

WHY: 'greet' and 'temp' options were added to be managed via API, but they were not available on Admin Panel.

Change-Id: Ie2d18f4d9a8e8369f3bbcb8593848ce6ee4b7d32
mr10.3
Javier Rodriguez 3 years ago
parent 473e4488db
commit c3ae96a2bd

@ -742,7 +742,7 @@ sub preferences :Chained('base') :PathPart('preferences') :Args(0) {
}),
hash => 'type',
);
foreach my $voicemail_greeting_type (qw/unavail busy/){
foreach my $voicemail_greeting_type (qw/unavail busy temp greet/){
my $dir = NGCP::Panel::Utils::Subscriber::get_subscriber_voicemail_directory(c => $c, subscriber => $c->stash->{subscriber}, dir => $voicemail_greeting_type);
push @$vm_recordings_types,
$subscriber_vm_recordings->{$dir} ? {%{$subscriber_vm_recordings->{$dir}}, type => $voicemail_greeting_type }
@ -3472,7 +3472,7 @@ sub edit_voicebox :Chained('base') :PathPart('preferences/voicebox/edit') :Args(
if( !grep{ $action eq $_ } (qw/edit delete download/) ){
die('Wrong voicemail greeting action.');
}
if( !grep{ $type eq $_ } (qw/unavail busy/) ){
if( !grep{ $type eq $_ } (qw/unavail busy temp greet/) ){
die('Wrong voicemail greeting type.');
}
my $dir = NGCP::Panel::Utils::Subscriber::get_subscriber_voicemail_directory(c => $c, subscriber => $c->stash->{subscriber}, dir => $type);

Loading…
Cancel
Save