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 revisionPrevious revision
Next revisionBoth sides next revision
cookbooks:devel:pseudovariables [2020/01/14 09:39] – [pv_headers module variables] linuxmaniaccookbooks:devel:pseudovariables [2020/01/22 12:23] – [$sndto(name)] miconda
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 =====
cookbooks/devel/pseudovariables.txt · Last modified: 2022/04/11 13:24 by henningw

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki