O'Reilly logo

Building Telephony Systems with OpenSIPS 1.6 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

Routing basics

It is hard to understand how to route packets without a small introduction about the principles of SIP routing. Pay special attention to the difference between initial and sequential requests.

Routing requests and replies

The requests are routed using some mechanisms in the OpenSIPS scripts; usually for inter-domain calls, we use a DNS server to discover the address for the destination, while intra-domain calls are often routed using the user location table. The replies are routed back based on the Via headers inserted during the path of the request. For stateful routing, the transaction is matched based on the branch parameter in the Via header.

See the following example, the address of the SIP proxy is 192.168.1.201:5060, the IP ...

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