<div dir="auto">Actually, he is using the -L option to sngrep, it should be show HEP packets (visualized as SIP packets), if he has done all configs correctly<div dir="auto"><br></div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 2, 2019, 09:39 Răzvan Crainea <<a href="mailto:razvan@opensips.org">razvan@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The configuration should be OK now, but node that sngrep will not show <br>
the messages, as they are not SIP messages: they are HEP messages that <br>
contain SIP payload. You can try to trace using tcpdump or something, <br>
or, if you want see SIP messages, you should have a SIP trace_id[1]:<br>
<br>
modparam("tracer", "trace_id", "[tid]uri=sip:<a href="http://10.62.1.252:9061" rel="noreferrer noreferrer" target="_blank">10.62.1.252:9061</a>")<br>
<br>
[1] <a href="https://opensips.org/html/docs/modules/3.0.x/tracer.html#func_trace" rel="noreferrer noreferrer" target="_blank">https://opensips.org/html/docs/modules/3.0.x/tracer.html#func_trace</a><br>
<br>
Best regards,<br>
Răzvan<br>
<br>
On 11/28/19 11:20 AM, info wrote:<br>
> Hi,<br>
> <br>
> Thanks your reply, no hep packets are sent…<br>
> <br>
> loadmodule "proto_hep.so"<br>
> <br>
> listen = hep_udp:<a href="http://10.62.1.252:9060" rel="noreferrer noreferrer" target="_blank">10.62.1.252:9060</a><br>
> <br>
> modparam("proto_hep", "hep_id", "[hep_dst] <a href="http://10.62.1.252:9061" rel="noreferrer noreferrer" target="_blank">10.62.1.252:9061</a>; version=2")<br>
> <br>
> loadmodule "tracer.so"<br>
> <br>
> modparam("tracer", "trace_on", 1)<br>
> <br>
> modparam("tracer", "trace_id", "[tid]uri=hep:hep_dst")<br>
> <br>
> ####### Routing Logic ########<br>
> <br>
> # main request routing logic<br>
> <br>
> route{<br>
> <br>
> if(!is_method("OPTIONS") ) {<br>
> <br>
> trace("tid");<br>
> <br>
> }<br>
> <br>
> …..<br>
> <br>
> And nothing in the log…<br>
> <br>
> Thanks<br>
> <br>
> *De : *Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank" rel="noreferrer">users-bounces@lists.opensips.org</a>> au nom de Giovanni <br>
> Maruzzelli <<a href="mailto:gmaruzz@gmail.com" target="_blank" rel="noreferrer">gmaruzz@gmail.com</a>><br>
> *Répondre à : *"<a href="mailto:gmaruzz@opentelecom.it" target="_blank" rel="noreferrer">gmaruzz@opentelecom.it</a>" <<a href="mailto:gmaruzz@opentelecom.it" target="_blank" rel="noreferrer">gmaruzz@opentelecom.it</a>>, <br>
> OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank" rel="noreferrer">users@lists.opensips.org</a>><br>
> *Date : *mardi 26 novembre 2019 à 21:46<br>
> *À : *OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank" rel="noreferrer">users@lists.opensips.org</a>><br>
> *Objet : *Re: [OpenSIPS-Users] Opensips 3 & HEP<br>
> <br>
> On Tue, Nov 26, 2019 at 5:12 PM info <<a href="mailto:info@byphone.eu" target="_blank" rel="noreferrer">info@byphone.eu</a> <br>
> <mailto:<a href="mailto:info@byphone.eu" target="_blank" rel="noreferrer">info@byphone.eu</a>>> wrote:<br>
> <br>
> Hello,<br>
> <br>
> I setup an opensips 3 with tls, I want to be able to easily<br>
> troubleshot sip registrations, so I setup hep destination :<br>
> <br>
> loadmodule "proto_hep.so"<br>
> <br>
> listen = hep_udp:<a href="http://10.62.1.252:9060" rel="noreferrer noreferrer" target="_blank">10.62.1.252:9060</a> <<a href="http://10.62.1.252:9060" rel="noreferrer noreferrer" target="_blank">http://10.62.1.252:9060</a>><br>
> <br>
> modparam("proto_hep", "hep_id", "[hep_dst] <a href="http://10.62.1.252:9061" rel="noreferrer noreferrer" target="_blank">10.62.1.252:9061</a><br>
> <<a href="http://10.62.1.252:9061" rel="noreferrer noreferrer" target="_blank">http://10.62.1.252:9061</a>>; version=2")<br>
> <br>
> modparam("proto_tls", "trace_destination", "hep_dst")<br>
> <br>
> modparam("proto_tls", "trace_on", 1)<br>
> <br>
> You only do half part, you must actually trace too...<br>
> <br>
> You want to add to your config something like this:<br>
> <br>
> #### tracer module<br>
> loadmodule "tracer.so"<br>
> modparam("tracer", "trace_on", 1)<br>
> modparam("tracer", "trace_id", "[tid]uri=hep:hep_dst")<br>
> <br>
> ......<br>
> <br>
> #########################################################<br>
> ######### only initial requests from this point #########<br>
> #########################################################<br>
> <br>
> t_check_trans();<br>
> <br>
> #Duplicate this sip dialog to sngrep<br>
> if(!is_method("OPTIONS") ) {<br>
> trace("tid");<br>
> }<br>
> <br>
> I have nothing with sngrep with the command :<br>
> <br>
> sngrep -L udp:<a href="http://10.62.1.252:9061" rel="noreferrer noreferrer" target="_blank">10.62.1.252:9061</a> <<a href="http://10.62.1.252:9061" rel="noreferrer noreferrer" target="_blank">http://10.62.1.252:9061</a>><br>
> <br>
> and when I do a tcpdump on port 9061, I have no traffic even in the<br>
> case of registration with tls.<br>
> <br>
> Any idea ?<br>
> <br>
> Best regards<br>
> <br>
> Guillaume<br>
> <br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank" rel="noreferrer">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank" rel="noreferrer">Users@lists.opensips.org</a>><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
> <br>
> <br>
> <br>
> -- <br>
> <br>
> Sincerely,<br>
> <br>
> Giovanni Maruzzelli<br>
> OpenTelecom.IT<br>
> cell: +39 347 266 56 18<br>
> <br>
> <br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank" rel="noreferrer">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
> <br>
<br>
-- <br>
Răzvan Crainea<br>
OpenSIPS Core Developer<br>
<a href="http://www.opensips-solutions.com" rel="noreferrer noreferrer" target="_blank">http://www.opensips-solutions.com</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank" rel="noreferrer">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>