The REGISTER authentication sequence

The script should authenticate REGISTER and INVITE messages. Let's see how this happens before changing the opensips.cfg script. When OpenSIPS receives the REGISTER message, it checks for the existence of the Authorization header. If it is not found, it will challenge UAC for the credentials and exit.

After being challenged, the UAC should send a REGISTER message with an Authorization header field:

The REGISTER authentication sequence

The REGISTER sequence

See the following registration process shown by these packets captured by the ngrep utility. The ngrep tool is a handy utility, easy to install on any Linux server. The ngrep command used to capture ...

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.