Infactum / tg2sip

Telegram <-> SIP voice gateway
GNU General Public License v2.0
286 stars 105 forks source link

error creating socket: 97 / Address family not supported by protocol #24

Closed mariarti closed 4 years ago

mariarti commented 4 years ago

Hi @Infactum help me please

I've download ubuntu package, made settings up, and start call from tg to sip, and it stuck on "error creating socket: 97 / Address family not supported by protocol"

In my Ubuntu 18.04 LTS all IPV6 is disabled, because ISP didn't get me it.

[18:23:12.155][t:22455][p:22455][core][debug] [22455-8] creating voip for TG #4 [18:23:12.155][t:22455][p:22455][tgvoip][info] update data saving mode, config 0, enabled 0, reqd by peer 0 [18:23:12.155][t:22455][p:22455][tgvoip][warning] Set remote endpoints, allowP2P=0, connectionMaxLayer=92 [18:23:12.155][t:22455][p:22455][tgvoip][trace] Adding endpoint: 91.108.12.5:538, UDP [18:23:12.155][t:22455][p:22455][tgvoip][trace] Adding endpoint: 91.108.16.1:530, UDP [18:23:12.155][t:22455][p:22455][tgvoip][trace] Adding endpoint: 91.108.8.3:522, UDP [18:23:12.155][t:22455][p:22455][tgvoip][trace] Adding endpoint: 91.108.16.3:527, UDP [18:23:12.155][t:22455][p:22455][tgvoip][trace] Adding endpoint: 91.108.12.3:524, UDP [18:23:12.155][t:22455][p:22455][tgvoip][trace] Adding endpoint: 91.108.8.7:522, UDP [18:23:12.155][t:22455][p:22455][tgvoip][warning] Starting voip controller [18:23:12.157][t:22455][p:22455][tgvoip][error] error creating socket: 97 / Address family not supported by protocol

Thanks in advance! socket

upd I do enable ipv6 in ubuntu back, just enable without any configuring NIC, and it start working. I guess it tries to resolve IPv6 localhost and it fails.