Homer and FreeSwitch?

100 views
Skip to first unread message

Antony Stone

unread,
Feb 19, 2025, 5:09:17 AMFeb 19
to Homer Capture Server. sipcapture.org
Hi.

I'm hoping that someone here can help me get FreeSwitch sending HEP packets to
Homer.

I've asked on the FreeSwitch forum but not had anything useful in the way of
responses. I'm sure there are people here using Homer with FreeSwitch.


I am trying to get Freeswitch (version 1.10.12, working fine for call
processing) to send HEPv3 captures to a Homer version 7 server I have set up.

I believe I have done all the necessary configuration in Freeswitch to make
this work, but it simply doesn't send any packets.

I have done the following:

1. In /etc/freeswitch/autoload_configs/sofia.conf.xml in the <global_settings>
stanza:

<param name="capture-server"
value="udp:cerberus.example.net:9060;
hep=3;
capture_id=100"/>

2. In every profile under /etc/freeswitch/sip_profiles in the <settings> stanza:

<param name="sip-capture" value="yes"/>

3. Restarted Freeswitch

4. Told Freeswitch to perform capturing:

fs_cli -x "sofia global capture on"

and for every SIP profile I have:

fs_cli -x "sofia profile XXX capture on"

Then, when calls get processed, I see no traffic on UDP port 9060 at all.

I am watching for these packets leaving the Freeswitch machine as well as
arriving on the Homer server:

# tshark -f "port 9060"

Nothing is shown.


However if I then run an sngrep command to watch the SIP traffic on the
Freeswitch machine and send HEP captures itself, I get traffic:

sngrep port 5060 -H udp:cerberus.example.net:9060 --no-interface -q

I then see packets both leaving the Freeswitch machine and arriving on the
Homer server.

I therefore conclude that:

a) I have no networking or firewalling problems

b) I have omitted some bit of magic to tell Freeswitch to send the HEP capture
itself.


Please can someone suggest what that magic might be?


Thanks,


Antony.

--

People say that nothing is impossible, so I try to do the impossible every
day.

Please reply to the list;
please *don't* CC me.

Uday kumar

unread,
Feb 20, 2025, 1:59:27 AMFeb 20
to homer-...@googlegroups.com
I have a Freeswitch server and it works perfectly with Homer. But I am using captagent to send logs on Homer. No changes required on Freeswitch. 

Simply follow below steps on Freeswitch server:-

After installation do modification in transport_hep.xml in /usr/local/captagent/ . 

Save the changes and start captagent by below command. 

cd /usr/src
cd captagent
./build.sh
./configure
make && make install

After installation do modification in transport_hep.xml in /usr/local/captagent/

Save the changes and start captagent by below command. 

/usr/local/captagent/sbin/captagent -d


Note:- You have insttalled json-c-devel expat-devel libpcap-devel flex-devel automake libtool bison libuv-devel flex gcc make git


Enjoy.

--
Thanks & Regard
Uday.

naqash saeed

unread,
Feb 20, 2025, 2:24:14 AMFeb 20
to Homer Capture Server. sipcapture.org
Hi Antony,

Are you using this Homer wiki to install Homer? if not, use this wiki so that you have Heplify also get install.
then you can send your Hep packets to Homer using Heplify.

Regards,
Naqash

naqash saeed

unread,
Feb 20, 2025, 3:13:53 AMFeb 20
to Homer Capture Server. sipcapture.org
Hi Antony,

Also please confirm what is your Freeswitch version. if you are on old one update it.
Also, use IP instead of domain in:

param name="capture-server"
value="udp:cerberus.example.net:9060;
hep=3;
capture_id=100"/>


Regards:
Naqash

Antony Stone

unread,
Feb 21, 2025, 9:54:47 AMFeb 21
to homer-...@googlegroups.com
On Thursday 20 February 2025 at 08:24:13, naqash saeed wrote:

> Hi Antony,
>
> Are you using this Homer wiki
> https://github.com/sipcapture/homer/wiki/Quick-Install to install Homer?

Yes.

On Thursday 20 February 2025 at 09:13:52, naqash saeed wrote:

> Also please confirm what is your Freeswitch version.

As originally stated: 1.10.12

> Also, use IP instead of domain in:
>
> param name="capture-server"
value="udp:cerberus.example.net:9060;hep=3;capture_id=100"/>

Tried that, makes no difference.

Can anyone post a known working configuration please?


Antony.

--
This email was created using 100% recycled electrons.

naqash saeed

unread,
Feb 21, 2025, 10:22:22 AMFeb 21
to homer-...@googlegroups.com

Which Hepagent you are using for sending traffic?

Antony Stone

unread,
Feb 21, 2025, 10:27:38 AMFeb 21
to homer-...@googlegroups.com
On Friday 21 February 2025 at 16:23:41, naqash saeed wrote:

> Which Hepagent you are using for sending traffic?

I don't understand that question. I'm trying to get FreeSwitch itself to send
the traffic.

Isn't that the whole point of the following?

> <param name="capture-server"
> value="udp:cerberus.example.net:9060;hep=3;capture_id=100"/>

> <param name="sip-capture" value="yes"/>

> fs_cli -x "sofia global capture on"


Antony.

--
Why are they called "The Rocky Mountains"?
What are other mountains made of?

naqash saeed

unread,
Feb 21, 2025, 10:37:41 AMFeb 21
to homer-...@googlegroups.com

Yeah got it. Then i think you need to confirm if your hep module is loaded correctly.

Antony Stone

unread,
Feb 21, 2025, 12:01:57 PMFeb 21
to homer-...@googlegroups.com
On Friday 21 February 2025 at 16:39:02, naqash saeed wrote:

> Yeah got it. Then i think you need to confirm if your hep module is loaded
> correctly.

I'm not sure which one I should be looking for:

https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/Modules/


Antony.

--
I wasn't sure about having a beard at first, but then it grew on me.
Reply all
Reply to author
Forward
0 new messages