I am using the same server, seeing different results for traffic that arrives over UDP compared to TCP.

####### Global Parameters #########

fork=yes
children=8
tcp_children=8

/* uncomment the next line to disable TCP (default on) */
# disable_tcp=yes

/* IP and port for HEP capturing) */
listen=tcp:HOMER_LISTEN_IF:HOMER_LISTEN_PORT
listen=udp:HOMER_LISTEN_IF:HOMER_LISTEN_PORT

tcp_accept_hep3=1
tcp_accept_no_cl=yes
...

####### Routing Logic ########
modparam("sipcapture", "db_url", "mysql://root:****@*****/****")
modparam("sipcapture", "capture_on", 1)
modparam("sipcapture", "hep_capture_on", 1)
modparam("sipcapture", "insert_retries", 5)
modparam("sipcapture", "insert_retry_timeout", 10)
#new event sipcapture socket
modparam("sipcapture", "nonsip_hook", 1)
#modparam("sipcapture", "capture_node", "homer01")
...

route[STORE] {

	$var(a) = $var(table) + "_" + $var(utc);
	sip_capture("$var(a)");
}
...

event_route[sipcapture:request] {

	#Is it SIP ?
	if($hep(0x00b) == 1)
	{
		#Do parsing internal
		return 1;
	}
	else
	{
		#If report lets proceed here with payload
		xlog("HEP CHUNK PAYLOAD $hep(0x00f) request from $si:$sp\n");
		return 0;
	}
}


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.