TT#5954 Rename custom hours announcements

Change-Id: I2918e6fcc48c3de3bdd0c80254a80dc93e1ce882
changes/08/9908/16
Irina Peshinskaya 9 years ago
parent 37a1996a9a
commit c379dc9493

@ -65,9 +65,10 @@ sub build_destinations {
if($c->config->{features}->{cloudpbx} && $c->stash->{pbx}){
push @options,
{ label => 'Auto Attendant', value => 'autoattendant' },
{ label => 'Office Hours Announcement', value => 'officehours' },
{ label => 'Custom Hours Announcement', value => 'customhours' };
{ label => 'Office Hours Announcement', value => 'officehours'} ;
}
push @options,
{ label => 'Custom Announcement', value => 'customhours' };
push @options, { label => 'Local Subscriber', value => 'localuser' }
if($c->config->{features}->{callthrough} || $c->config->{features}->{callingcard} );
}

@ -50,10 +50,11 @@ sub build_destinations {
if($c->config->{features}->{cloudpbx} && $c->stash->{pbx}){
push @options,
{ label => 'Auto Attendant', value => 'autoattendant' },
{ label => 'Office Hours Announcement', value => 'officehours' },
{ label => 'Custom Hours Announcement', value => 'customhours' };
{ label => 'Office Hours Announcement', value => 'officehours' };
}
push @options, { label => 'Local Subscriber', value => 'localuser' }
push @options,
{ label => 'Custom Announcement', value => 'customhours' };
push @options, { label => 'Local Subscriber', value => 'localuser' }
if($c->config->{features}->{callthrough} || $c->config->{features}->{callingcard} );
}
push @options, { label => 'URI/Number', value => 'uri' };

@ -82,7 +82,7 @@ sub destination_as_string {
} elsif($dest =~ /^sip:office-hours\@app\.local$/) {
return "Office Hours Announcement";
} elsif($dest =~ /^sip:custom-hours\@app\.local$/) {
return "Custom Hours Announcement";
return "Custom Announcement";
} else {
my $d = $dest;
$d =~ s/^sips?://;

Loading…
Cancel
Save