[OpenSIPS-Devel] New AVP naming

Razvan Crainea razvancrainea at opensips.org
Thu Jun 23 17:40:31 CEST 2011


Hello all,

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

Changes:
- all AVPs are named via strings, so the "i:" and "s:" prefixes are 
deprecated
- "avp_aliases" core param was dropped as useless.

Migrating is trivial: remove the "avp_aliases" parameter and all the 
"i:" and "s:" prefixes from AVP names.

Regards,

-- 
Razvan Crainea
OpenSIPS Developer




More information about the Devel mailing list