<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Reda, <br>
    <br>
    5/6/2012 4:56 PM, Reda Aouad wrote:
    <blockquote
cite="mid:CAA30pc4s1U1014HGtBabs53T_JNY_VozM0=zgRh=HAFaeSSLwA@mail.gmail.com"
      type="cite">
      <div dir="ltr"><font color="#3366ff"><font><font
              face="tahoma,sans-serif">Hi Alex,</font></font></font>
        <div><font color="#3366ff"><font><font face="tahoma,sans-serif"><br>
              </font></font></font></div>
        <div><font color="#3366ff"><font><font face="tahoma,sans-serif">Thank
                you for the fix. Just upgraded to Kamailio 3.3 and now
                Kamailio starts without the previous error. Can this be
                backported to version 3.2?</font></font></font></div>
        <div><font color="#3366ff"><font><font face="tahoma,sans-serif"><br>
              </font></font></font></div>
      </div>
    </blockquote>
    It was not my fix :-) <br>
    <br>
    &nbsp;you can just use the sipcapture module from 3.3 together with 3.2,
    just recompile.<br>
    <br>
    <blockquote
cite="mid:CAA30pc4s1U1014HGtBabs53T_JNY_VozM0=zgRh=HAFaeSSLwA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><font color="#3366ff"><font><font face="tahoma,sans-serif">Bu
                the problem is still not solved. Although Kamailio
                starts, I get now a runtime error.</font></font></font></div>
        <div><font color="#3366ff"><font><font face="tahoma,sans-serif">ERROR:
                sipcapture [sipcapture.c:675]: ERROR:
                sipcapture:hep_msg_received: &nbsp;unsupported family [71]</font></font></font></div>
      </div>
    </blockquote>
    <br>
    "unsupported family" says: this packet is not HEP. <br>
    <br>
    <blockquote
cite="mid:CAA30pc4s1U1014HGtBabs53T_JNY_VozM0=zgRh=HAFaeSSLwA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><font color="#3366ff"><font><font face="tahoma,sans-serif"><br>
              </font></font></font></div>
        <div><font color="#3366ff"><font><font face="tahoma,sans-serif">This
                is my config running NODE and AGENT on same server:</font></font></font></div>
        <div>
          <div dir="ltr"><font color="#3366ff" face="tahoma, sans-serif"><br>
            </font></div>
          <div dir="ltr"><font color="#3366ff" face="tahoma, sans-serif">--------------------------------</font></div>
          <div dir="ltr"><font color="#3366ff" face="tahoma, sans-serif">
              <div dir="ltr">listen=udp:<a moz-do-not-send="true"
                  href="http://10.238.235.173:53">10.238.235.173:53</a></div>
              <div dir="ltr">listen=udp:<a moz-do-not-send="true"
                  href="http://127.0.0.1:9060">127.0.0.1:9060</a></div>
              <div><br>
              </div>
            </font></div>
          <div dir="ltr"><font color="#3366ff" face="tahoma, sans-serif">
              <div dir="ltr">modparam("sipcapture", "db_url",
                "mysql://homer:homer@localhost/homer")</div>
              <div dir="ltr">modparam("sipcapture", "capture_on", 1)</div>
              <div dir="ltr">modparam("sipcapture", "capture_node",
                "homer01")</div>
              <div dir="ltr">modparam("sipcapture", "hep_capture_on", 1)</div>
              <div><br>
              </div>
              <div>
                <div>modparam("siptrace", "traced_user_avp",
                  "$avp(s:traced_user)")</div>
                <div>modparam("siptrace", "trace_on", 1)</div>
                <div>modparam("siptrace", "trace_flag", FLD_TRACE)</div>
                <div>modparam("siptrace", "duplicate_uri", "sip:<a
                    moz-do-not-send="true" href="http://127.0.0.1:9060">127.0.0.1:9060</a>")</div>
                <div>modparam("siptrace", "hep_mode_on", 1)</div>
                <div>modparam("siptrace", "trace_to_database", 0)</div>
              </div>
              <div><br>
              </div>
              <div>request_route {</div>
              <div>&nbsp; &nbsp; ...</div>
              <div>&nbsp; &nbsp;&nbsp;setflag(FLD_TRACE);</div>
              <div>&nbsp; &nbsp;&nbsp;sip_capture();</div>
              <div>&nbsp; &nbsp; ...</div>
              <div>}</div>
              <div>--------------------------------
              </div>
              <div><br>
              </div>
              <div>It seems sipcapture is listening on both eth0 and
                loopback interfaces, and when it detects packets not
                encapsulated using HEP on eth0 (requests from SIP
                clients), it gives the error above.</div>
            </font></div>
        </div>
      </div>
    </blockquote>
    <br>
    kamailio is listening on the both interfaces, not sipcapture self.<br>
    <br>
    <blockquote
cite="mid:CAA30pc4s1U1014HGtBabs53T_JNY_VozM0=zgRh=HAFaeSSLwA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div dir="ltr"><font color="#3366ff" face="tahoma, sans-serif">
              <div>
              </div>
              <div><br>
              </div>
              <div>Is there a way to tell sipcapture to bind only on one
                interface using HEP mode? It seems impossible for now to
                run NODE and AGENT on the same server using HEP mode...</div>
              <div><br>
              </div>
            </font></div>
        </div>
      </div>
    </blockquote>
    you can make a trick, check in hep_msg_recieved() a destination port
    of the receive_info structure<br>
    <br>
    something like this:<br>
    <br>
    ri = (struct receive_info *)srevp[2];<br>
    <br>
    if(ri-&gt;dst_port != 9060) return -1;<br>
    <br>
    <blockquote
cite="mid:CAA30pc4s1U1014HGtBabs53T_JNY_VozM0=zgRh=HAFaeSSLwA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div dir="ltr"><font color="#3366ff" face="tahoma, sans-serif">
              <div>Thanks for helping.</div>
            </font></div>
          <div dir="ltr">
            <div><font color="#3366ff" face="tahoma, sans-serif">Reda</font></div>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
    Wbr,<br>
    Alexandr<br>
  </body>
</html>