schors / tgdante2

Dockerized Dante socks5 proxy for telegram. Alpine version
The Unlicense
626 stars 67 forks source link

Calls don't work #2

Open quarckster opened 6 years ago

quarckster commented 6 years ago

A connection seems established, but there is no audio during the call.

schors commented 6 years ago

Sorry. This is a telegram bug. They are working on this.

ghost commented 6 years ago

@schors can you tell about it? I've never heard about this.

schors commented 6 years ago

No. I can't

KekcuHa commented 6 years ago

@schors, can you check this https://stackoverflow.com/questions/49855516/telegram-calls-via-dante-socks5-proxy-server-not-working

CraftedCat commented 6 years ago

docker ps -a docker stop tgdante docker cp <ContainerID>:/conf/dante.conf .

Add before socks block:

socks pass {
    from: 0.0.0.0/0
    to: 0.0.0.0/0
    # udp.portrange: 40000-45000
    command: udpassociate
    log: error connect disconnect
}

socks pass {
    from: 0.0.0.0/0
    to: 0.0.0.0/0
    command: udpreply
    log: error connect disconnect
}

Save:

docker cp dante.conf <ContainerID>:/conf/dante.conf

docker start tgdante

Add Iptables rules: -A INPUT -p udp -m multiport --dports 40000:45000 -j ACCEPT Save:

Complete!

grishka commented 6 years ago

@SatoshiNakamotoOfficial's solution works for me. There also was a bug in libtgvoip that prevented TCP fallback and I've fixed that recently. The fixed library is already in the Android app, and other apps will follow soon. While sending voice over TCP isn't generally a great idea, sometimes it's better than nothing.