sipcapture / homer-app

HOMER 7.x Front-End and API Server
http://sipcapture.io
GNU Affero General Public License v3.0
204 stars 79 forks source link

Homer UI not showing logs #476

Closed getrahulchauhan closed 1 year ago

getrahulchauhan commented 2 years ago

Hello,

I have new in homer , and i installed homer 7.10.18, homer-app service and heplify-server services is working fine but i can't see any logs on web.

My server have : - Asterisk 13.17.2 Homer App UI : - 7.10.18 Homer-app version: - homer-app 1.4.35. postgresql -12

homer_data=# select * from hep_proto_1_call; id | sid | create_date | protocol_header | data_header | raw ----+-----+-------------+-----------------+-------------+----- (0 rows)

/etc/asterisk/hep.conf

[general] enabled = yes ; Enable/disable forwarding of packets to a ; HEP server. Default is "yes". ;capture_address = 192.168.1.1:9061 ; The address of the HEP capture server. capture_address = 10.10.0.17:9060 capture_password = foo ; If specified, the authorization passsword ; for the HEP server. If not specified, no ; authorization password will be sent. capture_id = 1234 ; A unique integer identifier for this ; server. This ID will be embedded sent ; with each packet from this server. uuid_type = call-id

Please help, also i wanted to know whether homer will works with asterisk chan_sip module?

naqashsaeed commented 1 year ago

Hi @getrahulchauhan ,

Follow this Asterisk KB: Configure Asterisk

(This above configuration only works with chan_pjsip but not with chan_sip)

If you are using only SIP over UDP/TCP then as an alternate solution you can follow following steps. Step1: Go to the Download Heplify and download the binary file of heplify on server

wget https://github.com/sipcapture/heplify/releases/download/v1.65.2/heplify

Step2: Create heplify.service file in /etc/systemd/system and give it execution permissions using chmod +x heplify.service command and add content shows below:

[Unit]
Description=Captures packets from wire and sends them to Hepic
After=network.target
[Service]
ExecStart=/usr/local/bin/heplify -i any -t af_packet -m SIPRTCP -hs 127.0.0.1:9060
ExecStop=/bin/kill ${MAINPID}
Restart=on-failure
RestartSec=10s
Type=simple
[Install]
WantedBy=multi-user.target

Step3: Now Start the Service

 systemctl daemon-reload 
 systemctl start heplify 

Step4: Make a test call and see if you see any traffic on Homer UI.

kYroL01 commented 1 year ago

Thanks @naqashsaeed . Closing this issue as your answer fulfills the question.