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]>
Copyright © 2004, 2005, 2006 FhG FOKUS, iptelorg GmbH
| 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
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.
http://www.iptel.org/ser/doc/modules/avp
Links:
[1] http://www.iptel.org/mailto:jiri@iptel.org
[2] http://www.iptel.org/mailto:michal@iptel.org
[3] http://www.iptel.org/glossary/term/244
[4] http://www.iptel.org/glossary#term81
[5] http://www.iptel.org/glossary#term80
[6] http://www.iptel.org/glossary#term253
[7] http://www.iptel.org/glossary#term191