This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cookbooks:devel:pseudovariables [2020/01/14 10:32] linuxmaniac [tcpops module variable] |
cookbooks:devel:pseudovariables [2020/01/22 13:23] miconda [$sndto(name)] |
||
---|---|---|---|
Line 993: | Line 993: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | ===== SIPDUMP Module ===== | ||
+ | |||
+ | ==== $sipdump(name) ==== | ||
+ | |||
+ | **$sipdump(name)** - return attributes of the message handled in the event_route[sipdump: | ||
+ | |||
+ | 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: | ||
+ | if($sipdump(len) > 1024) { | ||
+ | ... | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
===== Benchmark module Pseudo-Variables ===== | ===== Benchmark module Pseudo-Variables ===== | ||
Line 2198: | Line 2228: | ||
===== pv_headers module variables ===== | ===== pv_headers module variables ===== | ||
- | * $x_hdr | + | * $x_hdr(// |
- | * $x_fu | + | * $x_fu: Full From header |
- | * $x_fU | + | * $x_fU: From header user part |
- | * $x_fd | + | * $x_fd: From header domain part |
- | * $x_fn | + | * $x_fn: From header Display Name part |
- | * $x_ft | + | * $x_ft: From header Tag |
- | * $x_tu | + | * $x_tu: Full To header |
- | * $x_tU | + | * $x_tU: To header user part |
- | * $x_td | + | * $x_td: To header domain part |
- | * $x_tn | + | * $x_tn: To header Display Name part |
- | * $x_tt | + | * $x_tt: To header Tag |
- | * $x_rs | + | * $x_rs: |
- | * $x_rr | + | * $x_rr: |
===== $C(xy) - Foreground and background colors ===== | ===== $C(xy) - Foreground and background colors ===== |