Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Captagent stopped sending data to Homer #131

Closed
gunjanmk opened this issue Apr 24, 2017 · 3 comments
Closed

Captagent stopped sending data to Homer #131

gunjanmk opened this issue Apr 24, 2017 · 3 comments
Labels

Comments

@gunjanmk
Copy link

Hi Team,

Captagent has stopped sending data to homer for some reason and I can not work out why. It was working fine, not aware of any changes which was done on server.

  • I can see some output from captagent but homer is not getting this data
  • anything specific info we can provide

Below is logs and file output

++++++++

cat /usr/local/captagent/etc/captagent/captagent.xml

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

++++++++

/usr/src/captagent/src/captagent -f /usr/local/captagent/etc/captagent/captagent.xml
[NOTICE] Loaded core config
[DEBUG] modules.c:50 Loading module: [transport_hep]
[ERR] modules.c:75 dlopen error [/usr/local/captagent/lib/captagent/modules/transport_hep.so: undefined symbol: uv_key_set]
[DEBUG] modules.c:50 Loading module: [database_hash]
[NOTICE] Loaded database_hash
[DEBUG] modules.c:50 Loading module: [protocol_sip]
[NOTICE] Loaded protocol_sip
[DEBUG] modules.c:50 Loading module: [protocol_rtcp]
[NOTICE] Loaded protocol_rtcp
[DEBUG] modules.c:50 Loading module: [socket_pcap]
[NOTICE] Loaded socket_pcap
[DEBUG] socket_pcap.c:573 Activating device: vlan201

[DEBUG] socket_pcap.c:609 Activated device: [vlan201]

[NOTICE] Using filter: (portrange 5060-5091)
[DEBUG] conf_function.c:453 find_export_record: found <msg_check> in module protocol_sip [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found <parse_sip> in module protocol_sip [/usr/local/captagent/lib/captagent/modules]
[ERR] conf_function.c:458 find_export_record: <send_hep> not found

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

[DEBUG] conf_function.c:453 find_export_record: found in module protocol_sip [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found <sip_has_sdp> in module protocol_sip [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found <check_rtcp_ipport> in module database_hash [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found in module protocol_sip [/usr/local/captagent/lib/captagent/modules]
ERROR: bad config file (1 errors)
[DEBUG] socket_pcap.c:573 Activating device: vlan201

[DEBUG] socket_pcap.c:764 Link offset interface type [1] [1] [14]
[DEBUG] protocol_sip.c:370 SIP: [OPTIONS sip:61283790369@192.168.1.104:5063;transport=tcp SIP/2.0
Via: SIP/2.0/UDP 103.55.116.65:5060;branch=z9hG4bK0ab875bd;rport
Max-Forwards: 70
From: "2talkpbx" sip:2talkpbx@103.55.116.65;tag=as378b9006
To: sip:61283790369@192.168.1.104:5063;transport=tcp
Contact: sip:2talkpbx@103.55.116.65:5060
Call-ID: 1d741c9478fe2f8e2186ab457b98ea6a@103.55.116.65
CSeq: 102 OPTIONS
User-Agent: YCT PBX
Date: Mon, 24 Apr 2017 01:14:29 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INF

@adubovikov
Copy link
Member

adubovikov commented Apr 24, 2017 via email

@gunjanmk
Copy link
Author

Thanks @adubovikov This is our main frame server so i can probably try second option first.

"Or switch to hep up" <<< you mean UDP ?

Correct me if i am wrong but I assume this is changed by below ? If not, please let me know where to change this

+++++

If above change is correct then I assume this did not fix issue for me.

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

[NOTICE] Loaded core config
[DEBUG] modules.c:50 Loading module: [transport_hep]
[ERR] modules.c:75 dlopen error [/usr/local/captagent/lib/captagent/modules/transport_hep.so: undefined symbol: uv_key_set]
[DEBUG] modules.c:50 Loading module: [database_hash]
[NOTICE] Loaded database_hash
[DEBUG] modules.c:50 Loading module: [protocol_sip]
[NOTICE] Loaded protocol_sip
[DEBUG] modules.c:50 Loading module: [protocol_rudp]
[ERR] modules.c:75 dlopen error [/usr/local/captagent/lib/captagent/modules/protocol_rudp.so: cannot open shared object file: No such file or directory]
[DEBUG] modules.c:50 Loading module: [socket_pcap]
[NOTICE] Loaded socket_pcap
[DEBUG] socket_pcap.c:573 Activating device: vlan201

[DEBUG] socket_pcap.c:609 Activated device: [vlan201]

[NOTICE] Using filter: (portrange 5060-5091)

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)
[DEBUG] socket_pcap.c:775 loop stopped by breakloop
[DEBUG] socket_pcap.c:794 exit loop
[DEBUG] socket_pcap.c:775 loop stopped by breakloop
[DEBUG] socket_pcap.c:794 exit loop
[NOTICE] unloaded module protocol_sip
[NOTICE] unloaded module database_hash

@adubovikov
Copy link
Member

You have to compile the last version of captagent and use the same libuv library.

Looks like you have compiled the captagent with libuv 1.x but try use libuv0.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants