diff --git a/lib/NGCP/Panel/Controller/API/Subscribers.pm b/lib/NGCP/Panel/Controller/API/Subscribers.pm index 17a0477a60..791f7b42f2 100644 --- a/lib/NGCP/Panel/Controller/API/Subscribers.pm +++ b/lib/NGCP/Panel/Controller/API/Subscribers.pm @@ -32,6 +32,19 @@ class_has 'query_params' => ( is => 'ro', isa => 'ArrayRef', default => sub {[ + { + param => 'profile_id', + description => 'Search for subscribers having a specific subscriber profile', + query => { + first => sub { + my $q = shift; + return { 'provisioning_voip_subscriber.profile_id' => $q }; + }, + second => sub { + return { join => 'provisioning_voip_subscriber' }; + }, + }, + }, { param => 'username', description => 'Search for specific SIP username',