O'Reilly logo

Building Telephony Systems with OpenSIPS - Second Edition by Bogdan-Andrei Iancu, 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

Scripting capabilities

Now that we understand the routes (or routing block), what they are good for, and how they are linked to the handling of the SIP traffic, it is time to look in the routes and see what the scripting capabilities offered by the OpenSIPS routing language are—capabilities in terms of functions, statements, variables, operators, and assignments.

The scripting functions

There are two types of functions available in the OpenSIPS routing blocks: functions provided by the OpenSIPS core and functions provided by the modules.

The functions provided by the core are typically simple functions and they have a very flexible prototype; they can have any number of parameters, they can be called from any type of route, and they can accept parameters ...

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