avpopsStandard-dep AVPops (AVP-operations) modules implements a set of script functions which allow access and manipulation of user AVPs (preferences). AVPs are a powerful tool for implementing services/preferences per user/domain. Now they are usable directly from configuration script. Functions for interfacing DB resources (loading/storing/removing), functions for swapping information between AVPs and SIP messages, function for testing/checking the value of an AVP. Ramona-Elena Modroiu Copyright © 2004 Voice Sistem
AVPops (AVP-operations) modules implements a set of script functions which allow access and manipulation of user AVPs (preferences). AVPs are a powerful tool for implementing services/preferences per user/domain. Now they are usable directly from configuration script. Functions for interfacing DB resources (loading/storing/removing), functions for swapping information between AVPs and SIP messages, function for testing/checking the value of an AVP. An up-to-date tutorial providing more information (detailed explanations and commented examples) can be found on Voice Sistem documentation web page at http://voice-system.ro/docs/avpops. DB URL for database connection. This parameter is optional, it's default value being NULL. DB table to be used. This parameter is optional, it's default value being NULL. Contains a multiple definition of aliases for AVP names. This parameter is optional. If the domain part of the an URIi should be used for identifying an AVP in DB operations. Default value is 0 (no). Name of column containing the uid (unique user id). Default value is "uid". Name of column containing the username. Default value is "username". Name of column containing the domain name. Default value is "domain". Name of column containing the attribute name (AVP name). Default value is "attribute". Name of column containing the AVP value. Default value is "value". Name of column containing the AVP type. Default value is "type". Loads from DB into memory the AVPs corresponding to the given source. Meaning of the parameters is as follows:
Stores to DB the AVPs corresponding to the given source. The meaning and usage of the parameters are identical as for avp_db_load(source,name) function. Please refer to its description. Deletes from DB the AVPs corresponding to the given source. The meaning and usage of the parameters are identical as for avp_db_load(source,name) function. Please refer to its description. The function writes some value (given) or some information from the SIP message into a new AVP. Meaning of the parameters is as follows:
Deletes from memory the AVPs with name or, if empty, all AVPs. Meaning of the parameters is as follows:
Pushes the value of AVP(s) into the SIP message. Meaning of the parameters is as follows:
Checks the value of the AVP(s) against an operator and value. Meaning of the parameters is as follows:
Copy / move an AVP under a new name. Meaning of the parameters is as follows:
Check if any AVP with name is set. Meaning of the parameters is as follows:
|
Navigation |
||||||||||||||||