|
|
|
|
@ -3461,6 +3461,7 @@ sub create_trusted :Chained('base') :PathPart('preferences/trusted/create') :Arg
|
|
|
|
|
protocol => $form->field('protocol')->value,
|
|
|
|
|
from_pattern => $form->field('from_pattern') ? $form->field('from_pattern')->value : undef,
|
|
|
|
|
});
|
|
|
|
|
NGCP::Panel::Utils::Kamailio::address_reload($c);
|
|
|
|
|
NGCP::Panel::Utils::Message::info(
|
|
|
|
|
c => $c,
|
|
|
|
|
desc => $c->loc('Successfully created trusted source'),
|
|
|
|
|
@ -3537,6 +3538,7 @@ sub edit_trusted :Chained('trusted_base') :PathPart('edit') {
|
|
|
|
|
protocol => $form->field('protocol')->value,
|
|
|
|
|
from_pattern => $form->field('from_pattern') ? $form->field('from_pattern')->value : undef,
|
|
|
|
|
});
|
|
|
|
|
NGCP::Panel::Utils::Kamailio::address_reload($c);
|
|
|
|
|
NGCP::Panel::Utils::Message::info(
|
|
|
|
|
c => $c,
|
|
|
|
|
desc => $c->loc('Successfully updated trusted source'),
|
|
|
|
|
@ -3568,6 +3570,7 @@ sub delete_trusted :Chained('trusted_base') :PathPart('delete') :Args(0) {
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
$c->stash->{trusted}->delete;
|
|
|
|
|
NGCP::Panel::Utils::Kamailio::address_reload($c);
|
|
|
|
|
NGCP::Panel::Utils::Message::info(
|
|
|
|
|
c => $c,
|
|
|
|
|
data => { $c->stash->{trusted}->get_inflated_columns },
|
|
|
|
|
|