Published on iptel.org (http://www.iptel.org)

avp

By greger
Created 2006-11-26 09:10

Standard-dep

This module contains several functions that can be used to manipulate the contents of AVPs (Attribute-Value pairs). The AVPs are variables attached to the SIP message being processed. Each variable has its name and value. AVPs can be used to store arbitrary data or as a means of inter-module comminication.

Jiri Kuthan
Michal Matyska


jiri@iptel.org [1]>

Michal Matyska

iptel
Revision History
Revision $Revision: 1.3 $ $Date: 2006/05/04 12:20:33 $

i [3] releases the avp module will be probably deprecated in favor of avpops module.

i [4]i [5] of the message being processed with the value of an AVP, or if an uri-part is specified, rewrite only that specific part.

Meaning of the parameter is as follows:

  • $attribute - The name of the AVP.

  • uri-part - The name of the part of the uri that will be rewritten. The supported values are: "prefix", "uri", "username", "user", "usernamepassword", "userpass", "domain", "host", "domainport", "hostport", "port". "prefix" will add the AVP as a prefix to the username (equivalent to prefix("string")). The rest of the uri-part values names are self-explaining.

i [6]; attr_destination("backup_gw"); del_attr("backup_gw"); t_relay(); } } ...

i [7]-Stat/i", "QoS_"); xlog("L_INFO", "QoS: %Ts, %fu, %tu, %ci, %{User-Agent}, %{X-RTP-Stat}\n"); } else if (search("^User-Agent: Sipura/*")) { hdr_body2attrs("P-RTP-Stat/i", "QoS_"); xlog("L_INFO", "QoS: %Ts, %fu, %tu, %ci, %{User-Agent}, %{P-RTP-Stat}\n"); } } # AVP QoS_xx now contain the values from appropriate header # e.g. QoS_JI is jitter

1.3. Parameters

Revision History
Revision $Revision: 1.3 $ $Date: 2006/05/04 12:20:34 $

1.3.1. xlbuf_size (integer)

Defines size of internal buffer for all xlog formatting calls. If you don't use xlog formatting calls, you can set it to 0 to preserve some memory, if you get errors while formatting due to buffer size, you can enlarge it.

Default value is 256.

Example 13. Set xlbuf_size parameter

...
modparam("avp", "xlbuf_size", 1024)
...