On 11/26/10 11:27 AM, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
- type of fixup params for allow_trusted()
updated from PVAR to SPVE
- PVAR can be non-zero terminated string
- SPVE accepts also static string or combination of PVs
would it be better to
allow a real expression as a parameter than a
string that embeds variables?
patch was done to overcome the issues reported in the
bug tracker. The
problem was that a pseduo-variable value is str, not always null
terminated, which potentially could bring problems. Few other functions
need to be updated as well.
The new planned module function interface is allowing also expressions
as parameters, when that will be ready, can be practically used.
On another hand, current format is more compact than an expression -- a
mater of admin choice of course.
Cheers,
Daniel
--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
http://www.asipto.com