<div dir="ltr"><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px 0px 1.25em;color:rgb(55,65,81);font-family:Söhne,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:16px;background-color:rgb(247,247,248)">If you're not seeing any packets received on the Homer server, there could be several reasons for this issue. Let's go through some troubleshooting steps:</p><ol style="border:0px solid rgb(217,217,227);box-sizing:border-box;list-style:none;margin:1.25em 0px;padding:0px;display:flex;color:rgb(55,65,81);font-family:Söhne,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:16px;background-color:rgb(247,247,248)"><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin-bottom:0px;margin-top:0px;padding-left:0.375em;display:block;min-height:28px"><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px"><span style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-weight:600">Check Network Connectivity</span>:</p><ul style="border:0px solid rgb(217,217,227);box-sizing:border-box;list-style:disc;margin:0px 0px 0px 1rem;padding:0px;display:flex"><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px;padding-left:0.375em;display:block;min-height:28px">Ensure that there is network connectivity between your OpenSIPS server and the Homer server. You should be able to ping the Homer server from the OpenSIPS server.</li></ul></li><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin-bottom:0px;margin-top:0px;padding-left:0.375em;display:block;min-height:28px"><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px"><span style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-weight:600">Homer Server Configuration</span>:</p><ul style="border:0px solid rgb(217,217,227);box-sizing:border-box;list-style:disc;margin:0px 0px 0px 1rem;padding:0px;display:flex"><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px;padding-left:0.375em;display:block;min-height:28px">Verify that your Homer server is correctly configured to receive HEP packets on the specified IP and port (in this case, <a href="http://127.0.0.1:6061">127.0.0.1:6061</a>). Check Homer's logs for any incoming connection attempts or errors.</li></ul></li><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin-bottom:0px;margin-top:0px;padding-left:0.375em;display:block;min-height:28px"><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px"><span style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-weight:600">Socket Configuration</span>:</p><ul style="border:0px solid rgb(217,217,227);box-sizing:border-box;list-style:disc;margin:0px 0px 0px 1rem;padding:0px;display:flex"><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px;padding-left:0.375em;display:block;min-height:28px">It seems you are using 127.0.0.1 as the IP address in your socket configuration (<code style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-size:0.875em;font-weight:600;font-family:"S\0000f6hne Mono",Monaco,"Andale Mono","Ubuntu Mono",monospace">socket=hep_udp:<a href="http://127.0.0.1:6061">127.0.0.1:6061</a></code>). This means OpenSIPS will send HEP packets to localhost (the same server it's running on). Ensure that this is the correct configuration. If Homer is on a different server, you should use the Homer server's IP address instead.</li></ul></li><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin-bottom:0px;margin-top:0px;padding-left:0.375em;display:block;min-height:28px"><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px"><span style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-weight:600">Firewall and Security Rules</span>:</p><ul style="border:0px solid rgb(217,217,227);box-sizing:border-box;list-style:disc;margin:0px 0px 0px 1rem;padding:0px;display:flex"><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px;padding-left:0.375em;display:block;min-height:28px">Make sure that there are no firewall rules or security policies blocking traffic on the specified HEP port (6061) or the network interface being used for communication.</li></ul></li><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin-bottom:0px;margin-top:0px;padding-left:0.375em;display:block;min-height:28px"><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px"><span style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-weight:600">Logging and Debugging</span>:</p><ul style="border:0px solid rgb(217,217,227);box-sizing:border-box;list-style:disc;margin:0px 0px 0px 1rem;padding:0px;display:flex"><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px;padding-left:0.375em;display:block;min-height:28px">Enable verbose logging in OpenSIPS to see if there are any error messages related to HEP. You can do this by setting the <code style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-size:0.875em;font-weight:600;font-family:"S\0000f6hne Mono",Monaco,"Andale Mono","Ubuntu Mono",monospace">log_level</code> parameter in your OpenSIPS configuration file.</li></ul><pre style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-size:0.875em;margin-top:0px;margin-bottom:0px;background-color:transparent;border-radius:0.375rem;color:currentcolor;line-height:1.71429;overflow-x:auto;padding:0px;font-family:"S\0000f6hne Mono",Monaco,"Andale Mono","Ubuntu Mono",monospace"><div class="gmail-bg-black gmail-rounded-md gmail-mb-4" style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin-bottom:1rem;border-radius:0.375rem"><div class="gmail-flex gmail-items-center gmail-relative gmail-text-gray-200 gmail-bg-gray-800 gmail-px-4 gmail-py-2 gmail-text-xs gmail-font-sans gmail-justify-between gmail-rounded-t-md" style="border:0px solid rgb(217,217,227);box-sizing:border-box;display:flex;border-top-left-radius:0.375rem;border-top-right-radius:0.375rem;padding:0.5rem 1rem;font-family:Söhne,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:0.75rem;line-height:1rem"><span style="border:0px solid rgb(217,217,227);box-sizing:border-box">cfg</span><button class="gmail-flex gmail-ml-auto gmail-gizmo:ml-0 gmail-gap-2" style="border-width:0px;border-style:solid;border-color:rgb(217,217,227);font-family:inherit;font-size:12px;font-weight:inherit;line-height:inherit;margin:0px 0px 0px auto;padding:0px;background-image:none;display:flex">Copy code</button></div><div class="gmail-p-4 gmail-overflow-y-auto" style="border:0px solid rgb(217,217,227);box-sizing:border-box;overflow-y:auto;padding:1rem"><code class="gmail-!whitespace-pre gmail-hljs gmail-language-cfg" style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-family:inherit;font-size:inherit;color:rgb(255,255,255);font-weight:inherit;background:none;border-radius:0.3em;line-height:1.5;padding:0.1em;white-space:normal;word-break:normal;word-spacing:normal">modparam("log", "log_level", 3)
</code></div></div></pre><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px">This will increase the logging verbosity, and you can check the OpenSIPS logs for any relevant error messages.</p></li><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin-bottom:0px;margin-top:0px;padding-left:0.375em;display:block;min-height:28px"><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px"><span style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-weight:600">Verify Route Execution</span>:</p><ul style="border:0px solid rgb(217,217,227);box-sizing:border-box;list-style:disc;margin:0px 0px 0px 1rem;padding:0px;display:flex"><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px;padding-left:0.375em;display:block;min-height:28px">Ensure that your <code style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-size:0.875em;font-weight:600;font-family:"S\0000f6hne Mono",Monaco,"Andale Mono","Ubuntu Mono",monospace">route[to_homer]</code> block is being executed when you expect it to. You can add additional log messages in this block to verify that it's being triggered.</li></ul></li><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin-bottom:0px;margin-top:0px;padding-left:0.375em;display:block;min-height:28px"><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px"><span style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-weight:600">Check HEP Configuration</span>:</p><ul style="border:0px solid rgb(217,217,227);box-sizing:border-box;list-style:disc;margin:0px 0px 0px 1rem;padding:0px;display:flex"><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px;padding-left:0.375em;display:block;min-height:28px">Review your HEP configuration parameters, such as <code style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-size:0.875em;font-weight:600;font-family:"S\0000f6hne Mono",Monaco,"Andale Mono","Ubuntu Mono",monospace">hep_id</code> and <code style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-size:0.875em;font-weight:600;font-family:"S\0000f6hne Mono",Monaco,"Andale Mono","Ubuntu Mono",monospace">trace_id</code>, to ensure they are correctly set. Make sure they match the configuration on the Homer server.</li></ul></li><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin-bottom:0px;margin-top:0px;padding-left:0.375em;display:block;min-height:28px"><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px"><span style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-weight:600">Firewall on Homer Server</span>:</p><ul style="border:0px solid rgb(217,217,227);box-sizing:border-box;list-style:disc;margin:0px 0px 0px 1rem;padding:0px;display:flex"><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px;padding-left:0.375em;display:block;min-height:28px">Check if there is any firewall or security software running on the Homer server that might be blocking incoming HEP packets.</li></ul></li><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin-bottom:0px;margin-top:0px;padding-left:0.375em;display:block;min-height:28px"><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px"><span style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-weight:600">Homer Server Logs</span>:</p><ul style="border:0px solid rgb(217,217,227);box-sizing:border-box;list-style:disc;margin:0px 0px 0px 1rem;padding:0px;display:flex"><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px;padding-left:0.375em;display:block;min-height:28px">Examine the logs on your Homer server to see if there are any error messages or indications of failed connections.</li></ul></li><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin-bottom:0px;margin-top:0px;padding-left:0.375em;display:block;min-height:28px"><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px"><span style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-weight:600">Packet Capture</span>:</p><ul style="border:0px solid rgb(217,217,227);box-sizing:border-box;list-style:disc;margin:0px 0px 0px 1rem;padding:0px;display:flex"><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px;padding-left:0.375em;display:block;min-height:28px">You can use tools like Wireshark to capture network traffic on the OpenSIPS server and check if the HEP packets are actually being sent. This can help you confirm whether the issue is with OpenSIPS or the network.</li></ul></li></ol><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:1.25em 0px 0px;color:rgb(55,65,81);font-family:Söhne,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:16px;background-color:rgb(247,247,248)">By systematically going through these troubleshooting steps, you should be able to identify the root cause of why OpenSIPS is not sending HEP packets to your Homer server. Remember to make configuration adjustments as needed to match your specific network setup and requirements.</p></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op ma 25 sep 2023 om 22:34 schreef Vincent Horst via Users <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi All, <div><br></div><div>I have a issue where opensips is not sending the hep files towards homer. </div><div>I have used a manual and have add below to the .cfg file. </div><div> </div><div>Sockets: (It is unclear for my why I should put here the local adres, when I put the remote IP of homer, I get an error in the config: <br>socket=hep_udp:<a href="http://127.0.0.1:6061" target="_blank">127.0.0.1:6061</a><br>socket=hep_tcp:<a href="http://127.0.0.1:6061" target="_blank">127.0.0.1:6061</a><br></div><div>If I remove them from the config the hep module gives an error.</div><div><br></div><div>Second part in the .cfg: <br>### Configure an HEP Endpoint<br>loadmodule "proto_hep.so"<br>modparam("proto_hep", "hep_id", "[hid]10.0.0.216:9060;transport=udp;version=3")<br>#### Configure Tracer module to use the HEP Protocol instance id [hid]<br>loadmodule "tracer.so"<br>modparam("tracer", "trace_on", 1)<br>modparam("tracer", "trace_id", "[tid]uri=hep:hid")<br><br>And then the third part,<br>I noticed that it make no different when I put it above in the route logic or below.<br></div><div><br></div><div>route[to_homer] {<br>$var(trace_id) = "tid";<br>if (!has_totag()) {<br>if (is_method("INVITE")) { $var(trace_type) = "dialog"; }<br>else if (!is_method("CANCEL")) { $var(trace_type) = "transaction"; }<br>} else { $var(trace_type) = NULL; }<br>switch ($var(trace_type)) {<br>case "dialog":<br>trace("$var(trace_id)", "d", "sip|xlog|rest");<br>break;<br>case "transaction":<br>trace("$var(trace_id)", "t", "sip|xlog");<br>break;<br>}<br>}<br></div><div><br></div><div>I'm not getting an error, but I'm also not seeing any packets received on the homer server. </div><div>Can someone point me in the right direction or explain how I can add details to trouble shoot? </div><div><br></div><div>Cheers,</div><div>Vincent </div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>