is Homer Capture Agent 4 hep protocol incompatible with Kamalio 3.3 sipcapture module? in captagent.xml i set core_hep.conf version to 2, but looks like kamailio is not able to parse the messages:
Oct 5 12:40:18 siika sip-proxy[6779]: INFO: <core> [parser/parse_fline.c:145]: ERROR:parse_first_line: method not followed by SP Oct 5 12:40:18 siika sip-proxy[6779]: INFO: <core> [parser/parse_fline.c:242]: ERROR:parse_first_line: bad message Oct 5 12:40:18 siika sip-proxy[6779]: ERROR: <core> [parser/msg_parser.c:705]: ERROR: parse_msg: message=<#002#020#002#006#023ij��bg#012�bg#012#002�nP#037#035#010> Oct 5 12:40:18 siika sip-proxy[6779]: ERROR: <core> [receive.c:146]: ERROR: receive_msg: parse_msg failed
in kamailio config i have
modparam("sipcapture", "capture_on", 1) modparam("sipcapture", "hep_capture_on", 1)
-- juha
Hello Juha,
yes, it's compatible with version 1 or 2. Your captagent config must looks like this:
<configuration name="core_hep.conf" description="HEP Socket">
<settings> <param name="version" value="2"/> <param name="capture-host" value="10.0.0.1"/> <param name="capture-port" value="9060"/> <param name="capture-proto" value="udp"/> <param name="capture-id" value="2001"/> <param name="capture-password" value="myHep"/> </settings> </configuration>
can you show your kamailio config ? I think there are some issues...
Wbr,
Alexandr
2012/10/5 Juha Heinanen jh@tutpro.com
is Homer Capture Agent 4 hep protocol incompatible with Kamalio 3.3 sipcapture module? in captagent.xml i set core_hep.conf version to 2, but looks like kamailio is not able to parse the messages:
Oct 5 12:40:18 siika sip-proxy[6779]: INFO: <core> [parser/parse_fline.c:145]: ERROR:parse_first_line: method not followed by SP Oct 5 12:40:18 siika sip-proxy[6779]: INFO: <core> [parser/parse_fline.c:242]: ERROR:parse_first_line: bad message Oct 5 12:40:18 siika sip-proxy[6779]: ERROR: <core> [parser/msg_parser.c:705]: ERROR: parse_msg: message=<#002#020#002#006#023ij��bg#012�bg#012#002�nP#037#035#010> Oct 5 12:40:18 siika sip-proxy[6779]: ERROR: <core> [receive.c:146]: ERROR: receive_msg: parse_msg failed
in kamailio config i have
modparam("sipcapture", "capture_on", 1) modparam("sipcapture", "hep_capture_on", 1)
-- juha
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Alexandr Dubovikov writes:
yes, it's compatible with version 1 or 2. Your captagent config must looks like this:
<configuration name="core_hep.conf" description="HEP Socket">
<settings> <param name="version" value="2"/> <param name="capture-host" value="10.0.0.1"/> <param name="capture-port" value="9060"/> <param name="capture-proto" value="udp"/> <param name="capture-id" value="2001"/> <param name="capture-password" value="myHep"/> </settings>
</configuration>
thanks, i got it working. the only difference was that i had <param name="capture-proto" value="tcp"/>
can you show your kamailio config ? I think there are some issues...
i was using in this test very basic standalone config:
debug=LOG_LEVEL listen=INTERNAL_IP:HEP_PORT
loadpath "/usr/lib/sip-proxy/modules" loadmodule "db_mysql.so" loadmodule "sipcapture.so" loadpath "/usr/lib/sip-proxy/modules_k" loadmodule "pv.so" loadmodule "xlog.so"
modparam("sipcapture", "db_url", "MYSQL_SIP_PROXY_USAGE_URL") modparam("sipcapture", "table_name", "sip_capture") modparam("sipcapture", "capture_node", "CAPTURE_NODE") modparam("sipcapture", "capture_on", 1) modparam("sipcapture", "hep_capture_on", 1)
route { xlog("L_INFO", "Capturing request <$rm>\n"); sip_capture(); drop; }
onreply_route { xlog("L_INFO", "Capturing reply <$rm>\n"); sip_capture(); drop; }
-- juha