<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Flavio,<br>
<br>
how was the original SIP messages generated ? <br>
<br>
Wbr,<br>
Alexandr<br>
<br>
7/10/2013 5:05 PM, Flavio Goncalves wrote:<br>
</div>
<blockquote
cite="mid:CAJkFROy=9OU0uWTcvpa6CQu8o-5dRfsfo1kgO_LFdXOJUnLaWQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Alexander,
<div><br>
</div>
<div style="">I had exactly the same problem. I'm sending to
your email the pcap file. Actually I don't think the problem
is the request. I have inspected the pcap file and seems fine
according to HEP v2. I've changed the source code to force UDP
and it worked fine after that. It is is not a patch, only a
workaround, the root cause is still to be found. </div>
<div style=""><br>
</div>
<div style="">
<div> /* PROTO */</div>
<div> if(heph->hp_p == IPPROTO_UDP)
ri->proto=PROTO_UDP;</div>
<div> else if(heph->hp_p == IPPROTO_TCP)
ri->proto=PROTO_TCP;</div>
<div> else if(heph->hp_p == IPPROTO_IDP)
ri->proto=PROTO_TLS; /* fake protocol */</div>
<div>#ifdef USE_SCTP</div>
<div> else if(heph->hp_p == IPPROTO_SCTP)
ri->proto=PROTO_SCTP;</div>
<div>#endif</div>
<div> else {</div>
<div> //LM_ERR("unknow protocol
[%d]\n",heph->hp_p); /*Workaroud */</div>
<div> ri->proto = PROTO_UDP; / *Workaround
*/</div>
<div> }</div>
<div><br>
</div>
<div style="">The problem seems to be in the IPPROTO_UDP
definition. The message shows:</div>
<div style=""><br>
</div>
<div style="">
ERROR:sipcapture:hep_msg_received: unknow protocol [1]<br>
</div>
<div style=""><br>
</div>
<div style="">Best regards, </div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div>Flavio E. Goncalves</div>
<div><br>
</div>
<div> </div>
</div>
<br>
<br>
<div class="gmail_quote">2013/2/15 Alexandr Dubovikov <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:aduvoip@googlemail.com" target="_blank">aduvoip@googlemail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Seth,<br>
<br>
can you please make tcpdump in pcap format on port 9060
and send it to me ?<br>
<br>
Wbr,<br>
Alexandr<br>
<div class="HOEnZb">
<div class="h5"><br>
-----Original Message-----<br>
From: <a moz-do-not-send="true"
href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a><br>
[mailto:<a moz-do-not-send="true"
href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>]
On Behalf Of Seth Schultz<br>
Sent: Friday, February 15, 2013 8:37 PM<br>
To: OpenSIPS users mailling list<br>
Subject: [OpenSIPS-Users] Sipcapture issue<br>
<br>
Hello,<br>
<br>
I am running into an issue where my sipcapture server
is throwing this error<br>
(using version 1.9.0).<br>
<br>
"ERROR:sipcapture:hep_msg_received: unknow protocol
[1]"<br>
<br>
On my main OpenSIPS server I am using the siptrace
module to duplicate the<br>
messages with HEP to the sipcaptur server. I have
tried using both<br>
hep_version 1 and 2, but both throw the same error.<br>
<br>
Here are my trace server settings:<br>
<br>
modparam("siptrace", "enable_ack_trace", 1)
modparam("siptrace",<br>
"trace_flag", "TRACE") modparam("siptrace",
"trace_on", 1)<br>
modparam("siptrace", "trace_to_database", 0)
modparam("siptrace",<br>
"hep_version", 2) modparam("siptrace",
"hep_capture_id", 338)<br>
modparam("siptrace", "duplicate_uri",
<a class="moz-txt-link-rfc2396E" href="sip:xxx.xxx.xxx.xxx:9060">"sip:xxx.xxx.xxx.xxx:9060"</a>)<br>
modparam("siptrace", "duplicate_with_hep", 1)<br>
<br>
...<br>
<br>
####### Routing Logic ########<br>
<br>
route<br>
{<br>
...<br>
trace_dialog();<br>
...<br>
}<br>
<br>
Here is the script for the capture server:<br>
<br>
debug=3<br>
log_stderror=no<br>
log_facility=LOG_LOCAL0<br>
<br>
fork=yes<br>
children=5<br>
<br>
auto_aliases=no<br>
alias=xxx.xxx.xxx.xxx<br>
<br>
port=9060<br>
listen=udp:xxx.xxx.xxx.xxx:9060<br>
<br>
mpath="/lib64/opensips/modules/"<br>
<br>
loadmodule "db_mysql.so"<br>
loadmodule "sipcapture.so"<br>
<br>
modparam("sipcapture", "db_url",
"mysql://xxx:xxx@localhost/xxx")<br>
modparam("sipcapture", "capture_node", "sipcapture")
modparam("sipcapture",<br>
"capture_on", 1) modparam("sipcapture", "table_name",
"sip_capture")<br>
modparam("sipcapture", "hep_capture_on", 1) ##
undocumented option pulled<br>
from homer site?<br>
<br>
#modparam("sipcapture", "duplicate_with_hep", 1) ##
documentation is wrong,<br>
this throws an error<br>
<br>
####### Routing Logic ########<br>
<br>
route<br>
{<br>
sip_capture();<br>
drop;<br>
}<br>
<br>
onreply_route<br>
{<br>
sip_capture();<br>
drop;<br>
}<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
</body>
</html>