<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Flavio,<br>
      <br>
      no, I mean the ORIGINAL SIP messages, not the HEP packets....<br>
      <br>
      Wbr,<br>
      Alexandr<br>
      <br>
      7/10/2013 10:41 PM, Flavio Goncalves wrote:<br>
    </div>
    <blockquote
cite="mid:CAJkFROz4vpbFfKK_1q6Wx+N5dX-8yR+LV7fw0RhqZxqEAK6aFA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Alexander,&nbsp;
        <div><br>
        </div>
        <div style="">They were generated by the siptrace module in
          another OpenSIPS Server 1.8</div>
        <div style=""><br>
        </div>
        <div style="">
          <div>#---- Sip Trace Params ----</div>
          <div>modparam("siptrace","duplicate_uri",<a class="moz-txt-link-rfc2396E" href="sip:ix.y.z.w:9060">"sip:ix.y.z.w:9060"</a>)</div>
          <div>modparam("siptrace","duplicate_with_hep",1)</div>
          <div>modparam("siptrace","trace_to_database",0)</div>
          <div>modparam("siptrace","trace_flag",22)</div>
          <div>modparam("siptrace","trace_on",1)</div>
          <div>modparam("siptrace", "trace_local_ip",
            "udp:PRIMARY_IP:5060")</div>
          <div>modparam("siptrace", "hep_version", 2)</div>
          <div>modparam("siptrace","db_url","mysql://OPENSIPS_USER:OPENSIPS_PASS@DB_IP/DB_NAME"</div>
          <div><br>
          </div>
        </div>
        <div class="gmail_extra">Flavio E. Goncalves<br>
          <div>
            <div><br>
            </div>
            <div>&nbsp;</div>
          </div>
          <br>
          <br>
          <div class="gmail_quote">2013/7/10 Alexandr Dubovikov <span
              dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:aduvoip@googlemail.com" target="_blank">aduvoip@googlemail.com</a>&gt;</span><br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF">
                <div>Hi Flavio,<br>
                  <br>
                  how was the original SIP messages generated ? <br>
                  <br>
                  Wbr,<br>
                  Alexandr
                  <div>
                    <div class="h5"><br>
                      <br>
                      7/10/2013 5:05 PM, Flavio Goncalves wrote:<br>
                    </div>
                  </div>
                </div>
                <div>
                  <div class="h5">
                    <blockquote type="cite">
                      <div dir="ltr">Hi Alexander,&nbsp;
                        <div><br>
                        </div>
                        <div>I had exactly the same problem. &nbsp;I'm
                          sending to your email the pcap file. Actually
                          I don't think the problem is the request. I
                          have inspected the pcap file and seems fine
                          according to HEP v2. I've changed the source
                          code to force UDP and it worked fine after
                          that. It is is not a patch, only a workaround,
                          the root cause is still to be found.&nbsp;</div>
                        <div><br>
                        </div>
                        <div>
                          <div>&nbsp; /* PROTO */</div>
                          <div>&nbsp; &nbsp; &nbsp; &nbsp; if(heph-&gt;hp_p == IPPROTO_UDP)
                            ri-&gt;proto=PROTO_UDP;</div>
                          <div>&nbsp; &nbsp; &nbsp; &nbsp; else if(heph-&gt;hp_p ==
                            IPPROTO_TCP) ri-&gt;proto=PROTO_TCP;</div>
                          <div>&nbsp; &nbsp; &nbsp; &nbsp; else if(heph-&gt;hp_p ==
                            IPPROTO_IDP) ri-&gt;proto=PROTO_TLS; /* fake
                            protocol */</div>
                          <div>#ifdef USE_SCTP</div>
                          <div>&nbsp; &nbsp; &nbsp; &nbsp; else if(heph-&gt;hp_p ==
                            IPPROTO_SCTP) ri-&gt;proto=PROTO_SCTP;</div>
                          <div>#endif</div>
                          <div>&nbsp; &nbsp; &nbsp; &nbsp; else {</div>
                          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //LM_ERR("unknow protocol
                            [%d]\n",heph-&gt;hp_p); /*Workaroud */</div>
                          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ri-&gt;proto = PROTO_UDP;
                            / *Workaround */</div>
                          <div>&nbsp; &nbsp; &nbsp; &nbsp; }</div>
                          <div><br>
                          </div>
                          <div>The problem seems to be in the
                            IPPROTO_UDP definition. The message shows:</div>
                          <div><br>
                          </div>
                          <div> ERROR:sipcapture:hep_msg_received:
                            unknow protocol [1]<br>
                          </div>
                          <div><br>
                          </div>
                          <div>Best regards,&nbsp;</div>
                        </div>
                        <div class="gmail_extra"><br clear="all">
                          <div>
                            <div>Flavio E. Goncalves</div>
                            <div><br>
                            </div>
                            <div>&nbsp;</div>
                          </div>
                          <br>
                          <br>
                          <div class="gmail_quote">2013/2/15 Alexandr
                            Dubovikov <span dir="ltr">&lt;<a
                                moz-do-not-send="true"
                                href="mailto:aduvoip@googlemail.com"
                                target="_blank">aduvoip@googlemail.com</a>&gt;</span><br>
                            <blockquote class="gmail_quote"
                              style="margin:0 0 0 .8ex;border-left:1px
                              #ccc solid;padding-left:1ex"> Hi Seth,<br>
                              <br>
                              can you please make tcpdump in pcap format
                              on port 9060 and send it to me ?<br>
                              <br>
                              Wbr,<br>
                              Alexandr<br>
                              <div>
                                <div><br>
                                  -----Original Message-----<br>
                                  From: <a moz-do-not-send="true"
                                    href="mailto:users-bounces@lists.opensips.org"
                                    target="_blank">users-bounces@lists.opensips.org</a><br>
                                  [mailto:<a moz-do-not-send="true"
                                    href="mailto:users-bounces@lists.opensips.org"
                                    target="_blank">users-bounces@lists.opensips.org</a>]
                                  On Behalf Of Seth Schultz<br>
                                  Sent: Friday, February 15, 2013 8:37
                                  PM<br>
                                  To: OpenSIPS users mailling list<br>
                                  Subject: [OpenSIPS-Users] Sipcapture
                                  issue<br>
                                  <br>
                                  Hello,<br>
                                  <br>
                                  I am running into an issue where my
                                  sipcapture server is throwing this
                                  error<br>
                                  (using version 1.9.0).<br>
                                  <br>
                                  "ERROR:sipcapture:hep_msg_received:
                                  unknow protocol [1]"<br>
                                  <br>
                                  On my main OpenSIPS server I am using
                                  the siptrace module to duplicate the<br>
                                  messages with HEP to the sipcaptur
                                  server. &nbsp;I have tried using both<br>
                                  hep_version 1 and 2, but both throw
                                  the same error.<br>
                                  <br>
                                  Here are my trace server settings:<br>
                                  <br>
                                  modparam("siptrace",
                                  "enable_ack_trace", 1)
                                  modparam("siptrace",<br>
                                  "trace_flag", "TRACE")
                                  modparam("siptrace", "trace_on", 1)<br>
                                  modparam("siptrace",
                                  "trace_to_database", 0)
                                  modparam("siptrace",<br>
                                  "hep_version", 2) modparam("siptrace",
                                  "hep_capture_id", 338)<br>
                                  modparam("siptrace", "duplicate_uri",
                                  <a moz-do-not-send="true">"sip:xxx.xxx.xxx.xxx:9060"</a>)<br>
                                  modparam("siptrace",
                                  "duplicate_with_hep", 1)<br>
                                  <br>
                                  ...<br>
                                  <br>
                                  ####### Routing Logic ########<br>
                                  <br>
                                  route<br>
                                  {<br>
                                  ...<br>
                                  trace_dialog();<br>
                                  ...<br>
                                  }<br>
                                  <br>
                                  Here is the script for the capture
                                  server:<br>
                                  <br>
                                  debug=3<br>
                                  log_stderror=no<br>
                                  log_facility=LOG_LOCAL0<br>
                                  <br>
                                  fork=yes<br>
                                  children=5<br>
                                  <br>
                                  auto_aliases=no<br>
                                  alias=xxx.xxx.xxx.xxx<br>
                                  <br>
                                  port=9060<br>
                                  listen=udp:xxx.xxx.xxx.xxx:9060<br>
                                  <br>
                                  mpath="/lib64/opensips/modules/"<br>
                                  <br>
                                  loadmodule "db_mysql.so"<br>
                                  loadmodule "sipcapture.so"<br>
                                  <br>
                                  modparam("sipcapture", "db_url",
                                  "mysql://xxx:xxx@localhost/xxx")<br>
                                  modparam("sipcapture", "capture_node",
                                  "sipcapture") modparam("sipcapture",<br>
                                  "capture_on", 1)
                                  modparam("sipcapture", "table_name",
                                  "sip_capture")<br>
                                  modparam("sipcapture",
                                  "hep_capture_on", 1) ## undocumented
                                  option pulled<br>
                                  from homer site?<br>
                                  <br>
                                  #modparam("sipcapture",
                                  "duplicate_with_hep", 1) ##
                                  documentation is wrong,<br>
                                  this throws an error<br>
                                  <br>
                                  ####### Routing Logic ########<br>
                                  <br>
                                  route<br>
                                  {<br>
                                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sip_capture();<br>
                                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;drop;<br>
                                  }<br>
                                  <br>
                                  onreply_route<br>
                                  {<br>
                                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sip_capture();<br>
                                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;drop;<br>
                                  }<br>
                                  <br>
                                  <br>
_______________________________________________<br>
                                  Users mailing list<br>
                                  <a moz-do-not-send="true"
                                    href="mailto:Users@lists.opensips.org"
                                    target="_blank">Users@lists.opensips.org</a><br>
                                  <a moz-do-not-send="true"
                                    href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                                    target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                                  <br>
                                  <br>
_______________________________________________<br>
                                  Users mailing list<br>
                                  <a moz-do-not-send="true"
                                    href="mailto:Users@lists.opensips.org"
                                    target="_blank">Users@lists.opensips.org</a><br>
                                  <a moz-do-not-send="true"
                                    href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                                    target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                                </div>
                              </div>
                            </blockquote>
                          </div>
                          <br>
                        </div>
                      </div>
                    </blockquote>
                    <br>
                  </div>
                </div>
              </div>
              <br>
              _______________________________________________<br>
              Users mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
              <br>
            </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">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>