drachtio-siprec-recording-server icon indicating copy to clipboard operation
drachtio-siprec-recording-server copied to clipboard

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

Open thieplehuu opened this issue 3 years ago • 10 comments

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.

thieplehuu avatar Jan 19 '22 04:01 thieplehuu

please get the drachtio.log file and attach it here

davehorton avatar Jan 19 '22 12:01 davehorton

I don't see anything from /home/drachtio-server/log i use docker same test file (docker-compose-testbed.yaml) volumes: - ./home/drachtio-server/log:/var/log/drachtio so, i don't know where is my config wrong. please help me! thank you very much! docker-compose.txt this is my docker yaml file

thieplehuu avatar Jan 20 '22 01:01 thieplehuu

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)

thieplehuu avatar Jan 20 '22 03:01 thieplehuu

what is the output from node app.js?

davehorton avatar Jan 20 '22 12:01 davehorton

what is the output from node app.js?

Capture this is my output from node app.js

thieplehuu avatar Jan 21 '22 01:01 thieplehuu

please get the drachtio.log file and attach it here

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

thieplehuu avatar Jan 25 '22 08:01 thieplehuu

@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?

tommyNy avatar Jan 26 '22 12:01 tommyNy

@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

thieplehuu avatar Feb 08 '22 07:02 thieplehuu

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.

avoylenko avatar Feb 13 '22 20:02 avoylenko

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

tommyNy avatar Feb 14 '22 09:02 tommyNy