'Defines an actual user who can log into the web panel, register devices via SIP and/or XMPP and place and receive calls via SIP. A subscriber always belongs to a <a href="#customers">Customer</a> and is placed inside a <a href="#domains">Domain</a>.'
'Defines an actual user who can log into the web panel, register devices via SIP and/or '.
'XMPP and place and receive calls via SIP. A subscriber always belongs to a '.
'<a href="#customers">Customer</a> and is placed inside a <a href="#domains">Domain</a>.',
);
class_has'query_params'=>(
@ -39,7 +41,7 @@ class_has 'query_params' => (
return{username=>{like=>$q}};
},
second=>sub{},
}
},
},
{
param=>'domain',
@ -52,8 +54,55 @@ class_has 'query_params' => (
second=>sub{
my$q=shift;
return{'join'=>'domain'};
}
}
},
},
},
{
param=>'customer_id',
description=>'Filter for subscribers of a specific customer.',
query=>{
first=>sub{
my$q=shift;
return{'contract_id'=>$q};
},
second=>sub{
return{};
},
},
},
{
param=>'is_pbx_group',
description=>'Filter for subscribers who are (not) pbx_groups.',