<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>OK, try to enforce UDP as protocol in the definition of the HEP
ID (as TCP is the default):<br>
listen=hep_udp:172.21.253.242:6666<br>
modparam("proto_hep", "hep_id",
"[hid]172.21.253.243;transport=udp")<br>
<br>
A listener is mandatory for any TCP oriented protocol (this is the
way the TCP layer works right now in OpenSIPS).<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
OpenSIPS Summit 2018
<a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
<div class="moz-cite-prefix">On 01/03/2018 06:33 PM, Jeffrey Zhao
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:tencent_54CD8F9A382BE6186E5B6C5A@qq.com">
<div>Dear Bogdan</div>
<div>If I only define UDP HEP listener, I will see errors in log
file like below:</div>
<div>That's the reason why I add a TCP HEP listener.</div>
<div>To be honest, I can't understand why we need to define HEP
listener since opensips send SIP trace to homer as a client.</div>
<div>Thanks.</div>
<div><br>
</div>
<div>
<div>
<div><font color="#0000ff">Jan 3 23:47:14 OpenSIPS12
OpenSIPS12[30056]: ERROR:proto_hep:msg_send: trying to
using proto hep_tcp/9 which is not initialized!</font></div>
<div><font color="#0000ff">Jan 3 23:47:14 OpenSIPS12
OpenSIPS12[30056]: ERROR:proto_hep:send_hep_message:
Cannot send hep message!</font></div>
<div><font color="#0000ff">Jan 3 23:47:14 OpenSIPS12
OpenSIPS12[30056]:
ERROR:siptrace:send_trace_proto_duplicate: failed to
forward message to destination!</font></div>
<div><font color="#0000ff">Jan 3 23:47:14 OpenSIPS12
OpenSIPS12[30056]: ERROR:siptrace:save_siptrace: Failed to
duplicate with hep to <172.21.253.243:9060></font></div>
</div>
<div><br>
</div>
<div style="font-size: 12px;font-family: Arial
Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div>
<div style="font-size: 12px;background:#efefef;padding:8px;">
<div><b>From: </b> "bogdan";<a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org"><bogdan@opensips.org></a>;</div>
<div><b>Date: </b> Jan 4, 2018</div>
<div><b>To: </b> "Jeffrey Zhao"<a class="moz-txt-link-rfc2396E" href="mailto:chunyong.zhao@qq.com"><chunyong.zhao@qq.com></a>;
<wbr></div>
<div><b>Cc: </b> "OpenSIPS users mailling
list"<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a>; <wbr></div>
<div><b>Subject: </b> Re: [OpenSIPS-Users] OpenSIPS 2.3 and
Homer 5 configuration</div>
</div>
<div><br>
</div>
<tt>Hi Jeffrey,</tt><tt><br>
</tt><tt><br>
</tt><tt>If you define only the UDP HEP lis</tt><tt>tener :</tt><tt><br>
</tt><tt> </tt><tt>listen=hep_udp:172.21.253.242:6666</tt><tt><br>
</tt><tt>and use no TCP enforcement int the HEP id defintion<br>
modparam("proto_hep", "hep_id", "[hid]172.21.253.243")<br>
does it still uses TCP for HEP ??<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com" moz-do-not-send="true">http://www.opensips-solutions.com</a>
OpenSIPS Summit 2018
<a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam" moz-do-not-send="true">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
<div class="moz-cite-prefix">On 01/03/2018 06:03 PM, Jeffrey
Zhao wrote:<br>
</div>
<blockquote type="cite"
cite="mid:tencent_113211895B3EE6E93CCED45F@qq.com">
<div>Dear Bogdan</div>
<div>Bingo!!</div>
<div>It works after I add below two lines.</div>
<div>Actually, I realize that if hep listener is not defined,
opensips won't restart normally.</div>
<div><br>
</div>
<div>
<div>listen=hep_udp:172.21.253.242:6666</div>
<div>listen=hep_tcp:172.21.253.242:6666</div>
</div>
<div>
<div><br>
</div>
<div>Now opensips send SIP trace to homer server using TCP.</div>
<div>Is there any config method to send using UDP, or HEP
only use TCP?</div>
<div><br>
</div>
<div>Thanks.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div style="font-size: 12px;font-family: Arial
Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div>
<div style="font-size: 12px;background:#efefef;padding:8px;">
<div><b>From: </b> "bogdan";<a
class="moz-txt-link-rfc2396E"
href="mailto:bogdan@opensips.org"
moz-do-not-send="true"><bogdan@opensips.org></a>;</div>
<div><b>Date: </b> Jan 3, 2018</div>
<div><b>To: </b> "OpenSIPS users mailling list"<a
class="moz-txt-link-rfc2396E"
href="mailto:users@lists.opensips.org"
moz-do-not-send="true"><users@lists.opensips.org></a>;
"Jeffrey Zhao"<a class="moz-txt-link-rfc2396E"
href="mailto:chunyong.zhao@qq.com"
moz-do-not-send="true"><chunyong.zhao@qq.com></a>;
<wbr></div>
<div><b>Subject: </b> Re: [OpenSIPS-Users] OpenSIPS 2.3
and Homer 5 configuration</div>
</div>
<div><br>
</div>
<tt>Hi Jeffrey,<br>
<br>
Do you have a HEP listener configured in your OpenSIPS:<br>
<br>
listen=hep_udp:opensips_IP:some_hep_port <br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com" moz-do-not-send="true">http://www.opensips-solutions.com</a>
OpenSIPS Summit 2018
<a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam" moz-do-not-send="true">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
<div class="moz-cite-prefix">On 01/02/2018 06:55 AM, Jeffrey
Zhao wrote:<br>
</div>
<blockquote type="cite"
cite="mid:tencent_08BD45D6648D05951404D7DB@qq.com">
<div>Dear Sir/Madam</div>
<div>Happy new year!!</div>
<div><br>
</div>
<div>I am trying to configure OpenSIPS 2.3 with Homer 5
using HEP protocol.</div>
<div>Homer is installed using: <a
class="moz-txt-link-freetext"
href="https://github.com/sipcapture/homer-installer/blob/opensips-2.3/homer_installer.sh"
moz-do-not-send="true">https://github.com/sipcapture/homer-installer/blob/opensips-2.3/homer_installer.sh</a></div>
<div><br>
</div>
<div>What I want to achieve is to let OpenSIPS to send
traced SIP message to Homer using HEP protocol, just
like what freeswitch did with Homer.</div>
<div>Is there any document or example I can follow to
complete this target?</div>
<div><br>
</div>
<div>I read and follow the below link to make the
configuration, but obviously it is outdated, and module
parameters in the example is already outdated.</div>
<div><br>
</div>
<div><a class="moz-txt-link-freetext"
href="https://github.com/sipcapture/homer/wiki/Examples%3A-OpenSIPS"
moz-do-not-send="true">https://github.com/sipcapture/homer/wiki/Examples%3A-OpenSIPS</a></div>
<div>Section:<span style=" color: rgb(36, 41, 46); ; ; ; ;
; ; ; font-size: 1.25em; ">OpenSIPs - config for trace
node.</span></div>
<div><br>
</div>
<div>Then, I followed the SIPTrace module document and
configure, but OpenSIPS doesn't try to connect homer.</div>
<div>What am I missing?</div>
<div><br>
</div>
<div>Thank you very much!</div>
<div><br>
</div>
<div>Best Regards.</div>
<div>Jeffrey</div>
<div><br>
</div>
<div>
<div><font color="#0000ff">loadmodule "proto_hep.so"</font></div>
<div><font color="#0000ff">loadmodule "siptrace.so"</font></div>
<div><font color="#0000ff"><br>
</font></div>
<div><font color="#0000ff"><br>
</font></div>
<div><font color="#0000ff">modparam("siptrace",
"trace_on", 1)</font></div>
<div><font color="#0000ff">modparam("proto_hep",
"hep_id", "[hid]172.21.253.243")</font></div>
<div><font color="#0000ff">modparam("siptrace",
"trace_id", "[tid]uri=hep:hid")</font></div>
</div>
<div><font color="#0000ff"><br>
</font></div>
<div>
<div><font color="#0000ff">route{</font></div>
<div><font color="#0000ff"><br>
</font></div>
<div><font color="#0000ff"> $var(trace_id) =
"tid";</font></div>
<div><font color="#0000ff"> $var(user) = <a
class="moz-txt-link-rfc2396E"
href="mailto:osip_user@opensips.org"
moz-do-not-send="true">"osip_user@opensips.org"</a>;</font></div>
<div><font color="#0000ff">
sip_trace("$var(trace_id)", "t", "sip|xlog|rest",
"$var(user)");</font></div>
</div>
<div><font color="#0000ff"><br>
</font></div>
<div><font color="#0000ff"> ......</font></div>
<div>
<div><font color="#0000ff"> if
(is_method("REGISTER"))</font></div>
<div><font color="#0000ff"> {</font></div>
<div><font color="#0000ff"><br>
</font></div>
<div><font color="#0000ff"><br>
</font></div>
<div><font color="#0000ff">
sip_trace("$var(trace_id)", "t", "sip|xlog|rest",
"$var(user)");</font></div>
</div>
<div><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
<br>
</div>
</blockquote>
<br>
</body>
</html>