[OpenSIPS-Users] [NEW] Simplify your script with script_helper module

Liviu Chircu liviu at opensips.org
Mon Apr 7 11:03:41 CEST 2014


Hello all,

OpenSIPS 1.11 has a new addition, the "script_helper" module . The 
purpose of this new module is to help you *start in an easy way with the 
OpenSIPS script*. *The learning curve gets milder*as the beginners can 
start with a simplified format of the script - the idea is to shift the 
main focus on routing the SIP initial requests (which define the service 
logic), while transparently handling a lot of "standard" SIP scripting 
logic, in order to both save script coding time and mitigate potential 
SIP scripting errors. This tutorial offers both a brief overview on the 
features of the new module and an example script.

The current features of the module:

1) *transparent handling of SIP sequential requests*
     * sequential requests are properly and silently handled - they will 
not hit the script at all anymore for initial SIP requests, the module 
performs record-routing (i.e. OpenSIPS adds itself in the signaling path 
using a Record-Route header), after which the main route is triggered, 
just as before
     * for sequential SIP requests, the module is automatically doing 
loose_route() for proper routing.
     * optionally a special route may be run just before all sequential 
requests are routed out

2) *automatic dialog support*
     * automatically create dialog support for the INVITE-based sessions
     * for sequential requests within a dialog, a complete dialog 
matching (Call-ID, From-tag, To-tag) will be attempted if the quick 
'did'-based Record-Route parameter matching fails


A nice tutorial with script examples can be found at:
http://www.opensips.org/Documentation/Tutorials-ScriptHelper-1-11

The module documentation can be found at:
http://opensips.org/html/docs/modules/1.11.x/script_helper.html

As future directions for the module, we are looking to include support for:
     * auto authentication
     * auto NAT traversal
     * auto registration handling

Enjoy,

-- 
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140407/b15bc9e7/attachment.htm>


More information about the Users mailing list