MT#59011 Cleanup panel from the reference to "sip:localuser"

An outdated and not used implementation for the "sip:localuser"
in the ngcp-panel.

Change-Id: I7c83bee0da07f7fafe7b1cb669a8c5080bc8565e
mr12.4
Donat Zenichev 12 months ago
parent 42f8747a6f
commit 844a9e5920

@ -69,8 +69,6 @@ sub build_destinations {
}
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 => 'Manager Secretary', value => 'managersecretary' }
if($c->config->{features}->{manager_secretary});
}

@ -72,8 +72,6 @@ sub build_destinations {
}
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 => 'Manager Secretary', value => 'managersecretary' }
if($c->config->{features}->{manager_secretary});
}

@ -111,8 +111,6 @@ sub destination_as_string {
return "CallingCard";
} elsif($dest =~ /^sip:callthrough\@app\.local$/) {
return "CallThrough";
} elsif($dest =~ /^sip:localuser\@.+\.local$/) {
return "Local Subscriber";
} elsif($dest =~ /^sip:auto-attendant\@app\.local$/) {
return "Auto Attendant";
} elsif($dest =~ /^sip:office-hours\@app\.local$/) {
@ -1897,8 +1895,6 @@ sub field_to_destination {
$d = "sip:callingcard\@app.local";
} elsif($d eq "callthrough") {
$d = "sip:callthrough\@app.local";
} elsif($d eq "localuser") {
$d = "sip:localuser\@app.local";
} elsif($d eq "autoattendant") {
$d = "sip:auto-attendant\@app.local";
} elsif($d eq "officehours") {
@ -1939,8 +1935,6 @@ sub destination_to_field {
$d = 'callingcard';
} elsif($d =~ /^sip:callthrough\@app\.local$/) {
$d = 'callthrough';
} elsif($d =~ /^sip:localuser\@.+\.local$/) {
$d = 'localuser';
} elsif($d =~ /^sip:auto-attendant\@app\.local$/) {
$d = 'autoattendant';
} elsif($d =~ /^sip:office-hours\@app\.local$/) {

@ -1103,7 +1103,6 @@ sub test_cfdestinationset {
'conference',
'callingcard',
'callthrough',
'localuser',
'autoattendant',
'officehours',
'test_destination@example.com');

Loading…
Cancel
Save