sipcapture / heplify-server

HEP Capture Server for HOMER
https://sipcapture.org
GNU Affero General Public License v3.0
184 stars 85 forks source link

heplify-server resets TCP connection #536

Closed sergey-safarov closed 1 year ago

sergey-safarov commented 1 year ago

I have started heplify-server as docker container using command

/usr/bin/docker run -t --rm --name heplify-server --network=host \
         -e "HEPLIFYSERVER_HEPADDR=0.0.0.0:9060" \
         -e "HEPLIFYSERVER_HEPTCPADDR=" \
         -e "HEPLIFYSERVER_DBSHEMA=homer7" \
         -e "HEPLIFYSERVER_DBDRIVER=postgres" \
         -e "HEPLIFYSERVER_DBADDR=127.0.0.1:5432" \
         -e "HEPLIFYSERVER_DBUSER=root" \
         -e "HEPLIFYSERVER_DBPASS=homerSeven" \
         -e "HEPLIFYSERVER_DBDATATABLE=homer_data" \
         -e "HEPLIFYSERVER_DBCONFTABLE=homer_config" \
         -e "HEPLIFYSERVER_DBDROPDAYS=31" \
         -e "HEPLIFYSERVER_LOGLVL=info" \
         -e "HEPLIFYSERVER_LOGSTD=true" \
         -e "HEPLIFYSERVER_PROMADDR=0.0.0.0:9096" \
         -e "HEPLIFYSERVER_DEDUP=false" \
         -e "HEPLIFYSERVER_LOKIURL=http://[2600:1f18:578:5700::12]:3100/api/prom/push" \
         -e "HEPLIFYSERVER_LOKITIMER=2" \
         sipcapture/heplify-server:latest ./heplify-server -heptcpaddr 0.0.0.0:9060

heplify-server listening TCP/9060. Kamailio send HEP3 message but server resets connection. PCAP attached. hep.pcap.gz

lmangani commented 1 year ago
    -e "HEPLIFYSERVER_HEPADDR=0.0.0.0:9060" \
    -e "HEPLIFYSERVER_HEPTCPADDR=" \

mmmmm... with this config and HEPTCPADDR empty your service would be listening for UDP only. Configure HEP TCP on a different port if that's what you'd like to use from kamailio.

sergey-safarov commented 1 year ago

I see my typo and will retest.

sergey-safarov commented 1 year ago

I have retested and looks like TCP connection is stable. No issue there.

lmangani commented 1 year ago

Thanks for confirming back!