This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
cookbooks:devel:pseudovariables [2020/01/14 10:39] linuxmaniac [pv_headers module variables] |
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 ===== |