IP authentication

There are cases where you would prefer to authenticate by the IP instead of the name and password. Some examples are gateways that are not capable of doing Digest authentication and high-volume customers such as call centers. At high rates such as 100 calls per second, two additional messages (407) can make a difference.

The permissions module has a lot of functions; here, we will focus only on the check_address() function and address database. The syntax for the command is as follows:

check_address(group_id, ip, port, proto [, context_info [, pattern]])

In this command, the following points are explained as follows:

  • The group_id argument is the group to be matched in the address table. The group_id argument of value 0 means any ...

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.