<p>Openend as a follow up of <a href="https://github.com/camilleoudot" class="user-mention">@camilleoudot</a> comments (pasted next) to the pull request <a href="https://github.com/kamailio/kamailio/pull/454" class="issue-link js-issue-link" data-url="https://github.com/kamailio/kamailio/issues/454" data-id="123743945" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#454</a> by <a href="https://github.com/armenb" class="user-mention">@armenb</a></p>

<p>"""<br>
if the tcpops module is loaded but no tcp:closed route is defined, a debug log line will complain about it I think it would make sense to add a module parameter to globally enable or disable the event route lookup and execution<br>
Besides, as many of the tcpops function can act on a per-socket basis, it would be nice to have this event route called or not called depending on the socket (eg using a tcp_connection flag and defining a new tcpops function to set/reset this flag)<br>
What do you think?<br>
"""</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/461">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZRVtJkClrqWpfsT_Zbh8B97Q4jVlks5pWuoUgaJpZM4G-a_g.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/461"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>