<div dir="ltr">Hi Alexander, <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(&quot;siptrace&quot;,&quot;duplicate_uri&quot;,&quot;sip:ix.y.z.w:9060&quot;)</div>
<div>modparam(&quot;siptrace&quot;,&quot;duplicate_with_hep&quot;,1)</div><div>modparam(&quot;siptrace&quot;,&quot;trace_to_database&quot;,0)</div><div>modparam(&quot;siptrace&quot;,&quot;trace_flag&quot;,22)</div><div>modparam(&quot;siptrace&quot;,&quot;trace_on&quot;,1)</div>
<div>modparam(&quot;siptrace&quot;, &quot;trace_local_ip&quot;, &quot;udp:PRIMARY_IP:5060&quot;)</div><div>modparam(&quot;siptrace&quot;, &quot;hep_version&quot;, 2)</div><div>modparam(&quot;siptrace&quot;,&quot;db_url&quot;,&quot;mysql://OPENSIPS_USER:OPENSIPS_PASS@DB_IP/DB_NAME&quot;</div>
<div><br></div></div><div class="gmail_extra">Flavio E. Goncalves<br><div><div><br></div><div> </div></div>
<br><br><div class="gmail_quote">2013/7/10 Alexandr Dubovikov <span dir="ltr">&lt;<a 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, 
        <div><br>
        </div>
        <div>I had exactly the same problem.  I&#39;m sending to
          your email the pcap file. Actually I don&#39;t think the problem
          is the request. I have inspected the pcap file and seems fine
          according to HEP v2. I&#39;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. </div>
        <div><br>
        </div>
        <div>
          <div>  /* PROTO */</div>
          <div>        if(heph-&gt;hp_p == IPPROTO_UDP)
            ri-&gt;proto=PROTO_UDP;</div>
          <div>        else if(heph-&gt;hp_p == IPPROTO_TCP)
            ri-&gt;proto=PROTO_TCP;</div>
          <div>        else if(heph-&gt;hp_p == IPPROTO_IDP)
            ri-&gt;proto=PROTO_TLS; /* fake protocol */</div>
          <div>#ifdef USE_SCTP</div>
          <div>        else if(heph-&gt;hp_p == IPPROTO_SCTP)
            ri-&gt;proto=PROTO_SCTP;</div>
          <div>#endif</div>
          <div>        else {</div>
          <div>                //LM_ERR(&quot;unknow protocol
            [%d]\n&quot;,heph-&gt;hp_p); /*Workaroud */</div>
          <div>                ri-&gt;proto = PROTO_UDP; / *Workaround
            */</div>
          <div>        }</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, </div>
        </div>
        <div class="gmail_extra"><br clear="all">
          <div>
            <div>Flavio E. Goncalves</div>
            <div><br>
            </div>
            <div> </div>
          </div>
          <br>
          <br>
          <div class="gmail_quote">2013/2/15 Alexandr Dubovikov <span dir="ltr">&lt;<a 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 href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a><br>
                  [mailto:<a 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>
                  &quot;ERROR:sipcapture:hep_msg_received: unknow protocol
                  [1]&quot;<br>
                  <br>
                  On my main OpenSIPS server I am using the siptrace
                  module to duplicate the<br>
                  messages with HEP to the sipcaptur server.  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(&quot;siptrace&quot;, &quot;enable_ack_trace&quot;, 1)
                  modparam(&quot;siptrace&quot;,<br>
                  &quot;trace_flag&quot;, &quot;TRACE&quot;) modparam(&quot;siptrace&quot;,
                  &quot;trace_on&quot;, 1)<br>
                  modparam(&quot;siptrace&quot;, &quot;trace_to_database&quot;, 0)
                  modparam(&quot;siptrace&quot;,<br>
                  &quot;hep_version&quot;, 2) modparam(&quot;siptrace&quot;,
                  &quot;hep_capture_id&quot;, 338)<br>
                  modparam(&quot;siptrace&quot;, &quot;duplicate_uri&quot;,
                  <a>&quot;sip:xxx.xxx.xxx.xxx:9060&quot;</a>)<br>
                  modparam(&quot;siptrace&quot;, &quot;duplicate_with_hep&quot;, 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=&quot;/lib64/opensips/modules/&quot;<br>
                  <br>
                  loadmodule &quot;db_mysql.so&quot;<br>
                  loadmodule &quot;sipcapture.so&quot;<br>
                  <br>
                  modparam(&quot;sipcapture&quot;, &quot;db_url&quot;,
                  &quot;mysql://xxx:xxx@localhost/xxx&quot;)<br>
                  modparam(&quot;sipcapture&quot;, &quot;capture_node&quot;, &quot;sipcapture&quot;)
                  modparam(&quot;sipcapture&quot;,<br>
                  &quot;capture_on&quot;, 1) modparam(&quot;sipcapture&quot;, &quot;table_name&quot;,
                  &quot;sip_capture&quot;)<br>
                  modparam(&quot;sipcapture&quot;, &quot;hep_capture_on&quot;, 1) ##
                  undocumented option pulled<br>
                  from homer site?<br>
                  <br>
                  #modparam(&quot;sipcapture&quot;, &quot;duplicate_with_hep&quot;, 1) ##
                  documentation is wrong,<br>
                  this throws an error<br>
                  <br>
                  ####### Routing Logic ########<br>
                  <br>
                  route<br>
                  {<br>
                           sip_capture();<br>
                           drop;<br>
                  }<br>
                  <br>
                  onreply_route<br>
                  {<br>
                           sip_capture();<br>
                           drop;<br>
                  }<br>
                  <br>
                  <br>
                  _______________________________________________<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" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                  <br>
                  <br>
                  _______________________________________________<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" 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 href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a 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>