On 08/15/05 20:06, Federico Giannici wrote:
I need a way to store somewhere some computed values
relative to sip
messages. That is, I need some kind of "variables"!
I need to access to these "variables" both from a custom SER module
and from the ser.cfg script.
I think that the solution are AVPs.
Am I right?
yes
But I'm a little confused about the many "incarnations" of the AVP.
After looking a little around I have understood that from inside the
module I have to use the functions in "usr_avp.c". Am I right?
Then there are the "avp" and "avpops" modules.
My question is: they all refer to the SAME avps?
yes
Thas is, if I save an avp value by means of
"usr_avp.c", then I can
access the SAME avp by means of "avpops"?
yes
Or they are different and separate implementations?
avp and avpops modules are different and separate implementations in the
meaning of design and features, but both are dealing with usr_avp. The
features of avpops are documented in module's turorial at:
http://www.voice-system.ro/docs/avpops/
Daniel
Thanks.
P.S.
I'm using SER 0.9.3.