I'm using captagent 6.4.1 on Debian 11 amd64. I'm using the sip_capture_plan.cfg [1] example provided on the wiki:
capture[pcap] {
# here we can check source/destination IP/port, message size
if(msg_check("size", "100")) {
#Do parsing
if(parse_sip()) {
# Drop unwanted methods
if(sip_check("rmethod","OPTIONS") || sip_check("rmethod","NOTIFY")) {
drop;
}
#Multiple profiles can be defined in transport_hep.xml
if(!send_hep("hepsocket")) {
clog("ERROR", "Error sending HEP!!!!");
}
}
}
drop;
}
With this configuration captagent is still relaying SIP OPTIONS packets to the configured HEP server. Why?