-
-
Notifications
You must be signed in to change notification settings - Fork 244
Examples: Captagent4
lmangani edited this page Nov 22, 2014
·
2 revisions
<?xml version="1.0"?>
<document type="captagent/xml">
<configuration name="core.conf" description="CORE Settings">
<settings>
<param name="debug" value="3"/>
<param name="daemon" value="false"/>
<param name="pid_file" value="/var/run/captagent.pid"/>
<param name="path" value="/usr/local/lib/captagent/modules"/>
</settings>
</configuration>
<configuration name="modules.conf" description="Modules">
<modules>
<load module="core_hep"/>
<load module="proto_uni"/>
<load module="capt_cli"/>
</modules>
</configuration>
<!-- CORE MODULES -->
<configuration name="core_hep.conf" description="HEP Socket">
<settings>
<param name="version" value="3"/>
<param name="capture-host" value="homer.yourdomain.xxx"/>
<param name="capture-port" value="9060"/>
<param name="capture-proto" value="udp"/>
<param name="capture-id" value="2001"/>
<param name="capture-password" value="myHep"/>
<param name="payload-compression" value="false" />
</settings>
</configuration>
<!-- PROTOCOLS -->
<configuration name="proto_uni.conf" description="UNI Proto Basic capture">
<settings>
<param name="port" value="5060"/>
<!-- <param name="portrange" value="5060-5090"/> -->
<!--
use -D flag for pcap import
use "any" for all interfaces in your system
-->
<param name="dev" value="eth0"/>
<param name="promisc" value="true"/>
<!--
comment it if you want to see all IPProto (tcp/udp)
-->
<param name="ip-proto" value="udp"/>
<param name="proto-type" value="sip"/>
<!-- <param name="filter" value="not src port 5099"/> -->
</settings>
</configuration>
<!-- CLI -->
<configuration name="capt_cli.conf" description="CLI socket">
<settings>
<param name="cli-host" value="localhost"/>
<param name="cli-port" value="8909"/>
<param name="cli-password" value="12345"/>
</settings>
</configuration>
</document>
Adjust based on your needs. Once ready you can run the agent in daemon mode as follows:
captagent -d
To start the daemon using a different location use the -f switch
captagent -d -f /path/to/captagent_custom.xml
If you enabled CLI access in your configuration you can telnet to your captagent and obtain usage statistics as follows:
# telnet localhost 8909
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Welcome to CLI of Captagent
>stats
Statistic of capt_cli module
Statistic of PROTO_UNI module:
Send packets: [1312]
Statistic of CORE_HEP module:
Send packets: [136]
By default modules will be installed in /usr/local/lib/captagent/modules
Default Modules:
- [PROTO_UNI]: Universal Protocol capture (SIP, XMPP, Any)
- [CORE_HEP]: HEP Encapsulation support (HEPv1, HEPv2, HEPv3)
(C) 2008-2023 QXIP BV
HEP/EEP Agent Examples:
- CaptAgent
- HEPlify
- Kamailio
- OpenSIPS
- FreeSwitch
- Asterisk
- sipgrep
- sngrep
- RTPEngine
- RTPProxy
- Oracle ACME SBC
- Sonus SBC
- Avaya SM
- Sansay SBC
HEP/EEP Agent Examples (LOGS):
HEP/EEP Proxy:
Extra Examples:
- Custom JSON Stats
- RTCP-XR Stats
- GEO IP Maps
- Janus/Meetecho-WebRTC
- Cloudshark Export
- Encrypted HEP Tunneling
- SNMP Monitoring
- FreeSWITCH ESL Monitoring
- Kazoo Monitoring
- Speech-to-Text-to-HEP
Extra Resources: