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 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:
 } }
 </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 15:24 by henningw