Unable to connect to sip socket to ip:5061: Connection ref

Hi @ all,

after sip reload with these settings in sip.conf:


[general]
...
tcpenable=yes
tcpbindaddr=0.0.0.0
tlsenable=yes
tlsbindaddr=0.0.0.0:5061
tlscertfile=<pathtocert>/asterisk.pem
tlscipher=ALL
tlsclientmethod=tlsv1

[myuser]
type=friend
user=91
secret=xxxyyy
callerid=myuser
host=172.xxx.xxx.xxx
nat=yes
context=sip-tld
canreinvite=yes
transport=tls

in asterisk 1.8.4.1 I´m getting the error tcptls.c: unable to connect to Sip Socket to 172.xxx.xxx.xxx:5061: Connection refused.

If I take look at ‘sip show peers’ the peer´s state is UNREACHABLE.

What could be the problem therefore?

Best regards
Karsten

172.xxx.xxx.xxx is not listening on port TCP/5601 (or a firewall is sending TCP RST in response to connect atempts).

Hey David,

you could be right with your Thinking that 172.xxx… isn´t listening on 5061. This client is a snom 320 VoIPPhone and is sending his request from any port with 2000 i.e. 2867. A firewall between Server and Client isn´t present.