Skip to content

SCRIPT HELPER module

The purpose of the Script Helper module is to simplify the scripting process in OpenSIPS when doing basic scenarios. At the same time, it is useful to script writers as it contains basic SIP routing logic, and thus it allows them to focus more on the particular aspects of their OpenSIPS routing code.

By simply loading the module, the following default logic will be embedded:

  • for initial SIP requests, the module will perform record routing before running the main request route
  • sequential SIP requests will be transparently handled - the module will perform loose routing, and the request route will not be run at all

Currently, the module may be further configured to embed the following optional logic:

  • dialog support (dialog module dependency - must be loaded before this module)
  • an additional route to be run before relaying sequential requests

The following modules must be loaded before this module:

The following libraries or applications must be installed before running OpenSIPS with this module loaded:

  • None.

Enables dialog support. Note that the dialog module must be loaded before this module when setting this parameter.

Default value is 0 (disabled)

Setting use_dialog
...
modparam("script_helper", "use_dialog", 1)
...

Flags used when creating dialogs. For details on these flags, please refer to the create_dialog() function of the dialog module.

Default value is "" (no flags are set)

Setting create_dialog_flags
...
modparam("script_helper", "create_dialog_flags", "options-ping-caller,options-ping-callee,bye-on-timeout")
...

Optional route to be run just before sequential requests are relayed. If the exit script statement is used inside this route, the module assumes that the relaying logic has been handled.

By default, this parameter is not set

Setting sequential_route
...
modparam("script_helper", "sequential_route", "sequential_handling")
...
route [sequential_handling]
{
...
}
...

The Max-Forwards header is currently not handled at all.

Top contributors by DevScore(1), authored commits(2) and lines added/removed(3)

#NameDevScoreCommitsLines++Lines—
1.Liviu Chircu (@liviuchircu)201450048
2.Bogdan-Andrei Iancu (@bogdan-iancu)12649210
3.Razvan Crainea (@razvancrainea)86119
4.Stefan Darius (@dariusstefan)7414717
5.Vlad Patrascu (@rvlad-patrascu)64913
6.Maksym Sobolyev (@sobomax)5334
7.Peter Lemenkov (@lemenkov)3111

(1) DevScore = author_commits + author_lines_added / (project_lines_added / project_commits) + author_lines_deleted / (project_lines_deleted / project_commits)

(2) including any documentation-related commits, excluding merge commits

(3) ignoring whitespace edits, renamed files and auto-generated files

#NameCommit Activity
1.Bogdan-Andrei Iancu (@bogdan-iancu)Oct 2014 - Jul 2026
2.Stefan Darius (@dariusstefan)Jun 2026 - Jul 2026
3.Razvan Crainea (@razvancrainea)Aug 2015 - Jun 2026
4.Liviu Chircu (@liviuchircu)Mar 2014 - Mar 2026
5.Maksym Sobolyev (@sobomax)Feb 2023 - Feb 2023
6.Vlad Patrascu (@rvlad-patrascu)May 2017 - Apr 2019
7.Peter Lemenkov (@lemenkov)Jun 2018 - Jun 2018

(1) including any documentation-related commits, excluding merge commits

Last edited by: Razvan Crainea (@razvancrainea), Liviu Chircu (@liviuchircu), Peter Lemenkov (@lemenkov).

All documentation files (i.e. .md extension) are licensed under the Creative Common License 4.0