sipcapture / captagent

100% Open-Source Packet Capture Agent for HEP
https://sipcapture.org
GNU Affero General Public License v3.0
165 stars 75 forks source link

Is --enable-mysql option working ? #268

Closed GokhanAksoynet closed 1 year ago

GokhanAksoynet commented 1 year ago

Hello,

I am trying to install captagent with mysql. I followed ever step, and configured with --enable-mysql. (./configure --enable-mysql)

Build with REDIS............ : no
Build with MySQL............ : yes
Build with PCRE............. : no
Build with LibUV............ : yes
Build with EPAN............. : no
Build with TLS.............. : no

But there is no relevant file with mysql. there is only database_redis.xml file.

How can send hep packages to mysql.

My system os => PRETTY_NAME="Debian GNU/Linux 10 (buster)" NAME="Debian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=debian

Thank you.

lmangani commented 1 year ago

Hello @GokhanAksoynet Any reason why you're looking into it? The MySql extension is only used by custom modules and should not be considered for normal usage. You can expect this being decommissioned and removed in the future.

TDLR; Not for regular usage

GokhanAksoynet commented 1 year ago

Hello @lmangani , Well, i have mysql database and i saw there was a mysql option. So i thought its better for me to use mysql. I am trying to capture sip and write them to mysql database. Can you explain more about custom modules, is it possible to use mysql ? Thank you

lmangani commented 1 year ago

HEP Agents only capture packets and send HEP. HEP Servers receive them and write to DB. The MySQL Module in the agent is only used to write Agent states to DB and not to work with packets. HOMER doesn't support MySQL anymore so there's no way to do this without lots of code/PRs - sorry!

GokhanAksoynet commented 1 year ago

I understand, thank you for information.