User Tools

Site Tools


cookbooks:devel:selects

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:devel:selects [2013/03/02 23:25]
miconda
cookbooks:devel:selects [2019/10/10 14:55]
miconda
Line 1: Line 1:
-====== Kamailio SIP Server v4.1.x (devel): Selects Variables ======+====== Kamailio SIP Server v5.4.x (devel): Selects Variables ======
  
 The **select** is a READ-ONLY "function", that helps to get direct access to some parts of SIP message within the script (like @to, @cseg.method, @msg["P-anyheader-youwant"]), but generally it could be seen as a function with a certain number of parameters that returns a string. The **select** is a READ-ONLY "function", that helps to get direct access to some parts of SIP message within the script (like @to, @cseg.method, @msg["P-anyheader-youwant"]), but generally it could be seen as a function with a certain number of parameters that returns a string.
 +
 +Selects are available via pseudo-variable $sel(...), respectively **@name** corresponds to **$sel(name)**.
  
 Each module can extend the syntax the select framework understands by registering its own select table. Look at the TLS module or db_ops as good samples. Each module can extend the syntax the select framework understands by registering its own select table. Look at the TLS module or db_ops as good samples.
Line 41: Line 43:
  
 Select handling To header. Select handling To header.
 +
 +==== sys ====
 +
 +Select handling system values
  
 ==== via ==== ==== via ====
Line 2365: Line 2371:
 Exported by: tls Exported by: tls
  
 +==== @tls.my.subject.uid ====
 +
 +Exported by: tls
 +
 +==== @tls.my.subject.uniqueIdentifier ====
 +
 +Exported by: tls
 +
 +==== @tls.my.subject.unique_identifier ====
 +
 +Exported by: tls
  
 ==== @tls.my.uri ==== ==== @tls.my.uri ====
Line 3362: Line 3379:
  
 ==== @tls.peer.subject.unit ==== ==== @tls.peer.subject.unit ====
 +
 +Exported by: tls
 +
 +==== @tls.peer.subject.uid ====
 +
 +Exported by: tls
 +
 +==== @tls.peer.subject.uniqueIdentifier ====
 +
 +Exported by: tls
 +
 +==== @tls.peer.subject.unique_identifier ====
  
 Exported by: tls Exported by: tls
Line 3460: Line 3489:
 Exported by: core Exported by: core
  
 +==== @sys.now ====
 +
 +Exported by: core
 +
 +==== @sys.pid ====
 +
 +Exported by: core
 +
 +==== @sys.unique ====
 +
 +Exported by: core
 +
 +==== @sys.now.utc ====
 +
 +Exported by: core
 +
 +==== @sys.now.gmt ====
 +
 +Exported by: core
 +
 +==== @sys.now.local ====
 +
 +Exported by: core
  
 ==== @v ==== ==== @v ====
cookbooks/devel/selects.txt ยท Last modified: 2021/04/27 09:39 by miconda