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 ...

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.