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

I do not receive data to my server Homer #236

Closed wvalles3010 closed 3 years ago

wvalles3010 commented 3 years ago

Hello good day,

Please your support, I have Homer version 7.7 installed on a Linux Centos server and also I have CaptAgent version 3 installed on an Asterisk 11 server (using chan_sip). I was receiving all the flow of calls to Homer without any problem, but now for no reason Homer stopped receiving information. My configuration file of the captagent.xml is the following:

<?xml version="1.0"?>

Also, I run the following command to see the CaptAgent logs. The result is as follows:

/ usr / src / captagent / src / captagent -f /usr/local/captagent/etc/captagent/captagent.xml

[NOTICE] Loaded core config [ERR] conf_function.c: 458 find_export_record: not found

parse error (17,26-27): unknown command, missing loadmodule?

ERROR: bad config file (1 errors) [ERR] conf_function.c: 458 find_export_record: not found

parse error (40,14-15): unknown command, missing loadmodule?

[ERR] conf_function.c: 458 find_export_record: not found

parse error (43.21-22): unknown command, missing loadmodule?

[ERR] conf_function.c: 458 find_export_record: not found

parse error (46,27-28): unknown command, missing loadmodule?

ERROR: bad config file (4 errors) WARNING: run_actions: null action list (rec_level = 5) WARNING: run_actions: null action list (rec_level = 5) WARNING: run_actions: null action list (rec_level = 3) WARNING: run_actions: null action list (rec_level = 3) WARNING: run_actions: null action list (rec_level = 3) WARNING: run_actions: null action list (rec_level = 3) WARNING: run_actions: null action list (rec_level = 3) WARNING: run_actions: null action list (rec_level = 3) WARNING: run_actions: null action list (rec_level = 3) WARNING: run_actions: null action list (rec_level = 3) WARNING: run_actions: null action list (rec_level = 3) WARNING: run_actions: null action list (rec_level = 3) WARNING: run_actions: null action list (rec_level = 3) WARNING: run_actions: null action list (rec_level = 3) WARNING: run_actions: null action list (rec_level = 3) WARNING: run_actions: null action list (rec_level = 3) WARNING: run_actions: null action list (rec_level = 3) WARNING: run_actions: null action list (rec_level = 3)

Could you please give me a hint on how to solve this problem?

Greetings

kYroL01 commented 3 years ago

Hello @wvalles3010 . It seems you don't have the RTCP modules enabled in your captagent.xml Try to enable also <load module="protocol_rtcp" register="local"/> and let me know

Thank you!

wvalles3010 commented 3 years ago

Hi Michele,

Thanks for your answer, I made the change you suggested and my captagent.xml looked like this:

<configuration name="modules.conf" description="Modules">
    <modules>
            <load module="protocol_rtcp" register="local"/>
            <load module="transport_hep" register="local"/>
            <load module="protocol_sip" register="local"/>
            <load module="socket_pcap" register="local"/>

Checking the logs now I see these errors:

[NOTICE] Loaded core config [ERR] conf_function.c:458 find_export_record: not found

parse error (17,26-27): unknown command, missing loadmodule?

ERROR: bad config file (1 errors) [ERR] conf_function.c:458 find_export_record: not found

parse error (43,21-22): unknown command, missing loadmodule?

ERROR: bad config file (2 errors) WARNING: run_actions: null action list (rec_level=4) WARNING: run_actions: null action list (rec_level=4) WARNING: run_actions: null action list (rec_level=4) WARNING: run_actions: null action list (rec_level=4) WARNING: run_actions: null action list (rec_level=4) WARNING: run_actions: null action list (rec_level=4) WARNING: run_actions: null action list (rec_level=4) WARNING: run_actions: null action list (rec_level=4) WARNING: run_actions: null action list (rec_level=4) WARNING: run_actions: null action list (rec_level=4) WARNING: run_actions: null action list (rec_level=4) WARNING: run_actions: null action list (rec_level=4) WARNING: run_actions: null action list (rec_level=4) WARNING: run_actions: null action list (rec_level=4)

kYroL01 commented 3 years ago

You miss also database_hash.xml The complete (basic) modules to be enabled should be this

    <load module="transport_hep" register="local"/>
    <load module="protocol_sip" register="local"/>
    <load module="protocol_rtcp" register="local"/>
    <load module="database_hash" register="local"/>
    <load module="socket_pcap" register="local"/>

Regards Michele

wvalles3010 commented 3 years ago

Hello,

Add what you suggested to me.

<load module="transport_hep" register="local"/>
<load module="protocol_sip" register="local"/>
<load module="protocol_rtcp" register="local"/>
<load module="database_hash" register="local"/>
<load module="socket_pcap" register="local"/>

But now I see these errors:

/usr/src/captagent/src/captagent -f /usr/local/captagent/etc/captagent/captagent.xml

[NOTICE] Loaded core config [ERR] protocol_sip.c:141 Couldnot find this call [ERR] protocol_sip.c:141 Couldnot find this call [ERR] protocol_sip.c:141 Couldnot find this call [ERR] protocol_sip.c:141 Couldnot find this call [ERR] protocol_sip.c:141 Couldnot find this call [ERR] protocol_sip.c:141 Couldnot find this call

On the other hand, I made a couple of calls and my Homer server still does not receive information from my Asterisk server that has CaptAgent installed.

I will investigate from my side what else I can find.

wvalles3010 commented 3 years ago

Hello everyone,

I'm afraid I still can't find a solution to my problem, my Homer server still doesn't receive information.

Checking the CaptAgent logs on my Asterisk server, I still see the following errors:

/usr/src/captagent/src/captagent -f /usr/local/captagent/etc/captagent/captagent.xml

[NOTICE] Loaded core config [ERR] protocol_sip.c:141 Couldnot find this call [ERR] protocol_sip.c:141 Couldnot find this call [ERR] protocol_sip.c:141 Couldnot find this call [ERR] protocol_sip.c:141 Couldnot find this call [ERR] protocol_sip.c:141 Couldnot find this call [ERR] protocol_sip.c:141 Couldnot find this call

Please could you give me some idea how to solve this.

Greetings

wvalles3010 commented 3 years ago

Hello,

I just found the problem, it happens that my Homer server was receiving information through CapAgent, however, Homer is only showing 200 results of SIP calls, but it is NOT showing information greater than 200 results, my query is, how can I expand the "Call Sip Search" to show me for example 100000 results ?, Is this possible ?, I stay tuned.

Greetings

kYroL01 commented 3 years ago

Hi @wvalles3010 . Thanks for this answer. So, yes, it's possible, but in this case I suggest you to directly open an issue to Homer where you explain what you need to solve.

Thank you - I'm closing this one.

Greeting!