It was not my fix :-)Hi Alex,
Thank you for the fix. Just upgraded to Kamailio 3.3 and now Kamailio starts without the previous error. Can this be backported to version 3.2?
Bu the problem is still not solved. Although Kamailio starts, I get now a runtime error.ERROR: sipcapture [sipcapture.c:675]: ERROR: sipcapture:hep_msg_received: unsupported family [71]
This is my config running NODE and AGENT on same server:
--------------------------------modparam("sipcapture", "db_url", "mysql://homer:homer@localhost/homer")modparam("sipcapture", "capture_on", 1)modparam("sipcapture", "capture_node", "homer01")modparam("sipcapture", "hep_capture_on", 1)
modparam("siptrace", "traced_user_avp", "$avp(s:traced_user)")modparam("siptrace", "trace_on", 1)modparam("siptrace", "trace_flag", FLD_TRACE)modparam("siptrace", "duplicate_uri", "sip:127.0.0.1:9060")modparam("siptrace", "hep_mode_on", 1)modparam("siptrace", "trace_to_database", 0)
request_route {...setflag(FLD_TRACE);sip_capture();...}--------------------------------
It seems sipcapture is listening on both eth0 and loopback interfaces, and when it detects packets not encapsulated using HEP on eth0 (requests from SIP clients), it gives the error above.
you can make a trick, check in hep_msg_recieved() a destination port of the receive_info structure
Is there a way to tell sipcapture to bind only on one interface using HEP mode? It seems impossible for now to run NODE and AGENT on the same server using HEP mode...
Thanks for helping.Reda