O'Reilly logo

Building Telephony Systems with OpenSER by Flavio E. Goncalves

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The REGISTER Authentication Sequence

The script should authenticate REGISTER and INVITE messages. Let's show how this happens before changing the openser.cfg script. When OpenSER receives the REGISTER message it checks for the existence of the Authorize header. If it does not find one, it will challenge UAC for the credentials and exit.

After being challenged the UAC should send a REGISTER message with an Authorize header field.

The REGISTER Authentication Sequence

Register Sequence (Packets Captured by ngrep)

The register process can be seen in the packet capture shown below:

U 192.168.1.119:29040 -> 192.168.1.155:5060
REGISTER sip:192.168.1.155 SIP/2.0. Via: SIP/2.0/UDP 192.168.1.119:29040;branch=z9hG4bK-d87543-13517a5a8218ff45-1--d87543-;rport. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required