[Spce-user] [EXTERNAL] Re: How to View and Edit Subscriber Locks via API
Marco Capetta
mcapetta at sipwise.com
Thu Apr 23 03:49:08 EDT 2026
Hi Mario,
I think that you are referring to banned subscribers or IPs, not the locked
ones.
Locked are subscriber that are not able to perform some kind of calls
because restricted for some reason.
Banned are instead the ones that are temporary blocked because failed the
login or did too many attempts in a certain amount of time.
For the banned ones, you can use APIv1
* BannedIps
* BannedUsers
or APIv2
* bans/registrations
* bans/ips
Marco
On Thu, Apr 23, 2026 at 9:37 AM Ml Ml <mliebherr99 at googlemail.com> wrote:
> Hello Marco,
>
> mein fist goal is to write a nagios check to monitor locked subscribers.
>
> Fetching all 20k subscribers and checking for the lock attribute is a
> long task, i was wondering of there is a faster way.
> The WebUI must fetch ist somehow quick, too?!
>
> Cheers,
> Mario
>
> On Wed, Apr 22, 2026 at 3:22 PM Marco Capetta via Spce-user
> <spce-user at lists.sipwise.com> wrote:
> >
> > Hi,
> >
> > if I got properly you asked how to lock subscriber, or numbers or IP,
> right?
> > To lock/unlock a subscriber you can simply edit its "lock" property in
> the " /api/subscribers" API, or change is trough the "lock" preference.
> >
> > For number or IPs, you need to be more specific about the request, what
> do you exactly want to lock?
> >
> > Thank you
> > Marco
> >
> >
> > On Wed, Apr 22, 2026 at 11:05 AM Ml Ml via Spce-user <
> spce-user at lists.sipwise.com> wrote:
> >>
> >> Hello,
> >>
> >> how can view and edit (unlock/lock) Subscribers/Numbers/IPs in the API?
> >> I wasnt able to find it in the DOCs :(
> >> Maybe its "somehow special"?
> >>
> >> Cheers,
> >> Mario
> >>
> >> --
> >> Spce-user mailing list
> >> Spce-user at lists.sipwise.com
> >> http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com
> >
> > --
> > Spce-user mailing list
> > Spce-user at lists.sipwise.com
> > http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20260423/8ae3ed43/attachment.htm>
More information about the Spce-user
mailing list