<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hello!</tt><tt><br>
    </tt><tt><br>
    </tt><tt>The error is pretty self-explanatory: "</tt><tt>one
      possible reason is the server is bound to localhost and attempts
      to send to the net" - you have the hep bound to localhost and you
      are trying to send messages to an external host - from 127.0.0.1
      you can only communicate with 127.0.0.1. If you want to send to an
      external host, you should use a different interface.</tt><tt><br>
    </tt><tt><br>
    </tt><tt>Best regards,</tt><br>
    <tt></tt>
    <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 11/13/2017 12:20 AM, Social Boh
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:cf8410fa-78ae-7926-97a8-2a8571dd3c50@bohboh.info">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p>In my case don't work... My configuration (OpenSIPs 2.3.2):</p>
      <p>listen=hep_udp:127.0.0.1:6060</p>
      <p>#### PROTO_HEP Module<br>
        loadmodule "proto_hep.so"<br>
        modparam("proto_hep", "hep_id", "[homer] 1.2.3.4:9060;
        version=2")<br>
        modparam("proto_hep", "homer5_on", 1)<br>
        modparam("proto_hep", "homer5_delim", "#")<br>
        modparam("proto_hep", "hep_capture_id", 12345)<br>
        <br>
        #### SIPTRACE Module<br>
        loadmodule "siptrace.so"<br>
        modparam("siptrace", "trace_on", 1)<br>
        modparam("siptrace", "trace_id", "[traceid]uri=hep:homer")</p>
      <p>in the script for initial INVITE:</p>
      <p>sip_trace("traceid","M","sip");</p>
      <p>the Error:</p>
      <p>ERROR:proto_hep:hep_udp_send:
        sendto(sock,0x7fb60874b710,1101,0,0x7fb608749bd0,16): Invalid
        argument(22)<br>
        CRITICAL:proto_hep:hep_udp_send: invalid sendtoparameters#012one
        possible reason is the server is bound to localhost
        and#012attempts to send to the net<br>
        ERROR:proto_hep:msg_send: send() to 1.2.3.4:9060 for proto
        hep_udp/8 failed<br>
        ERROR:proto_hep:send_hep_message: Cannot send hep message!<br>
        ERROR:siptrace:save_siptrace: Failed to duplicate with hep to
        <1.2.3.4:9060><br>
      </p>
      <p>1.2.3.4 is the Homer SIP Capture Server remote IP<br>
      </p>
      <p>Any hint?<br>
      </p>
      <pre class="moz-signature" cols="72">---
I'm SoCIaL, MayBe</pre>
      <div class="moz-cite-prefix">El 06/11/2017 a las 03:59, Răzvan
        Crainea escribió:<br>
      </div>
      <blockquote type="cite"
        cite="mid:3e4a2367-fcd0-b47a-5e41-348b3d729f74@opensips.org">
        <meta http-equiv="Content-Type" content="text/html;
          charset=utf-8">
        <tt>Hello!<br>
          <br>
          Shortly, you need to follow this logic:<br>
          1. Define a listener:<br>
          listen=hep_udp:127.0.0.1:6060<br>
          <br>
          2. Define a HEP destination to capture the traffic to[1].<br>
        </tt><tt>modparam("proto_hep", "hep_id", "[homer_id]<a
            href="http://1.2.3.4:9060" rel="noreferrer" target="_blank"
            moz-do-not-send="true">1.2.3.4:9060</a>; version=2")<br>
          <br>
          3. Next, define a tracing ID - an idea that describes where a
          specific package should be sent[2]<br>
          modparam("siptrace", "trace_id",
          "[to_homer_tid]uri=hep:homer_id")<br>
          <br>
          4. Start tracing the data you want by calling sip_trace() with
          the destination provisioned earlier and the scope you want:<br>
          sip_trace("to_homer_tid", "m", "sip"); # this traces only the
          SIP message<br>
        </tt><br>
        <tt><tt>Hope it is clear now.<br>
            <br>
          </tt>[1] <a class="moz-txt-link-freetext"
href="http://www.opensips.org/html/docs/modules/2.4.x/proto_hep.html#idp232096"
            moz-do-not-send="true">http://www.opensips.org/html/docs/modules/2.4.x/proto_hep.html#idp232096</a><br>
          [2] <a class="moz-txt-link-freetext"
href="http://www.opensips.org/html/docs/modules/2.4.x/siptrace.html#idp5904384"
            moz-do-not-send="true">http://www.opensips.org/html/docs/modules/2.4.x/siptrace.html#idp5904384</a><br>
          [3] <a class="moz-txt-link-freetext"
href="http://www.opensips.org/html/docs/modules/2.4.x/siptrace.html#idp5914144"
            moz-do-not-send="true">http://www.opensips.org/html/docs/modules/2.4.x/siptrace.html#idp5914144</a><br>
          <br>
          Best regards,<br>
        </tt>
        <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" moz-do-not-send="true">www.opensips-solutions.com</a></pre>
        <div class="moz-cite-prefix">On 11/05/2017 09:56 AM, Karsten
          Horsmann wrote:<br>
        </div>
        <blockquote type="cite"
cite="mid:CAFArqsZWBf-QxSHwkV3Mz8oq9nWwJE9rq=QmhaxrcyA+5Yo4xg@mail.gmail.com">
          <div dir="auto">Hi, 
            <div dir="auto"><br>
            </div>
            <div dir="auto">you need also to mark packets you are
              interested to be sipcaptured in your route. </div>
            <div dir="auto"><br>
            </div>
            <div dir="auto">Kind regards </div>
            <div dir="auto">Karsten Horsmann </div>
            <br>
            <div class="gmail_extra" dir="auto"><br>
              <div class="gmail_quote">Am 03.11.2017 8:32 nachm. schrieb
                "Social Boh" <<a href="mailto:social@bohboh.info"
                  target="_blank" moz-do-not-send="true">social@bohboh.info</a>>:<br
                  type="attribution">
                <blockquote class="m_8998562428788167158quote"
                  style="margin:0 0 0 .8ex;border-left:1px #ccc
                  solid;padding-left:1ex">Hello,<br>
                  <br>
                  I think I don't completely understood the logic behind
                  proto_hep and siptrace modules on OpenSIPs 2.3<br>
                  <br>
                  I'd like send SIP traffic from OpenSIPs to a external
                  Homer SIP Capture Server (with Kamailio) so I know I
                  have to configure proto_hep and siptrace modules.<br>
                  <br>
                  I think the logic is: Send SIP traffic from siptrace
                  to hep listener:<br>
                  <br>
                  modparam("siptrace", "trace_id", "[tid]uri=sip:<a
                    href="http://127.0.0.1:6060" rel="noreferrer"
                    target="_blank" moz-do-not-send="true">127.0.0.1:6060</a>")<br>
                  <br>
                  listen=hep_udp:<a href="http://127.0.0.1:6060"
                    rel="noreferrer" target="_blank"
                    moz-do-not-send="true">127.0.0.1:6060</a><br>
                  <br>
                  then from the proto_hep module send the HEP packets to
                  Node Capture:<br>
                  <br>
                  modparam("proto_hep", "hep_id", "[homer]<a
                    href="http://1.2.3.4:9060" rel="noreferrer"
                    target="_blank" moz-do-not-send="true">1.2.3.4:9060</a>;
                  version=2")<br>
                  <br>
                  This configuration not works.<br>
                  <br>
                  This document not helping me very much:<br>
                  <br>
                  <a
                    href="http://www.opensips.org/Documentation/Tutorials-Tracing"
                    rel="noreferrer" target="_blank"
                    moz-do-not-send="true">http://www.opensips.org/Docume<wbr>ntation/Tutorials-Tracing</a><br>
                  <br>
                  Any hint, please?<br>
                  <br>
                  Thank you<font color="#888888"><br>
                    <br>
                    -- <br>
                    ---<br>
                    I'm SoCIaL, MayBe<br>
                    <br>
                    <br>
                    ______________________________<wbr>_________________<br>
                    Users mailing list<br>
                    <a href="mailto:Users@lists.opensips.org"
                      target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a><br>
                    <a
                      href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                      rel="noreferrer" target="_blank"
                      moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
                  </font></blockquote>
              </div>
              <br>
            </div>
          </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>
        <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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>