diff --git a/lib/NGCP/Panel/Controller/MaliciousCall.pm b/lib/NGCP/Panel/Controller/MaliciousCall.pm index 5e7972f8b6..06343808aa 100644 --- a/lib/NGCP/Panel/Controller/MaliciousCall.pm +++ b/lib/NGCP/Panel/Controller/MaliciousCall.pm @@ -27,6 +27,7 @@ sub mcid_list :Chained('/') :PathPart('maliciouscall') :CaptureArgs(0) { { name => 'callee', search => 1, title => $c->loc('Callee') }, { name => 'start_time', search => 1, title => $c->loc('Called at') }, { name => 'duration', search => 1, title => $c->loc('Duration') }, + { name => 'source', search => 1, title => $c->loc('Source') }, { name => 'reported_at', search => 1, title => $c->loc('Reported at') }, ]); $c->stash->{mcid_rs} = $mcid_rs; @@ -47,6 +48,7 @@ sub mcid_list :Chained('/') :PathPart('maliciouscall') :CaptureArgs(0) { { name => 'callee', search => 1, title => $c->loc('Callee') }, { name => 'start_time', search => 1, title => $c->loc('Called at') }, { name => 'duration', search => 1, title => $c->loc('Duration') }, + { name => 'source', search => 1, title => $c->loc('Source') }, { name => 'reported_at', search => 1, title => $c->loc('Reported at') }, ]); $c->stash->{mcid_rs} = $mcid_rs; diff --git a/lib/NGCP/Panel/Form/MaliciousCall/Admin.pm b/lib/NGCP/Panel/Form/MaliciousCall/Admin.pm index 38b4b1267e..a39f62276f 100644 --- a/lib/NGCP/Panel/Form/MaliciousCall/Admin.pm +++ b/lib/NGCP/Panel/Form/MaliciousCall/Admin.pm @@ -12,7 +12,7 @@ has_field 'reseller' => ( has_block 'fields' => ( tag => 'div', class => [qw/modal-body/], - render_list => [qw/reseller call_id caller callee start_time duration reported_at/], + render_list => [qw/reseller call_id caller callee start_time duration source reported_at/], ); 1; diff --git a/lib/NGCP/Panel/Form/MaliciousCall/Reseller.pm b/lib/NGCP/Panel/Form/MaliciousCall/Reseller.pm index 3e8ca0073e..29c8646edb 100644 --- a/lib/NGCP/Panel/Form/MaliciousCall/Reseller.pm +++ b/lib/NGCP/Panel/Form/MaliciousCall/Reseller.pm @@ -49,6 +49,12 @@ has_field 'duration' => ( required => 1, ); +has_field 'source' => ( + type => 'Text', + label => 'Source', + required => 1, +); + has_field 'reported_at' => ( type => 'Text', label => 'Reported at', @@ -58,7 +64,7 @@ has_field 'reported_at' => ( has_block 'fields' => ( tag => 'div', class => [qw/modal-body/], - render_list => [qw/id callee_uuid call_id caller callee start_time duration reported_at/], + render_list => [qw/id callee_uuid call_id caller callee start_time duration source reported_at/], ); 1;