Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
zypper install -t pattern devel_basis
zypper install libexpat* libpcap* libjson* libuv*
cd /usr/src/
git clone https://github.com/sipcapture/captagent.git captagent
cd captagent
./build.sh
./confgure
make && make install
<?xml version="1.0"?>
<document type="captagent_module/xml">
<module name="transport_hep" description="HEP Protocol" serial="2014010402">
<profile name="hepsocket" description="Transport HEP" enable="true" serial="2014010402">
<settings>
<param name="version" value="3"/>
<param name="capture-host" value="10.10.10.109"/>
<param name="capture-port" value="9061"/>
<param name="capture-proto" value="udp"/>
<param name="capture-id" value="homer01"/>
<param name="capture-password" value="myhep"/>
<param name="payload-compression" value="false"/>
</settings>
</profile>
</module>
</document>
Vince-0 wrote:captagent from repo is much easier, thanks Kumba.
I don't get any data in Homer, front-end home page shows "No Data Available" and empty DB tables.
I wonder if it has to do with GMT set on Homer but GMT+2 on Vicidial.
captagent service is running Active: active (running).
I ran homer rotate job and it created tables for a couple of days in the future.
I configured Admin Alias for Vici standalone server
ID: 23 Alias: VirtualBoxVici Gid: 10 IP: 10.10.10.111 Port: 9061 CaptureID: homer01 Status: 1 Created: 2017-02-13 08:25:08
socket_pcap.xml is on the correct interface, there's only one.
trasport_hep.xml looks correct, not sure about the capture-password being set on the Homer server?
- Code: Select all
<?xml version="1.0"?>
<document type="captagent_module/xml">
<module name="transport_hep" description="HEP Protocol" serial="2014010402">
<profile name="hepsocket" description="Transport HEP" enable="true" serial="2014010402">
<settings>
<param name="version" value="3"/>
<param name="capture-host" value="10.10.10.109"/>
<param name="capture-port" value="9061"/>
<param name="capture-proto" value="udp"/>
<param name="capture-id" value="homer01"/>
<param name="capture-password" value="myhep"/>
<param name="payload-compression" value="false"/>
</settings>
</profile>
</module>
</document>
Not sure how to proceed troubleshooting this one but I'll get there sometime.
<?xml version="1.0"?>
<document type="captagent_module/xml">
<module name="socket_pcap" description="HEP Socket" serial="2014010402">
<profile name="socketspcap_sip" description="HEP Socket" enable="true" serial="2014010402">
<settings>
<param name="dev" value="eth0"/>
<param name="promisc" value="true"/>
<param name="reasm" value="false"/>
<param name="tcpdefrag" value="false"/>
<param name="capture-plan" value="sip_capture_plan.cfg"/>
<param name="filter">
<value>portrange 5060-5091</value>
</param>
</settings>
</profile>
<profile name="socketspcap_rtcp" description="RTCP Socket" enable="false" serial="2014010402">
<settings>
<param name="dev" value="eth0"/>
<param name="promisc" value="true"/>
<param name="reasm" value="false"/>
<!-- size in MB -->
<param name="ring-buffer" value="20"/>
<!-- for rtp && rtcp < 250 -->
<param name="snap-len" value="256"/>
<param name="capture-filter" value="rtcp"/>
<param name="capture-plan" value="rtcp_capture_plan.cfg"/>
<param name="filter">
<value>portrange 5060-50000 and len >=50 </value>
</param>
</settings>
</profile>
</module>
</document>
mflorell wrote:It's still being worked on as of a couple months ago, but the big hurdle is getting the newer version of Homer to install properly, Homer was recently redesigned to be installed as it's own VM from an image, so it's taking a bit of work to make it install as part of an existing Linux install with other components on it.
docker-compose up -d
wget https://github.com/sipcapture/heplify/releases/download/1.65.16/heplify -O /usr/local/bin/heplify && chmod +x /usr/local/bin/heplify
cat > /etc/systemd/system/heplify.service <<EOF
[Unit]
Description=HEP Capture Agent for SIP and RTCP
After=network.target
[Service]
ExecStart=/usr/local/bin/heplify -i any -t af_packet -m SIPRTCP -hs {homerServerIP:9060}
ExecStop=/bin/kill \$MAINPID
Restart=on-failure
RestartSec=10s
Type=simple
[Install]
WantedBy=multi-user.target
EOF
nano /etc/systemd/system/heplify.service
[Unit]
Description=Captures packets from wire and sends them to Homer
After=network.target
[Service]
ExecStart=/usr/local/bin/heplify -i any -t af_packet -m SIPRTCP -hs {homerServerIP:9060}
ExecStop=/bin/kill ${MAINPID}
Restart=on-failure
RestartSec=10s
Type=simple
[Install]
WantedBy=multi-user.target
systemctl daemon-reload && systemctl enable heplify.service && systemctl start heplify.service
Users browsing this forum: No registered users and 3 guests