Manage the access control lists or groups

OpenSIPS subscribers can be members of groups. There is a module called Group. This module implements a table called grp. It is also possible to use regular expression groups, but this is beyond the scope of the tool. In the OpenSIPS script, you can check whether a user is a member of a group or not using the db_is_user_in(uri,group) function. This mechanism is often used to implement ACLs limiting the destinations dialed by a specific user. You will see more of this in Chapter 7, Dialplan and Routing. For now, let's just understand how to make the subscribers members of a group.

Let's configure the groups that we will use in the training:

Group

Description

VoIP

Makes calls only to VoIP destinations ...

Get Building Telephony Systems with OpenSIPS - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.