cookbooks:4.2.x:pseudovariables
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cookbooks:4.2.x:pseudovariables [2015/01/09 10:03] – [$du - Destination URI] neuhaus | cookbooks:4.2.x:pseudovariables [2015/06/03 10:07] (current) – $pr / $proto - lowercase sample values mslehto | ||
---|---|---|---|
Line 88: | Line 88: | ||
The ' | The ' | ||
- | * uri - return | + | * uri - return |
- | * dst_uri - return destination | + | * dst_uri - return destination |
* path - return the path vector for the branch | * path - return the path vector for the branch | ||
* q - return the q value of the branch | * q - return the q value of the branch | ||
Line 118: | Line 118: | ||
If index is missing, first branch is used. If index is -1 the last branch is used. | If index is missing, first branch is used. If index is -1 the last branch is used. | ||
- | Assigning $null to uri attribute will drop the branch, for the rest of attributes will just set the value to null. | + | Assigning $null to the uri attribute will drop the branch, for the rest of attributes will just set the value to null. |
<code c> | <code c> | ||
Line 129: | Line 129: | ||
**$br** - reference to request' | **$br** - reference to request' | ||
- | <fc # | + | <fc # |
==== $bR - Request' | ==== $bR - Request' | ||
Line 139: | Line 139: | ||
**$bf** - reference to branch flags of branch 0 (RURI) - decimal output | **$bf** - reference to branch flags of branch 0 (RURI) - decimal output | ||
- | <fc # | + | <fc # |
==== $bF - Branch flags ==== | ==== $bF - Branch flags ==== | ||
**$bF** - reference to branch flags of branch 0 (RURI) - hexa output | **$bF** - reference to branch flags of branch 0 (RURI) - hexa output | ||
- | <fc # | + | <fc # |
==== $bs - Body size ==== | ==== $bs - Body size ==== | ||
Line 184: | Line 184: | ||
==== $dd - Domain of destination URI ==== | ==== $dd - Domain of destination URI ==== | ||
- | **$dd** - reference to domain of destination | + | **$dd** - reference to domain of destination |
Line 205: | Line 205: | ||
==== $dp - Port of destination URI ==== | ==== $dp - Port of destination URI ==== | ||
- | **$dp** - reference to port of destination | + | **$dp** - reference to port of destination |
==== $dP - Transport protocol of destination URI ==== | ==== $dP - Transport protocol of destination URI ==== | ||
- | **$dP** - reference to transport protocol of destination | + | **$dP** - reference to transport protocol of destination |
==== $ds - Destination set ==== | ==== $ds - Destination set ==== | ||
Line 218: | Line 218: | ||
==== $du - Destination URI ==== | ==== $du - Destination URI ==== | ||
- | **$du** - reference to destination | + | **$du** - reference to destination |
- | If loose_route() returns TRUE a destination | + | If loose_route() returns TRUE a destination |
$du is also set if lookup() function of ' | $du is also set if lookup() function of ' | ||
Line 241: | Line 241: | ||
**$fs** - reference to the forced socket for message sending (if any) in the form proto: | **$fs** - reference to the forced socket for message sending (if any) in the form proto: | ||
- | <fc # | + | <fc # |
==== $ft - From tag ==== | ==== $ft - From tag ==== | ||
Line 251: | Line 251: | ||
**$fu** - reference to URI of ' | **$fu** - reference to URI of ' | ||
- | <fc # | + | <fc # |
Note that changing the From: header may break backwards compatibility with SIP 1.0 devices. | Note that changing the From: header may break backwards compatibility with SIP 1.0 devices. | ||
Line 258: | Line 258: | ||
**$fU** - reference to username in URI of ' | **$fU** - reference to username in URI of ' | ||
- | <fc # | + | <fc # |
Note that changing the From: header may break backwards compatibility with SIP 1.0 devices. | Note that changing the From: header may break backwards compatibility with SIP 1.0 devices. | ||
Line 269: | Line 269: | ||
**$mf** - reference to message/ | **$mf** - reference to message/ | ||
- | <fc # | + | <fc # |
==== $mF - Flags in hexadecimal ==== | ==== $mF - Flags in hexadecimal ==== | ||
Line 275: | Line 275: | ||
**$mF** -reference to message/ | **$mF** -reference to message/ | ||
- | <fc # | + | <fc # |
==== $mi - SIP message id ==== | ==== $mi - SIP message id ==== | ||
Line 324: | Line 324: | ||
==== $pr - Protocol of received message ==== | ==== $pr - Protocol of received message ==== | ||
- | **$pr** or **$proto** - protocol of received message (UDP, TCP, TLS, SCTP, WS, WSS) | + | **$pr** or **$proto** - protocol of received message (udp, tcp, tls, sctp, ws, wss) |
==== $pU - User in P-Preferred-Identity header URI ==== | ==== $pU - User in P-Preferred-Identity header URI ==== | ||
Line 338: | Line 338: | ||
**$rd** - reference to domain in request' | **$rd** - reference to domain in request' | ||
- | <fc # | + | <fc # |
==== $rb - Body of request/ | ==== $rb - Body of request/ | ||
Line 370: | Line 370: | ||
**$rp** - reference to port of R-URI | **$rp** - reference to port of R-URI | ||
- | <fc # | + | <fc # |
==== $rP - Protocol of R-URI ==== | ==== $rP - Protocol of R-URI ==== | ||
Line 392: | Line 392: | ||
**$ru** - reference to request' | **$ru** - reference to request' | ||
- | <fc # | + | <fc # |
==== $rU - Username in R-URI ==== | ==== $rU - Username in R-URI ==== | ||
Line 398: | Line 398: | ||
**$rU** - reference to username in request' | **$rU** - reference to username in request' | ||
- | <fc # | + | <fc # |
==== $ruid - Record internal Unique ID ==== | ==== $ruid - Record internal Unique ID ==== | ||
Line 533: | Line 533: | ||
</ | </ | ||
- | It is R/W variable (you can assign values to it directly in configuration file). | + | It is a R/W variable (you can assign values to it directly in configuration file). |
===== $xavp(id) - XAVPs ===== | ===== $xavp(id) - XAVPs ===== | ||
Line 625: | Line 625: | ||
**Note:** A script variable persists over the SIP-Router process in which it was initialized, | **Note:** A script variable persists over the SIP-Router process in which it was initialized, | ||
- | <fc # | + | <fc # |
**pv** module can be used to initialize the script variables. | **pv** module can be used to initialize the script variables. | ||
Line 645: | Line 645: | ||
</ | </ | ||
- | <fc # | + | <fc # |
===== $time(name) - Broken-down time ===== | ===== $time(name) - Broken-down time ===== | ||
Line 758: | Line 758: | ||
* sflags - dialog script flags | * sflags - dialog script flags | ||
* callid - sip call id | * callid - sip call id | ||
- | * to_uri - To uri | + | * to_uri - To URI |
* to_tag - To tag | * to_tag - To tag | ||
- | * from_uri - From uri | + | * from_uri - From URI |
* from_tag - From tag | * from_tag - From tag | ||
* toroute - timeout route | * toroute - timeout route | ||
Line 776: | Line 776: | ||
Return the attribute of the context for current processed dialog. | Return the attribute of the context for current processed dialog. | ||
- | <fc # | + | <fc # |
The ' | The ' | ||
Line 788: | Line 788: | ||
Store and retrieve custom variable for current processed dialog. | Store and retrieve custom variable for current processed dialog. | ||
- | <fc # | + | <fc # |
The ' | The ' | ||
Line 798: | Line 798: | ||
Access hash table entries. | Access hash table entries. | ||
- | <fc # | + | <fc # |
The “htname” must be a hash table name defined via “htable” parameter. | The “htname” must be a hash table name defined via “htable” parameter. | ||
Line 820: | Line 820: | ||
Access hash table entry expire value. Value represents the seconds until the htable entry will expire and be deleted from htable. | Access hash table entry expire value. Value represents the seconds until the htable entry will expire and be deleted from htable. | ||
- | <fc # | + | <fc # |
The “htname” must be a hash table name defined via “htable” parameter and have auto-expire greater than 0. | The “htname” must be a hash table name defined via “htable” parameter and have auto-expire greater than 0. | ||
Line 916: | Line 916: | ||
Access hash table entries stored in the memcached server. | Access hash table entries stored in the memcached server. | ||
- | <fc # | + | <fc # |
The “key” can be: | The “key” can be: | ||
Line 953: | Line 953: | ||
Do a atomic increment operation on the value stored in memcached. You need to add a value previously. | Do a atomic increment operation on the value stored in memcached. You need to add a value previously. | ||
- | <fc # | + | <fc # |
The “key” can be: | The “key” can be: | ||
Line 972: | Line 972: | ||
Do a atomic decrement operation on the value stored in memcached. You need to add a value previously. | Do a atomic decrement operation on the value stored in memcached. You need to add a value previously. | ||
- | <fc # | + | <fc # |
The “key” can be: | The “key” can be: |
cookbooks/4.2.x/pseudovariables.1420797824.txt.gz · Last modified: 2015/01/09 10:03 by neuhaus