drachtio / drachtio-siprec-recording-server

SIPREC recording server based on drachtio and rtpengine
MIT License
81 stars 31 forks source link

Help me! I cannot receiver sip calls when i run app #52

Open thieplehuu opened 2 years ago

thieplehuu commented 2 years ago

I run app with comman: node app but when i make call, siprec recording server cannot receiver Sip messages I use tcpdump to catch Sip package in port 5060 then i see it exist. but Siprec server cannot process it. It alway just show: {"level":30,"time":1642566832259,"msg":"attempting inbound connection","pid":12819,"hostname":"siprec.server","host":"127.0.0.1","port":9023,"secret":"cymru","v":1} {"level":30,"time":1642566832263,"msg":"using freeswitch as the recorder","pid":12819,"hostname":"siprec.server","0":"172.32.0.4","v":1} {"level":30,"time":1642566832586,"msg":"successfully connected to redis at 127.0.0.1:9379","pid":12819,"hostname":"siprec.server","v":1} {"level":30,"time":1642566832591,"msg":"inbound connection to drachtio listening on udp/127.0.0.1:5060,udp/172.32.0.2:5060","pid":12819,"hostname":"siprec.server","v":1}

I config SBC wrong? Please help me! thank a lot, sorry because my english is bad.

davehorton commented 2 years ago

please get the drachtio.log file and attach it here

thieplehuu commented 2 years ago

I don't see anything from /home/drachtio-server/log i use docker same test file (docker-compose-testbed.yaml) volumes:

thieplehuu commented 2 years ago

It is myconfig. Could you help me check if it wrong? Thank so much! local.txt docker-compose.txt i just run: docker-compose up -d and: node app Capture

but i don't see drachtio.log file in folder /home/drachtio-server/log ( it is volumns of /var/log/drachtio)

davehorton commented 2 years ago

what is the output from node app.js?

thieplehuu commented 2 years ago

what is the output from node app.js?

Capture this is my output from node app.js

thieplehuu commented 2 years ago

please get the drachtio.log file and attach it here

drachtio.zip this is my drachtio log file. Thanks!

tommyNy commented 2 years ago

@thieplehuu Are you sure that drachtio server is listening UDP 5060 on correct interfaces?

from your log: {"level":30,"time":1642566832591,"msg":"inbound connection to drachtio listening on udp/127.0.0.1:5060,udp/172.32.0.2:5060","pid":12819,"hostname":"siprec.server","v":1}

udp/127.0.0.1 is localhost udp/172.32.0.2 is docker network

SBC? Could you give me SBC vendor name?

thieplehuu commented 2 years ago

@thieplehuu Are you sure that drachtio server is listening UDP 5060 on correct interfaces?

from your log: {"level":30,"time":1642566832591,"msg":"inbound connection to drachtio listening on udp/127.0.0.1:5060,udp/172.32.0.2:5060","pid":12819,"hostname":"siprec.server","v":1}

udp/127.0.0.1 is localhost udp/172.32.0.2 is docker network

SBC? Could you give me SBC vendor name?

I received an invitation message from SBC and the call was successfully established but the output pcap file is always 24kb, does not contain recording data, don't understand why here is my log and configuration. i use docker-compose to run drachtio and rtpenginend why here is my log and configuration. i use docker-compose to run drachtio and rtpengine. docker-compose.txt drachtio.log rtpengine.conf.txt local.json.txt rtpengine-meta.tmp.txt

Capture1

Capture

avoylenko commented 2 years ago

If you are saying that the size of your PCAP is 24 bytes(not 24 kb as you wrote) this means that the file contains just a header and there is not data in it. I would check your firewall configuration and run the tcpdump on the rtpengine host to see if you have incoming packets from the SBC during the call.

tommyNy commented 2 years ago

@thieplehuu show me logs, run drachtio app with command: DEBUG=* node app and add drachtio logs