|
@@ -89,13 +89,13 @@ header
|
|
|
|
|
|
**$Au** - username for accounting purposes. It's a selective pseudo
|
|
**$Au** - username for accounting purposes. It's a selective pseudo
|
|
variable (inherited from acc module). It returns the auth username and
|
|
variable (inherited from acc module). It returns the auth username and
|
|
-realm ($au@$ar) if exists or From URI ($fu) otherwise.
|
|
|
|
|
|
+realm ($au@$ar) if it exists or From URI ($fu) otherwise.
|
|
|
|
|
|
### $AU - Acc username
|
|
### $AU - Acc username
|
|
|
|
|
|
**$AU** - username for accounting purposes. It's a selective pseudo
|
|
**$AU** - username for accounting purposes. It's a selective pseudo
|
|
variable (inherited from acc module). It returns the auth username ($au)
|
|
variable (inherited from acc module). It returns the auth username ($au)
|
|
-if exists or From user ($fU) otherwise.
|
|
|
|
|
|
+if it exists or From user ($fU) otherwise.
|
|
|
|
|
|
### $branch(name) - Branch attributes
|
|
### $branch(name) - Branch attributes
|
|
|
|
|
|
@@ -122,7 +122,7 @@ The 'name' can be:
|
|
- ruid - return the ruid of the branch (Record internal Unique ID from
|
|
- ruid - return the ruid of the branch (Record internal Unique ID from
|
|
usrloc)
|
|
usrloc)
|
|
|
|
|
|
-The PV can take an index to access a specif branch:
|
|
|
|
|
|
+The PV can take an index to access a specific branch:
|
|
$(branch(name)\[index\])
|
|
$(branch(name)\[index\])
|
|
|
|
|
|
Example:
|
|
Example:
|
|
@@ -184,18 +184,18 @@ configuration file)
|
|
|
|
|
|
### $ci - Call-Id
|
|
### $ci - Call-Id
|
|
|
|
|
|
-**$ci** - reference to body of call-id header
|
|
|
|
|
|
+**$ci** - reference to the value of call-id header
|
|
|
|
|
|
### $cl - Content-Length
|
|
### $cl - Content-Length
|
|
|
|
|
|
-**$cl** - reference to body of content-length header
|
|
|
|
|
|
+**$cl** - reference to the value of content-length header
|
|
|
|
|
|
### $cnt(pv) - Count number of pvs
|
|
### $cnt(pv) - Count number of pvs
|
|
|
|
|
|
**$cnt(avp)** - return the number of avps
|
|
**$cnt(avp)** - return the number of avps
|
|
|
|
|
|
``` c
|
|
``` c
|
|
-xlog("$$avp(x) fount $cnt($avp(x)) times\n");
|
|
|
|
|
|
+xlog("$$avp(x) found $cnt($avp(x)) times\n");
|
|
```
|
|
```
|
|
|
|
|
|
**$cnt(xavp)** - return the number of xavps
|
|
**$cnt(xavp)** - return the number of xavps
|
|
@@ -229,11 +229,11 @@ $rm to get the method (works also for responses).
|
|
|
|
|
|
### $ct - Contact header
|
|
### $ct - Contact header
|
|
|
|
|
|
-**$ct** - reference to body of contact header
|
|
|
|
|
|
+**$ct** - reference to the value of contact header
|
|
|
|
|
|
### $cT - Content-Type
|
|
### $cT - Content-Type
|
|
|
|
|
|
-**$cT** - reference to body of content-type header
|
|
|
|
|
|
+**$cT** - reference to the value of content-type header
|
|
|
|
|
|
### $dd - Domain of destination URI
|
|
### $dd - Domain of destination URI
|
|
|
|
|
|
@@ -370,7 +370,7 @@ xdbg("name for forced send socket: $fsn\n");
|
|
initial request (e.g., initial INVITE).
|
|
initial request (e.g., initial INVITE).
|
|
|
|
|
|
The value From tag in the initial request can be in the To tag, if the
|
|
The value From tag in the initial request can be in the To tag, if the
|
|
-request within the dialog is sent by the callee. This variable detect
|
|
|
|
|
|
+request within the dialog is sent by the callee. This variable detects
|
|
who sent the request within the dialog and returns the proper value that
|
|
who sent the request within the dialog and returns the proper value that
|
|
was in the From tag of the request initiating the dialog.
|
|
was in the From tag of the request initiating the dialog.
|
|
|
|
|
|
@@ -798,7 +798,7 @@ SIP response to the initial request (e.g., 200ok to the initial INVITE).
|
|
|
|
|
|
The value To tag in the initial transaction can be in the From tag, if
|
|
The value To tag in the initial transaction can be in the From tag, if
|
|
the request within the dialog is sent by the callee. This variable
|
|
the request within the dialog is sent by the callee. This variable
|
|
-detect who sent the request within the dialog and returns the proper
|
|
|
|
|
|
+detects who sent the request within the dialog and returns the proper
|
|
value that was in the To tag of the transaction initiating the dialog.
|
|
value that was in the To tag of the transaction initiating the dialog.
|
|
|
|
|
|
It is exported by **rr** module and has to be used after loose_route().
|
|
It is exported by **rr** module and has to be used after loose_route().
|
|
@@ -980,7 +980,7 @@ They work like a stack, similar to AVPs, and are attached to SIP
|
|
transactions and automatically destroyed when the transaction is
|
|
transactions and automatically destroyed when the transaction is
|
|
finished.
|
|
finished.
|
|
|
|
|
|
-Each xavp has a string name and can contain a string, and integer or a
|
|
|
|
|
|
+Each xavp has a string name and can contain a string, an integer or a
|
|
list of named values. The structure name (or root list name) and the
|
|
list of named values. The structure name (or root list name) and the
|
|
value name (or field name, or child value name) are separated by => like
|
|
value name (or field name, or child value name) are separated by => like
|
|
$xavp(root=>field) where "root" is the name of the structure and "field"
|
|
$xavp(root=>field) where "root" is the name of the structure and "field"
|
|
@@ -1213,7 +1213,7 @@ if($var(x)==0) { # this is true
|
|
|
|
|
|
**Note:** A script variable persists over the Kamailio process in which
|
|
**Note:** A script variable persists over the Kamailio process in which
|
|
it was initialized, so be sure of giving it a new value before reading
|
|
it was initialized, so be sure of giving it a new value before reading
|
|
-it or you'll get the value asigned in any other previous message
|
|
|
|
|
|
+it or you'll get the value assigned in any other previous message
|
|
processed by the same Kamailio process (pid).
|
|
processed by the same Kamailio process (pid).
|
|
|
|
|
|
🔥**IMPORTANT**: It is R/W variable (you can assign values to it directly in
|
|
🔥**IMPORTANT**: It is R/W variable (you can assign values to it directly in
|
|
@@ -1934,7 +1934,7 @@ including a custom value at time of assignment.
|
|
|
|
|
|
### $mcinc(key)
|
|
### $mcinc(key)
|
|
|
|
|
|
-Do a atomic increment operation on the value stored in memcached. You
|
|
|
|
|
|
+Do an atomic increment operation on the value stored in memcached. You
|
|
need to add a value previously.
|
|
need to add a value previously.
|
|
|
|
|
|
🔥**IMPORTANT**: It is R/W variable, you can assign values to it directly in
|
|
🔥**IMPORTANT**: It is R/W variable, you can assign values to it directly in
|
|
@@ -1954,7 +1954,7 @@ The “key” can be:
|
|
|
|
|
|
### $mcdec(key)
|
|
### $mcdec(key)
|
|
|
|
|
|
-Do a atomic decrement operation on the value stored in memcached. You
|
|
|
|
|
|
+Do an atomic decrement operation on the value stored in memcached. You
|
|
need to add a value previously.
|
|
need to add a value previously.
|
|
|
|
|
|
🔥**IMPORTANT**: It is R/W variable, you can assign values to it directly in
|
|
🔥**IMPORTANT**: It is R/W variable, you can assign values to it directly in
|
|
@@ -2087,7 +2087,7 @@ Example:
|
|
### $T_reply_ruid
|
|
### $T_reply_ruid
|
|
|
|
|
|
- the ruid stored in the current branch of the transaction. The ruid
|
|
- the ruid stored in the current branch of the transaction. The ruid
|
|
- is stored in a branch from the details in a contact binding. In a
|
|
|
|
|
|
+ is stored in a branch from the details in a contact binding. In an
|
|
event_route\[tm:branch-failure\] block, this is the ruid of the
|
|
event_route\[tm:branch-failure\] block, this is the ruid of the
|
|
branch that sent a failure reply. In a failure_route\[\] block, this
|
|
branch that sent a failure reply. In a failure_route\[\] block, this
|
|
is the ruid of the winning failure response.
|
|
is the ruid of the winning failure response.
|
|
@@ -2173,7 +2173,7 @@ Note: the pair (id_index,id_label) uniquely identifies a transaction.
|
|
|
|
|
|
The **name** can be:
|
|
The **name** can be:
|
|
|
|
|
|
-- flags - Flags of the branch. In a event_route\[tm:branch-failure\]
|
|
|
|
|
|
+- flags - Flags of the branch. In an event_route\[tm:branch-failure\]
|
|
block, this is the flags of the branch that sent a failure reply. In
|
|
block, this is the flags of the branch that sent a failure reply. In
|
|
a failure_route\[\] block, this is the flags of the winning failure
|
|
a failure_route\[\] block, this is the flags of the winning failure
|
|
response.
|
|
response.
|
|
@@ -2276,7 +2276,7 @@ moment is represented by **seconds.microseconds**.
|
|
retrieved)
|
|
retrieved)
|
|
- $TV(Sn) - string representation seconds.microseconds (not cached,
|
|
- $TV(Sn) - string representation seconds.microseconds (not cached,
|
|
taken at that moment)
|
|
taken at that moment)
|
|
-- $TV(Sm) - string representation of a always increasing monotonic
|
|
|
|
|
|
+- $TV(Sm) - string representation of an always increasing monotonic
|
|
counter. Note that even if is based on clock, it starts from an
|
|
counter. Note that even if is based on clock, it starts from an
|
|
unspecified point in time, so should really be treated as an
|
|
unspecified point in time, so should really be treated as an
|
|
opaque counter.
|
|
opaque counter.
|