User Tools

Site Tools


cookbooks:devel: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
cookbooks:devel:pseudovariables [2021/09/10 11:26]
mish_gun Added new PVs for SIPT module
cookbooks:devel:pseudovariables [2021/11/25 19:57] (current)
miconda [$tls(key)]
Line 2056: Line 2056:
  
 ===== TLS Module ===== ===== TLS Module =====
 +
 +==== $tls(key) ====
 +
 +Variables related to TLS communication and certificates.
 +
 +The **key** can be:
 +
 +  * **m_issuer_line** - return local (my) certificate issuer line
 +  * **p_issuer_line** - return remote (peer) certificate issuer line
 +  * **m_subject_line** - return local (my) certificate subject line
 +  * **p_subject_line** - return remote (peer) certificate subject line
 +
 +Example:
 +
 +<code c>
 +if(proto==TLS) {
 +    xinfo("local certificate subject: $tls(m_subject_line)\n");
 +}
 +</code>
  
 ==== $tls_version ==== ==== $tls_version ====
 +
 The TLS/SSL version which is used on the TLS connection from which the message was received. String type. The TLS/SSL version which is used on the TLS connection from which the message was received. String type.
 ==== $tls_description ==== ==== $tls_description ====
Line 2195: Line 2215:
   * $msg(hdrs) - sip message headers   * $msg(hdrs) - sip message headers
   * $msg(fline) - sip message first line   * $msg(fline) - sip message first line
 +
 +===== POSOPS Module =====
 +
 +==== $pos(key) ====
 +
 +Get attributes after a function of the module is executed.
 +
 +The key can be:
 +
 +  * ret - the return code on success or -1
 +  * idx - position inside message buffer, for find/search it is the start of matching
 +  * len - the length of matching string for search functions
  
 ===== XHTTP Module ===== ===== XHTTP Module =====
cookbooks/devel/pseudovariables.1631266009.txt.gz ยท Last modified: 2021/09/10 11:26 by mish_gun