April 25, 2013, at 04:09 PM by-
Added line 1:
(:redirect About/News0061 quiet=1:)
June 23, 2011, at 06:33 PM by-
Added lines 1-18:
Main -> News -> New AVPs naming
New simpler and more efficient way of naming script AVPs
In order to optimize and simplify the AVP naming, OpenSIPS trunk implements a new way of naming the AVPs.
The heavy way of using numerical ID and/or strings for names (via i: and s:), combined with static AVP aliasing (via core parameter) was dropped and replaced with a unified way of addressing AVPs.
With the new approach, AVPs are all the time addressed via string-based names (in script) - to be human friendly. These string names are automatically aliased to numerical names (internally), so the operations with AVPs will be as fast as possible. Bottom line, the aliasing is done dynamically by OpenSIPS core, by mapping the string name from script to unique numerical ID in a dynamic and transparent way for the script writer.
Migrating is trivial: remove the "avp_aliases" parameter and all the "i:" and "s:" prefixes from AVP names.