User Tools

Site Tools


cookbooks:5.3.x:pseudovariables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
cookbooks:5.3.x:pseudovariables [2019/11/15 14:59]
giavac [Other read-only variables]
cookbooks:5.3.x:pseudovariables [2020/01/15 18:38]
mbungalski
Line 12: Line 12:
 Pseudo-Variables are implemented by various modules, most of them are provided by **pv** (if there is no special reference to a module, expect that the pseudo-variable is provided by **pv** module). Pseudo-Variables are implemented by various modules, most of them are provided by **pv** (if there is no special reference to a module, expect that the pseudo-variable is provided by **pv** module).
  
-===== Pseudo-variables usage ===== 
  
 +
 +===== Pseudo-variables usage =====
  
 Pseudo-variables can be used with many modules, among them: Pseudo-variables can be used with many modules, among them:
Line 447: Line 448:
  
 **$ru** - reference to request's URI (address in the first line of a SIP request) **$ru** - reference to request's URI (address in the first line of a SIP request)
 +
 +INVITE <fc #ff0000>**sip:+49423156789@example.de;user=phone**</fc> SIP/2.0
  
 <fc #0000ff>It is R/W variable (you can assign values to it directly in configuration file)</fc> <fc #0000ff>It is R/W variable (you can assign values to it directly in configuration file)</fc>
 +
  
 ==== $rU - Username in R-URI ==== ==== $rU - Username in R-URI ====
  
 **$rU** - reference to username in request's URI or to the Namespace Identifier of a URN (see RFC 2141) **$rU** - reference to username in request's URI or to the Namespace Identifier of a URN (see RFC 2141)
 +
 +INVITE sip:<fc #ff0000>**+49423156789**</fc>@example.de;user=phone SIP/2.0
  
 <fc #0000ff>It is R/W variable (you can assign values to it directly in configuration file)</fc> <fc #0000ff>It is R/W variable (you can assign values to it directly in configuration file)</fc>
 +
  
 ==== $rv - SIP message version ==== ==== $rv - SIP message version ====
Line 575: Line 582:
  
 **$tn** - reference to display name of 'To' header **$tn** - reference to display name of 'To' header
 +
 +To: "<fc #ff0000>**Bob**</fc>" <sip:+4942315678@example.de;user=phone>
  
 ==== $tt - To tag ==== ==== $tt - To tag ====
Line 590: Line 599:
  
 **$tu** - reference to URI of 'To' header **$tu** - reference to URI of 'To' header
 +
 +To: "Bob" <sip:<fc #ff0000>**+4942315678@example.de;user=phone**</fc>>
  
 ==== $tU - To URI Username ==== ==== $tU - To URI Username ====
  
 **$tU** - reference to username in URI of 'To' header **$tU** - reference to username in URI of 'To' header
 +
 +To: "Bob" <sip:<fc #ff0000>**+4942315678**</fc>@example.de;user=phone>
  
 ==== $Tb - Startup timestamp ==== ==== $Tb - Startup timestamp ====
Line 1356: Line 1369:
 The $http_req(key) write-only variable can be used to set custom parameters before sending a HTTP query. The $http_req(key) write-only variable can be used to set custom parameters before sending a HTTP query.
  
-key can be one of:+**key** can be one of:
   * all: if set to $null, resets all the parameters to their default value (the ones defined in modparam)   * all: if set to $null, resets all the parameters to their default value (the ones defined in modparam)
   * hdr: sets/modifies/removes a HTTP header. N.B.: setting this variable multiple times will add several headers to the query.   * hdr: sets/modifies/removes a HTTP header. N.B.: setting this variable multiple times will add several headers to the query.
Line 1365: Line 1378:
   * tls_client_key: sets the client certificate key to use   * tls_client_key: sets the client certificate key to use
   * tls_ca_path: sets the CA certificate path to use   * tls_ca_path: sets the CA certificate path to use
-  * authmethod: Sets the preferred authentication mode for HTTP/HTTPS requests. The value is a bitmap and multiple methods can be used. Note that in this case, the CURL library will make an extra request to discover server-supported authentication methods. You may want to use a specific value. +  * authmethod: Sets the preferred authentication mode for HTTP/HTTPS requests. The value is a bitmap and multiple methods can be used. Note that in this case, the CURL library will make an extra request to discover server-supported authentication methods. You may want to use a specific value. Valid values are: 
- +      * 1 - BASIC authentication 
-Valid values are: +      * 2 - HTTP Digest authentication 
-    * 1 - BASIC authentication +      * 4 - GSS-Negotiate authentication 
-    * 2 - HTTP Digest authentication +      * 8 - NTLM authentication 
-    * 4 - GSS-Negotiate authentication +      * 16 - HTTP Digest with IE flavour. 
-    * 8 - NTLM authentication +      * (Default value is 3 - BASIC and Digest authentication.)
-    * 16 - HTTP Digest with IE flavour +
- +
-Default value is 3 - BASIC and Digest authentication. +
   * username: sets the username to use for authenticated requests   * username: sets the username to use for authenticated requests
   * password: sets the password to use for authenticated requests   * password: sets the password to use for authenticated requests
cookbooks/5.3.x/pseudovariables.txt · Last modified: 2020/04/06 18:09 by pojogas