<p>I am using the same server, seeing different results for traffic that arrives over UDP compared to TCP.</p>
<pre><code>####### Global Parameters #########

fork=yes
children=8
tcp_children=8

/* uncomment the next line to disable TCP (default on) */
# disable_tcp=yes

/* IP and port for HEP capturing) */
listen=tcp:HOMER_LISTEN_IF:HOMER_LISTEN_PORT
listen=udp:HOMER_LISTEN_IF:HOMER_LISTEN_PORT

tcp_accept_hep3=1
tcp_accept_no_cl=yes
...

####### Routing Logic ########
modparam("sipcapture", "db_url", "mysql://root:****@*****/****")
modparam("sipcapture", "capture_on", 1)
modparam("sipcapture", "hep_capture_on", 1)
modparam("sipcapture", "insert_retries", 5)
modparam("sipcapture", "insert_retry_timeout", 10)
#new event sipcapture socket
modparam("sipcapture", "nonsip_hook", 1)
#modparam("sipcapture", "capture_node", "homer01")
...

route[STORE] {

        $var(a) = $var(table) + "_" + $var(utc);
        sip_capture("$var(a)");
}
...

event_route[sipcapture:request] {

        #Is it SIP ?
        if($hep(0x00b) == 1)
        {
                #Do parsing internal
                return 1;
        }
        else
        {
                #If report lets proceed here with payload
                xlog("HEP CHUNK PAYLOAD $hep(0x00f) request from $si:$sp\n");
                return 0;
        }
}
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1353#issuecomment-350533241">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36Zd0SXBLxsx9Fle959BU24sB86Q9Fks5s-5hEgaJpZM4Q2jRM">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZbGv1ugC3OCP93Gv-zwtim_0AND3ks5s-5hEgaJpZM4Q2jRM.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/1353#issuecomment-350533241"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@azigelman in #1353: I am using the same server, seeing different results for traffic that arrives over UDP compared to TCP.\r\n\r\n```\r\n####### Global Parameters #########\r\n\r\nfork=yes\r\nchildren=8\r\ntcp_children=8\r\n\r\n/* uncomment the next line to disable TCP (default on) */\r\n# disable_tcp=yes\r\n\r\n/* IP and port for HEP capturing) */\r\nlisten=tcp:HOMER_LISTEN_IF:HOMER_LISTEN_PORT\r\nlisten=udp:HOMER_LISTEN_IF:HOMER_LISTEN_PORT\r\n\r\ntcp_accept_hep3=1\r\ntcp_accept_no_cl=yes\r\n...\r\n\r\n####### Routing Logic ########\r\nmodparam(\"sipcapture\", \"db_url\", \"mysql://root:****@*****/****\")\r\nmodparam(\"sipcapture\", \"capture_on\", 1)\r\nmodparam(\"sipcapture\", \"hep_capture_on\", 1)\r\nmodparam(\"sipcapture\", \"insert_retries\", 5)\r\nmodparam(\"sipcapture\", \"insert_retry_timeout\", 10)\r\n#new event sipcapture socket\r\nmodparam(\"sipcapture\", \"nonsip_hook\", 1)\r\n#modparam(\"sipcapture\", \"capture_node\", \"homer01\")\r\n...\r\n\r\nroute[STORE] {\r\n\r\n\t$var(a) = $var(table) + \"_\" + $var(utc);\r\n\tsip_capture(\"$var(a)\");\r\n}\r\n...\r\n\r\nevent_route[sipcapture:request] {\r\n\r\n\t#Is it SIP ?\r\n\tif($hep(0x00b) == 1)\r\n\t{\r\n\t\t#Do parsing internal\r\n\t\treturn 1;\r\n\t}\r\n\telse\r\n\t{\r\n\t\t#If report lets proceed here with payload\r\n\t\txlog(\"HEP CHUNK PAYLOAD $hep(0x00f) request from $si:$sp\\n\");\r\n\t\treturn 0;\r\n\t}\r\n}\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1353#issuecomment-350533241"}}}</script>