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
Next revision Both sides next revision
cookbooks:devel:pseudovariables [2019/11/29 01:22]
jih
cookbooks:devel:pseudovariables [2020/01/22 13:23]
miconda [$sndto(name)]
Line 993: Line 993:
 } }
 </code> </code>
 +
 +===== SIPDUMP Module =====
 +
 +==== $sipdump(name) ====
 +
 +**$sipdump(name)** - return attributes of the message handled in the event_route[sipdump:msg].
 +
 +The name can be:
 +
 +  * tag - the tag of processing (rcv or snd)
 +  * buf - entire message buffer as string
 +  * len - length of the message (length of above buf)
 +  * af - address family
 +  * src_ip - source IP address
 +  * dst_ip - destination IP address
 +  * src_port - port of source address
 +  * dst_port - port of source address
 +  * proto - transport protocol
 +
 +Example:
 +
 +<code c>
 +
 +event_route[sipdump:msg] {
 +  if($sipdump(len) > 1024) {
 +    ...
 +  }
 +}
 +</code>
 +
  
 ===== Benchmark module Pseudo-Variables ===== ===== Benchmark module Pseudo-Variables =====
Line 2194: Line 2224:
   * c_sp - connection source port (useful with HAProxy connections)   * c_sp - connection source port (useful with HAProxy connections)
   * conid - connection id   * conid - connection id
 +
 +
 +===== pv_headers module variables =====
 +
 +  * $x_hdr(//header_name//): //header_name// header value
 +  * $x_fu: Full From header
 +  * $x_fU: From header user part
 +  * $x_fd: From header domain part
 +  * $x_fn: From header Display Name part
 +  * $x_ft: From header Tag
 +  * $x_tu: Full To header
 +  * $x_tU: To header user part
 +  * $x_td: To header domain part
 +  * $x_tn: To header Display Name part
 +  * $x_tt: To header Tag
 +  * $x_rs: 
 +  * $x_rr:
  
 ===== $C(xy) - Foreground and background colors ===== ===== $C(xy) - Foreground and background colors =====
cookbooks/devel/pseudovariables.txt ยท Last modified: 2022/04/11 15:24 by henningw