grishka / libtgvoip

VoIP library for Telegram clients
The Unlicense
389 stars 158 forks source link

Can't connect to the peer #92

Open zevlg opened 5 years ago

zevlg commented 5 years ago

I'm having problems connecting to official telegram client using libtgvoip

here is the log:

I/tgvoip: update data saving mode, config 0, enabled 0, reqd by peer 0
D/tgvoip: === Updating voip config ===
D/tgvoip: {"audio_frame_size":60,"jitter_min_delay_60":2,"jitter_max_delay_60":10,"jitter_max_slots_60":20,"jitter_losses_to_reset":20,"jitter_resync_threshold":0.5,"audio_congestion_window":1024,"audio_max_bitrate":20000,"audio_max_bitrate_edge":16000,"audio_max_bitrate_gprs":8000,"audio_max_bitrate_saving":8000,"audio_init_bitrate":16000,"audio_init_bitrate_edge":8000,"audio_init_bitrate_gprs":8000,"audio_init_bitrate_saving":8000,"audio_bitrate_step_incr":1000,"audio_bitrate_step_decr":1000,"use_system_ns":true,"use_system_aec":true,"force_tcp":false,"jitter_initial_delay_60":2,"adsp_good_impls":"(Qualcomm Fluence)","bad_call_rating":true,"use_ios_vpio_agc":false,"use_tcp":false,"audio_medium_fec_bitrate":20000,"audio_medium_fec_multiplier":0.1,"audio_strong_fec_bitrate":7000}
W/tgvoip: Set remote endpoints, allowP2P=1, connectionMaxLayer=65
V/tgvoip: Adding endpoint: 134.209.182.236:559, UDP
V/tgvoip: Adding endpoint: 91.108.8.2:531, UDP
V/tgvoip: Adding endpoint: 91.108.8.5:526, UDP
V/tgvoip: Adding endpoint: 134.209.176.124:557, UDP
V/tgvoip: Adding endpoint: 134.209.186.207:556, UDP
W/tgvoip: Starting voip controller
V/tgvoip: trying bind to port 25773
D/tgvoip: Bound to local UDP port 25773
I/tgvoip: Receive thread starting
I/tgvoip: before create audio io
I/tgvoip: successfully connected to 23.105.225.206:1488
V/tgvoip: Socket 27 is ready to send
V/tgvoip: UDP proxy control socket ready to send
I/tgvoip: AEC: 1 NS: 1 AGC: 1
I/tgvoip: Audio initialization took 0.036406 seconds
W/tgvoip: Not ready to send - enqueueing
W/tgvoip: Not ready to send - enqueueing
W/tgvoip: Not ready to send - enqueueing
W/tgvoip: Not ready to send - enqueueing
W/tgvoip: Not ready to send - enqueueing
V/tgvoip: Call state changed to 2
I/tgvoip: === send thread exiting ===
V/tgvoip: socks5: VER=05, METHOD=02
V/tgvoip: socks5: auth response VER=01, STATUS=00
V/tgvoip: socks5: authentication succeeded
V/tgvoip: Sending udp associate
V/tgvoip: socks5: udp associate successful, given endpoint 23.108.217.198:57894
V/tgvoip: UDP proxy initialized
I/tgvoip: Resetting UDP availability
V/tgvoip: Socket 26 is ready to send
I/tgvoip: Sending queued packet
W/tgvoip: Send udp pings
I/tgvoip: Sending queued packet
V/tgvoip: Sending UDP ping to 91.108.8.5:526, id 4441475266705789262
I/tgvoip: Sending queued packet
V/tgvoip: Sending UDP ping to 91.108.8.2:531, id -7703959618806324945
I/tgvoip: Sending queued packet
V/tgvoip: Sending UDP ping to 134.209.186.207:556, id -8935923022641102571
V/tgvoip: Sending UDP ping to 134.209.176.124:557, id 4729247778523452789
I/tgvoip: Sending queued packet
V/tgvoip: Sending UDP ping to 134.209.182.236:559, id -5074907828049057263
W/tgvoip: Send udp pings
V/tgvoip: Sending UDP ping to 91.108.8.5:526, id 9060876288895160672
V/tgvoip: Sending UDP ping to 91.108.8.2:531, id 5488553117056903403
V/tgvoip: Sending UDP ping to 134.209.186.207:556, id 7968411937965077521
V/tgvoip: Sending UDP ping to 134.209.176.124:557, id -7449512232857068192
V/tgvoip: Sending UDP ping to 134.209.182.236:559, id 6099319604174485090
W/tgvoip: Send udp pings
V/tgvoip: Sending UDP ping to 91.108.8.5:526, id 6220455090801080952
V/tgvoip: Sending UDP ping to 91.108.8.2:531, id 492313030131660914
V/tgvoip: Sending UDP ping to 134.209.186.207:556, id 9145240022446986028
V/tgvoip: Sending UDP ping to 134.209.176.124:557, id 2406939392765307096
V/tgvoip: Sending UDP ping to 134.209.182.236:559, id -5394891798602119865
W/tgvoip: Send udp pings
V/tgvoip: Sending UDP ping to 91.108.8.5:526, id -6302722642300240301
V/tgvoip: Sending UDP ping to 91.108.8.2:531, id 8721768830081396553
V/tgvoip: Sending UDP ping to 134.209.186.207:556, id 8274791091726808735
V/tgvoip: Sending UDP ping to 134.209.176.124:557, id -3581150452088765552
V/tgvoip: Sending UDP ping to 134.209.182.236:559, id 4089437349257006681
I/tgvoip: UDP ping reply count: 0.00
I/tgvoip: Proxy does not let UDP through, closing proxy connection and using UDP directly
I/tgvoip: Resetting UDP availability
W/tgvoip: Send udp pings
V/tgvoip: Select canceled
V/tgvoip: Sending UDP ping to 91.108.8.5:526, id 4328686965824189298
V/tgvoip: Sending UDP ping to 91.108.8.2:531, id 4680094731392781299
V/tgvoip: Sending UDP ping to 134.209.186.207:556, id -7332011875088371450
V/tgvoip: Sending UDP ping to 134.209.176.124:557, id 4376966863906813296
V/tgvoip: Sending UDP ping to 134.209.182.236:559, id -7745502994920056446
I/tgvoip: Detected IPv4 connectivity, will not try IPv6
V/tgvoip: Received UDP ping reply from 134.209.186.207:556: date=1562409529, queryID=-7332011875088371450, my IP=37.145.127.46, my port=25773
V/tgvoip: Received UDP ping reply from 134.209.176.124:557: date=1562409534, queryID=4376966863906813296, my IP=37.145.127.46, my port=25773
V/tgvoip: Received UDP ping reply from 134.209.182.236:559: date=1562409533, queryID=-7745502994920056446, my IP=37.145.127.46, my port=25773
D/tgvoip: Received init
I/tgvoip: Peer version is 8
I/tgvoip: Sending init ack
I/tgvoip: Peer network address probably changed, switching to relay
I/tgvoip: Sending public endpoints request
D/tgvoip: Sending public endpoints request to 91.108.8.5:526
D/tgvoip: Sending public endpoints request to 91.108.8.2:531
D/tgvoip: Sending public endpoints request to 134.209.186.207:556
D/tgvoip: Sending public endpoints request to 134.209.176.124:557
D/tgvoip: Sending public endpoints request to 134.209.182.236:559
E/tgvoip: ProcessExtraData
W/tgvoip: Error parsing packet: Not enough bytes in buffer
W/tgvoip: Send udp pings
V/tgvoip: Sending UDP ping to 91.108.8.5:526, id 3507588293281162409
V/tgvoip: Sending UDP ping to 91.108.8.2:531, id -2277774931710466565
V/tgvoip: Sending UDP ping to 134.209.186.207:556, id 1015772244107978060
V/tgvoip: Sending UDP ping to 134.209.176.124:557, id 5720722344648352682
V/tgvoip: Sending UDP ping to 134.209.182.236:559, id -2055082073813076129
V/tgvoip: Received UDP ping reply from 134.209.186.207:556: date=1562409530, queryID=1015772244107978060, my IP=37.145.127.46, my port=25773
V/tgvoip: Received UDP ping reply from 134.209.176.124:557: date=1562409535, queryID=5720722344648352682, my IP=37.145.127.46, my port=25773
V/tgvoip: Received UDP ping reply from 134.209.182.236:559: date=1562409534, queryID=-2055082073813076129, my IP=37.145.127.46, my port=25773
W/tgvoip: Packet 2240156407 is out of order and too late
I/tgvoip: Peer network address probably changed, switching to relay
I/tgvoip: Sending public endpoints request
D/tgvoip: Sending public endpoints request to 91.108.8.5:526
D/tgvoip: Sending public endpoints request to 91.108.8.2:531
D/tgvoip: Sending public endpoints request to 134.209.186.207:556
D/tgvoip: Sending public endpoints request to 134.209.176.124:557
D/tgvoip: Sending public endpoints request to 134.209.182.236:559
W/tgvoip: Packet 2481759104 is out of order and too late
W/tgvoip: Send udp pings
V/tgvoip: Sending UDP ping to 91.108.8.5:526, id 582785621057503917
V/tgvoip: Sending UDP ping to 91.108.8.2:531, id 4992978033090699519
V/tgvoip: Sending UDP ping to 134.209.186.207:556, id -8873938423238788053
V/tgvoip: Sending UDP ping to 134.209.176.124:557, id -1161816140600476397
V/tgvoip: Sending UDP ping to 134.209.182.236:559, id -2330911144159093905
V/tgvoip: Received UDP ping reply from 134.209.186.207:556: date=1562409530, queryID=-8873938423238788053, my IP=37.145.127.46, my port=25773
V/tgvoip: Received UDP ping reply from 134.209.176.124:557: date=1562409535, queryID=-1161816140600476397, my IP=37.145.127.46, my port=25773
V/tgvoip: Received UDP ping reply from 134.209.182.236:559: date=1562409534, queryID=-2330911144159093905, my IP=37.145.127.46, my port=25773
W/tgvoip: Error parsing packet: Not enough bytes in buffer
W/tgvoip: Packet 3942843007 is out of order and too late
W/tgvoip: Packet 4014795878 is out of order and too late
W/tgvoip: Send udp pings
V/tgvoip: Sending UDP ping to 91.108.8.5:526, id 2230981910017526811
V/tgvoip: Sending UDP ping to 91.108.8.2:531, id 638186632623607967
V/tgvoip: Sending UDP ping to 134.209.186.207:556, id 2914682005968446342
V/tgvoip: Sending UDP ping to 134.209.176.124:557, id 1512108124789789105
V/tgvoip: Sending UDP ping to 134.209.182.236:559, id 5812105261843838642
V/tgvoip: Received UDP ping reply from 134.209.186.207:556: date=1562409531, queryID=2914682005968446342, my IP=37.145.127.46, my port=25773
V/tgvoip: Received UDP ping reply from 134.209.176.124:557: date=1562409536, queryID=1512108124789789105, my IP=37.145.127.46, my port=25773
V/tgvoip: Received UDP ping reply from 134.209.182.236:559: date=1562409535, queryID=5812105261843838642, my IP=37.145.127.46, my port=25773
W/tgvoip: Packet 893259920 is out of order and too late
W/tgvoip: Error parsing packet: Not enough bytes in buffer
I/tgvoip: Peer network address probably changed, switching to relay
I/tgvoip: Sending public endpoints request
D/tgvoip: Sending public endpoints request to 91.108.8.5:526
D/tgvoip: Sending public endpoints request to 91.108.8.2:531
D/tgvoip: Sending public endpoints request to 134.209.186.207:556
D/tgvoip: Sending public endpoints request to 134.209.176.124:557
D/tgvoip: Sending public endpoints request to 134.209.182.236:559
W/tgvoip: Error parsing packet: Not enough bytes in buffer
W/tgvoip: Packet 3938690194 is out of order and too late
I/tgvoip: UDP ping reply count: 4.00
W/tgvoip: Packet 3032711617 is out of order and too late
I/tgvoip: Peer network address probably changed, switching to relay
I/tgvoip: Sending public endpoints request
D/tgvoip: Sending public endpoints request to 91.108.8.5:526
D/tgvoip: Sending public endpoints request to 91.108.8.2:531
D/tgvoip: Sending public endpoints request to 134.209.186.207:556
D/tgvoip: Sending public endpoints request to 134.209.176.124:557
D/tgvoip: Sending public endpoints request to 134.209.182.236:559
E/tgvoip: ProcessExtraData
W/tgvoip: Error parsing packet: Not enough bytes in buffer
I/tgvoip: Peer network address probably changed, switching to relay
I/tgvoip: Sending public endpoints request
D/tgvoip: Sending public endpoints request to 91.108.8.5:526
D/tgvoip: Sending public endpoints request to 91.108.8.2:531
D/tgvoip: Sending public endpoints request to 134.209.186.207:556
D/tgvoip: Sending public endpoints request to 134.209.176.124:557
D/tgvoip: Sending public endpoints request to 134.209.182.236:559
E/tgvoip: ProcessExtraData
W/tgvoip: Error parsing packet: Not enough bytes in buffer
W/tgvoip: Packet 1409277214 is out of order and too late
W/tgvoip: Error parsing packet: Not enough bytes in buffer
W/tgvoip: Packet 2952143796 is out of order and too late
W/tgvoip: Packet 2526917132 is out of order and too late
W/tgvoip: Packet 3031755732 is out of order and too late
I/tgvoip: Peer network address probably changed, switching to relay
I/tgvoip: Sending public endpoints request
D/tgvoip: Sending public endpoints request to 91.108.8.5:526
D/tgvoip: Sending public endpoints request to 91.108.8.2:531
D/tgvoip: Sending public endpoints request to 134.209.186.207:556
D/tgvoip: Sending public endpoints request to 134.209.176.124:557
D/tgvoip: Sending public endpoints request to 134.209.182.236:559
I/tgvoip: Peer network address probably changed, switching to relay
I/tgvoip: Sending public endpoints request
D/tgvoip: Sending public endpoints request to 91.108.8.5:526
D/tgvoip: Sending public endpoints request to 91.108.8.2:531
D/tgvoip: Sending public endpoints request to 134.209.186.207:556
D/tgvoip: Sending public endpoints request to 134.209.176.124:557
D/tgvoip: Sending public endpoints request to 134.209.182.236:559
I/tgvoip: Peer network address probably changed, switching to relay
I/tgvoip: Sending public endpoints request
D/tgvoip: Sending public endpoints request to 91.108.8.5:526
D/tgvoip: Sending public endpoints request to 91.108.8.2:531
D/tgvoip: Sending public endpoints request to 134.209.186.207:556
D/tgvoip: Sending public endpoints request to 134.209.176.124:557
D/tgvoip: Sending public endpoints request to 134.209.182.236:559
E/tgvoip: ProcessExtraData
W/tgvoip: Error parsing packet: Not enough bytes in buffer
W/tgvoip: Packet 3239556762 is out of order and too late

The code using libtgvoip is pretty simple.

What am I doing wrong?

Thanks

grishka commented 5 years ago

What is on the other end of the call?

zevlg commented 5 years ago

Call is accepted and stuck in "Connecting..." state

zevlg commented 5 years ago

Still no luck with updated version, here is the logs:

---------------
libtgvoip v2.5 on Linux 4.8.0-36-generic (#36~16.04.1-Ubuntu SMP Sun Feb 5 09:39:57 UTC 2017) x86_64
Log started on 12/09/2019 at 11:07:25
---------------
09-12 11:07:25 I: update data saving mode, config 0, enabled 0, reqd by peer 0
09-12 11:07:25 D: === Updating voip config ===
09-12 11:07:25 D: {"audio_frame_size":60,"jitter_min_delay_60":2,"jitter_max_delay_60":10,"jitter_max_slots_60":20,"jitter_losses_to_reset":20,"jitter_resync_threshold":0.5,"audio_congestion_window":1024,"audio_max_bitrate":20000,"audio_max_bitrate_edge":16000,"audio_max_bitrate_gprs":8000,"audio_max_bitrate_saving":8000,"audio_init_bitrate":16000,"audio_init_bitrate_edge":8000,"audio_init_bitrate_gprs":8000,"audio_init_bitrate_saving":8000,"audio_bitrate_step_incr":1000,"audio_bitrate_step_decr":1000,"use_system_ns":true,"use_system_aec":true,"force_tcp":false,"jitter_initial_delay_60":2,"adsp_good_impls":"(Qualcomm Fluence)","bad_call_rating":true,"use_ios_vpio_agc":false,"use_tcp":false,"audio_medium_fec_bitrate":20000,"audio_medium_fec_multiplier":0.1,"audio_strong_fec_bitrate":7000}
09-12 11:07:25 W: Set remote endpoints, allowP2P=0, connectionMaxLayer=65
09-12 11:07:25 V: Adding endpoint: 91.108.8.2:530, UDP
09-12 11:07:25 V: Adding endpoint: 91.108.8.5:521, UDP
09-12 11:07:25 V: Adding endpoint: 134.209.176.124:555, UDP
09-12 11:07:25 V: Adding endpoint: 134.209.178.131:555, UDP
09-12 11:07:25 V: Adding endpoint: 134.209.178.88:559, UDP
09-12 11:07:25 W: Starting voip controller
09-12 11:07:25 V: trying bind to port 19521
09-12 11:07:25 D: Bound to local UDP port 19521
09-12 11:07:25 I: Receive thread starting
09-12 11:07:25 V: Socket 27 is ready to send
09-12 11:07:25 W: Send udp pings
09-12 11:07:25 V: Sending UDP ping to 91.108.8.5:521, id 3183072039443264946
09-12 11:07:25 V: Sending UDP ping to 91.108.8.2:530, id 1428996541403704619
09-12 11:07:25 V: Sending UDP ping to 134.209.176.124:555, id 1141310959146440585
09-12 11:07:25 V: Sending UDP ping to 134.209.178.131:555, id -3970808309205227345
09-12 11:07:25 V: Sending UDP ping to 134.209.178.88:559, id -9035547164576168338
09-12 11:07:25 I: before create audio io
09-12 11:07:26 I: AEC: 1 NS: 1 AGC: 1
09-12 11:07:26 I: Audio initialization took 0.026965 seconds
09-12 11:07:26 V: Call state changed to 2
09-12 11:07:26 I: Detected IPv4 connectivity, will not try IPv6
09-12 11:07:26 V: Received UDP ping reply from 134.209.178.88:559: date=1568275459, queryID=-9035547164576168338, my IP=95.24.150.100, my port=19521, selfRTT=0.058031
09-12 11:07:26 V: Received UDP ping reply from 134.209.176.124:555: date=1568275312, queryID=1141310959146440585, my IP=95.24.150.100, my port=19521, selfRTT=0.058091
09-12 11:07:26 V: Received UDP ping reply from 134.209.178.131:555: date=1568275603, queryID=-3970808309205227345, my IP=95.24.150.100, my port=19521, selfRTT=0.058092
09-12 11:07:26 W: Received a packet of unknown type F0834101
09-12 11:07:26 W: Received a packet of unknown type F0834101
09-12 11:07:26 W: Received a packet of unknown type F0834101
09-12 11:07:26 W: Send udp pings
09-12 11:07:26 V: Sending UDP ping to 91.108.8.5:521, id -6293058094549900483
09-12 11:07:26 V: Sending UDP ping to 91.108.8.2:530, id 6298924739322755338
09-12 11:07:26 V: Sending UDP ping to 134.209.176.124:555, id -3742338182071183359
09-12 11:07:26 V: Sending UDP ping to 134.209.178.131:555, id -5759177365399559924
09-12 11:07:26 V: Sending UDP ping to 134.209.178.88:559, id 505571635691106626
09-12 11:07:26 V: Received UDP ping reply from 134.209.178.88:559: date=1568275459, queryID=505571635691106626, my IP=95.24.150.100, my port=19521, selfRTT=0.055098
09-12 11:07:26 V: Received UDP ping reply from 134.209.176.124:555: date=1568275312, queryID=-3742338182071183359, my IP=95.24.150.100, my port=19521, selfRTT=0.056082
09-12 11:07:26 V: Received UDP ping reply from 134.209.178.131:555: date=1568275604, queryID=-5759177365399559924, my IP=95.24.150.100, my port=19521, selfRTT=0.056881
09-12 11:07:26 W: Received a packet of unknown type D4AD4B01
09-12 11:07:26 W: Received a packet of unknown type D4AD4B01
09-12 11:07:26 W: Received a packet of unknown type D4AD4B01
09-12 11:07:26 W: Send udp pings
09-12 11:07:26 V: Sending UDP ping to 91.108.8.5:521, id 4169579147837508015
09-12 11:07:26 V: Sending UDP ping to 91.108.8.2:530, id -6735354996551527262
09-12 11:07:26 V: Sending UDP ping to 134.209.176.124:555, id -1129803951668856870
09-12 11:07:26 V: Sending UDP ping to 134.209.178.131:555, id 2438488916037910230
09-12 11:07:26 V: Sending UDP ping to 134.209.178.88:559, id -7064725103864981373
09-12 11:07:27 V: Received UDP ping reply from 134.209.178.88:559: date=1568275460, queryID=-7064725103864981373, my IP=95.24.150.100, my port=19521, selfRTT=0.056046
09-12 11:07:27 V: Received UDP ping reply from 134.209.176.124:555: date=1568275313, queryID=-1129803951668856870, my IP=95.24.150.100, my port=19521, selfRTT=0.056175
09-12 11:07:27 V: Received UDP ping reply from 134.209.178.131:555: date=1568275604, queryID=2438488916037910230, my IP=95.24.150.100, my port=19521, selfRTT=0.056304
09-12 11:07:27 W: Received a packet of unknown type 817E8801
09-12 11:07:27 W: Received a packet of unknown type 817E8801
09-12 11:07:27 W: Received a packet of unknown type 817E8801
09-12 11:07:27 W: Send udp pings
09-12 11:07:27 V: Sending UDP ping to 91.108.8.5:521, id 9201647366718775583
09-12 11:07:27 V: Sending UDP ping to 91.108.8.2:530, id 3868431510549141432
09-12 11:07:27 V: Sending UDP ping to 134.209.176.124:555, id 4444867449107406200
09-12 11:07:27 V: Sending UDP ping to 134.209.178.131:555, id 6145414081938702160
09-12 11:07:27 V: Sending UDP ping to 134.209.178.88:559, id 5317858510528753998
09-12 11:07:27 V: Received UDP ping reply from 134.209.178.88:559: date=1568275460, queryID=5317858510528753998, my IP=95.24.150.100, my port=19521, selfRTT=0.055990
09-12 11:07:27 V: Received UDP ping reply from 134.209.176.124:555: date=1568275313, queryID=4444867449107406200, my IP=95.24.150.100, my port=19521, selfRTT=0.056227
09-12 11:07:27 V: Received UDP ping reply from 134.209.178.131:555: date=1568275605, queryID=6145414081938702160, my IP=95.24.150.100, my port=19521, selfRTT=0.056485
09-12 11:07:27 W: Received a packet of unknown type C353E201
09-12 11:07:27 W: Received a packet of unknown type C353E201
09-12 11:07:27 W: Received a packet of unknown type C353E201
09-12 11:07:28 W: Received a packet of unknown type C4EBD701
09-12 11:07:28 W: Received a packet of unknown type C4EBD701
09-12 11:07:28 W: Received a packet of unknown type C4EBD701
09-12 11:07:28 I: UDP ping reply count: 4.00
09-12 11:07:28 W: Received a packet of unknown type 7FC59201
09-12 11:07:28 W: Received a packet of unknown type 7FC59201
09-12 11:07:28 W: Received a packet of unknown type 7FC59201
09-12 11:07:29 W: Received a packet of unknown type BD5B7501
09-12 11:07:29 W: Received a packet of unknown type BD5B7501
09-12 11:07:29 W: Received a packet of unknown type BD5B7501
09-12 11:07:29 W: Received a packet of unknown type ACAE8001
09-12 11:07:29 W: Received a packet of unknown type ACAE8001
09-12 11:07:29 W: Received a packet of unknown type ACAE8001
09-12 11:07:30 W: Received a packet of unknown type 4A603301
09-12 11:07:30 W: Received a packet of unknown type 4A603301
09-12 11:07:30 W: Received a packet of unknown type 4A603301
09-12 11:07:30 W: Received a packet of unknown type 52A25201
09-12 11:07:30 W: Received a packet of unknown type 52A25201
09-12 11:07:30 W: Received a packet of unknown type 52A25201
09-12 11:07:31 W: Received a packet of unknown type 52A25201
09-12 11:07:31 W: Received a packet of unknown type 52A25201
09-12 11:07:31 W: Received a packet of unknown type 52A25201
09-12 11:07:31 W: Received a packet of unknown type 5DAD1101
09-12 11:07:31 W: Received a packet of unknown type 5DAD1101
09-12 11:07:31 W: Received a packet of unknown type 5DAD1101
09-12 11:07:32 W: Received a packet of unknown type 5DAD1101
09-12 11:07:32 W: Received a packet of unknown type 5DAD1101
09-12 11:07:32 W: Received a packet of unknown type 5DAD1101
09-12 11:07:32 W: Received a packet of unknown type DFEB4B01
09-12 11:07:32 W: Received a packet of unknown type DFEB4B01
09-12 11:07:32 W: Received a packet of unknown type DFEB4B01
09-12 11:07:33 W: Received a packet of unknown type 3C1C3901
09-12 11:07:33 W: Received a packet of unknown type 3C1C3901
09-12 11:07:33 W: Received a packet of unknown type 3C1C3901
09-12 11:07:33 W: Received a packet of unknown type FF0C1701
09-12 11:07:33 W: Received a packet of unknown type FF0C1701
09-12 11:07:33 W: Received a packet of unknown type FF0C1701
09-12 11:07:34 W: Received a packet of unknown type FF0C1701
09-12 11:07:34 W: Received a packet of unknown type FF0C1701
09-12 11:07:34 W: Received a packet of unknown type FF0C1701
09-12 11:07:34 W: Received a packet of unknown type F1184A01
09-12 11:07:34 W: Received a packet of unknown type F1184A01
09-12 11:07:34 W: Received a packet of unknown type F1184A01
09-12 11:07:35 W: Received a packet of unknown type 484CE301
09-12 11:07:35 W: Received a packet of unknown type 484CE301
09-12 11:07:35 W: Received a packet of unknown type 484CE301
09-12 11:07:35 W: Received a packet of unknown type 643F9001
09-12 11:07:35 W: Received a packet of unknown type 643F9001
09-12 11:07:35 W: Received a packet of unknown type 643F9001
09-12 11:07:36 W: Received a packet of unknown type 1AB70801
09-12 11:07:36 W: Received a packet of unknown type 1AB70801
09-12 11:07:36 W: Received a packet of unknown type 1AB70801
09-12 11:07:36 W: Received a packet of unknown type 939C5201
09-12 11:07:36 W: Received a packet of unknown type 939C5201
09-12 11:07:36 W: Received a packet of unknown type 939C5201
09-12 11:07:37 W: Received a packet of unknown type F12FF501
09-12 11:07:37 W: Received a packet of unknown type F12FF501
09-12 11:07:37 W: Received a packet of unknown type F12FF501
09-12 11:07:37 W: Received a packet of unknown type F12FF501
09-12 11:07:37 W: Received a packet of unknown type F12FF501
09-12 11:07:37 W: Received a packet of unknown type F12FF501
09-12 11:07:38 W: Received a packet of unknown type AE64FB01
09-12 11:07:38 W: Received a packet of unknown type AE64FB01
09-12 11:07:38 W: Received a packet of unknown type AE64FB01
09-12 11:07:38 W: Received a packet of unknown type 22F37301
09-12 11:07:38 W: Received a packet of unknown type 22F37301
09-12 11:07:38 W: Received a packet of unknown type 22F37301
09-12 11:07:39 D: Entered VoIPController::Stop
09-12 11:07:39 D: before shutdown socket
09-12 11:07:39 D: before join sendThread
09-12 11:07:39 V: Select canceled
09-12 11:07:39 I: === recv thread exiting ===
09-12 11:07:39 I: === send thread exiting ===
09-12 11:07:39 D: before join recvThread
09-12 11:07:39 D: before stop messageThread
09-12 11:07:39 D: Before stop audio I/O
09-12 11:07:39 D: Left VoIPController::Stop [need rate = 0]
09-12 11:07:39 D: Entered VoIPController::~VoIPController
09-12 11:07:39 D: before close socket
09-12 11:07:39 D: before delete audioIO
09-12 11:07:39 D: before delete encoder
09-12 11:07:39 D: before delete echo canceller
09-12 11:07:39 D: Left VoIPController::~VoIPController

What are those "Received a packet of unknown type" ?

Official telegram-desktop client (with some old libtgvoip) have no problems connecting to the same peer. Here is logs from it

D/tgvoip: === Updating voip config ===
V/tgvoip: adsp_good_impls -> (Qualcomm Fluence)
V/tgvoip: audio_bitrate_step_decr -> 1000.000000
V/tgvoip: audio_bitrate_step_incr -> 1000.000000
V/tgvoip: audio_congestion_window -> 1024.000000
V/tgvoip: audio_frame_size -> 60.000000
V/tgvoip: audio_init_bitrate -> 16000.000000
V/tgvoip: audio_init_bitrate_edge -> 8000.000000
V/tgvoip: audio_init_bitrate_gprs -> 8000.000000
V/tgvoip: audio_init_bitrate_saving -> 8000.000000
V/tgvoip: audio_max_bitrate -> 20000.000000
V/tgvoip: audio_max_bitrate_edge -> 16000.000000
V/tgvoip: audio_max_bitrate_gprs -> 8000.000000
V/tgvoip: audio_max_bitrate_saving -> 8000.000000
V/tgvoip: audio_medium_fec_bitrate -> 20000.000000
V/tgvoip: audio_medium_fec_multiplier -> 0.100000
V/tgvoip: audio_strong_fec_bitrate -> 7000.000000
V/tgvoip: bad_call_rating -> true
V/tgvoip: force_tcp -> false
V/tgvoip: jitter_initial_delay_60 -> 2.000000
V/tgvoip: jitter_losses_to_reset -> 20.000000
V/tgvoip: jitter_max_delay_60 -> 10.000000
V/tgvoip: jitter_max_slots_60 -> 20.000000
V/tgvoip: jitter_min_delay_60 -> 2.000000
V/tgvoip: jitter_resync_threshold -> 0.500000
V/tgvoip: use_ios_vpio_agc -> false
V/tgvoip: use_system_aec -> true
V/tgvoip: use_system_ns -> true
V/tgvoip: use_tcp -> false
V/tgvoip: new endpoint 2368788869244: 134.209.176.124:551
V/tgvoip: new endpoint 2398853640792: 134.209.178.88:558
V/tgvoip: new endpoint 2269276538882: 91.108.8.2:528
V/tgvoip: new endpoint 2381673771651: 134.209.178.131:554
V/tgvoip: new endpoint 2243506735109: 91.108.8.5:522
W/tgvoip: Set remote endpoints
V/tgvoip: Adding endpoint: 134.209.176.124:551, UDP
V/tgvoip: Adding endpoint: 134.209.178.88:558, UDP
V/tgvoip: Adding endpoint: 91.108.8.2:528, UDP
V/tgvoip: Adding endpoint: 134.209.178.131:554, UDP
V/tgvoip: Adding endpoint: 91.108.8.5:522, UDP
I/tgvoip: update data saving mode, config 0, enabled 0, reqd by peer 0
W/tgvoip: Starting voip controller
V/tgvoip: trying bind to port 17436
D/tgvoip: Bound to local UDP port 17436
E/tgvoip: can't set thread priority: Operation not permitted
I/tgvoip: Receive thread starting
E/tgvoip: can't set thread priority: Operation not permitted
E/tgvoip: can't set thread priority: Operation not permitted
V/tgvoip: Call state changed to 2
V/tgvoip: Sending UDP ping to 134.209.176.124:551
V/tgvoip: Sending UDP ping to 134.209.178.88:558
V/tgvoip: Sending UDP ping to 91.108.8.2:528
V/tgvoip: Sending UDP ping to 134.209.178.131:554
V/tgvoip: Sending UDP ping to 91.108.8.5:522
D/tgvoip: SIGNAL BAR COUNT CHANGED: 1
I/tgvoip: Detected IPv4 connectivity, will not try IPv6
D/tgvoip: SIGNAL BAR COUNT CHANGED: 2
D/tgvoip: SIGNAL BAR COUNT CHANGED: 3
D/tgvoip: SIGNAL BAR COUNT CHANGED: 4
D/tgvoip: Received init
I/tgvoip: Peer version is 9
W/tgvoip: Received duplicated packet for seq 1
W/tgvoip: Received duplicated packet for seq 1
V/tgvoip: Call state changed to 2
D/tgvoip: Received init ack
I/tgvoip: peer version from init ack 9
I/tgvoip: before create audio io
V/tgvoip: starting encoder, packets per frame=3
E/tgvoip: can't set thread priority: Operation not permitted
E/tgvoip: can't set thread priority: Operation not permitted
I/tgvoip: decoder: packets per frame 3
W/tgvoip: jitter: found no packet for timestamp 0 (last put = 0, lost = 0)
W/tgvoip: jitter: found no packet for timestamp 60 (last put = 0, lost = 0)
V/tgvoip: Trying to recover late packet
W/tgvoip: jitter: found no packet for timestamp 0 (last put = 0, lost = 0)
I/tgvoip: Sending public endpoints request
D/tgvoip: Sending public endpoints request to 134.209.176.124:551
V/tgvoip: PLC
V/tgvoip: opus_encoder: setting bitrate to 16000
V/tgvoip: new endpoint 0: 95.24.150.100:24782
W/tgvoip: Received reflector peer info, my=6496185F:17436, peer=6496185F:24782
W/tgvoip: Detected LAN
I/tgvoip: Interface lo, address 127.0.0.1

I/tgvoip: Interface wlp4s0, address 192.168.1.16

D/tgvoip: Send reliably, type=10, len=8, retry=0,500, timeout=10,000
D/tgvoip: Sending queued packet, seq=6, type=10, len=8
V/tgvoip: received lan endpoint
V/tgvoip: new endpoint 0: 192.168.1.94:24782
D/tgvoip: queued packet 0, seq 0=6
V/tgvoip: remote acks index 4294967294, value -1,000000
D/tgvoip: queued packet 0, seq 1=0
D/tgvoip: Received init
I/tgvoip: Peer version is 9
W/tgvoip: Received duplicated packet for seq 4
W/tgvoip: Received duplicated packet for seq 4
V/tgvoip: Call state changed to 3
I/tgvoip: jitter: resyncing, next timestamp = -120 (step=60, minDelay=2)
W/tgvoip: jitter: found no packet for timestamp -120 (last put = 0, lost = 0)
V/tgvoip: Trying to recover late packet
W/tgvoip: jitter: found no packet for timestamp -180 (last put = 0, lost = 0)
V/tgvoip: PLC
V/tgvoip: Sending ping to 134.209.176.124
V/tgvoip: Sending ping to 134.209.178.88
V/tgvoip: Sending ping to 91.108.8.2
V/tgvoip: Sending ping to 134.209.178.131
V/tgvoip: Sending ping to 91.108.8.5
V/tgvoip: Sending ping to 95.24.150.100
V/tgvoip: Sending ping to 192.168.1.94
D/tgvoip: queued packet 0, seq 0=6
V/tgvoip: remote acks index 10, value 163631,435772
D/tgvoip: did ack seq 6, removing
D/tgvoip: Current RTT via 192.168.1.94: 0,003, average: 0,003
W/tgvoip: jitter: found no packet for timestamp -60 (last put = 0, lost = 0)
V/tgvoip: Trying to recover late packet
W/tgvoip: jitter: found no packet for timestamp -120 (last put = 0, lost = 0)
V/tgvoip: PLC
V/tgvoip: opus_encoder: setting bitrate to 17000
I/tgvoip: jitter: resyncing, next timestamp = -60 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 0 (step=60, minDelay=2)
D/tgvoip: Current RTT via 134.209.178.88: 0,109, average: 0,109
V/tgvoip: Trying to recover late packet
W/tgvoip: jitter: found no packet for timestamp -60 (last put = 120, lost = 0)
D/tgvoip: Current RTT via 134.209.178.131: 0,114, average: 0,114
D/tgvoip: Current RTT via 134.209.176.124: 0,116, average: 0,116
I/tgvoip: Switching to p2p (LAN)
I/tgvoip: jitter: resyncing, next timestamp = 120 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 240 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 300 (step=60, minDelay=2)
W/tgvoip: jitter: found no packet for timestamp 300 (last put = 480, lost = 0)
I/tgvoip: jitter: resyncing, next timestamp = 420 (step=60, minDelay=2)
V/tgvoip: Trying to recover late packet
W/tgvoip: jitter: found no packet for timestamp 360 (last put = 540, lost = 0)
I/tgvoip: jitter: resyncing, next timestamp = 540 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 660 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 720 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 840 (step=60, minDelay=2)
V/tgvoip: opus_encoder: setting bitrate to 18000
I/tgvoip: jitter: resyncing, next timestamp = 960 (step=60, minDelay=2)
W/tgvoip: jitter: found no packet for timestamp 960 (last put = 1080, lost = 0)
I/tgvoip: jitter: resyncing, next timestamp = 1020 (step=60, minDelay=2)
V/tgvoip: Trying to recover late packet
W/tgvoip: jitter: found no packet for timestamp 960 (last put = 1140, lost = 0)
I/tgvoip: jitter: resyncing, next timestamp = 1140 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 1260 (step=60, minDelay=2)
D/tgvoip: Received ping from 192.168.1.94:24782
W/tgvoip: jitter: found no packet for timestamp 1260 (last put = 1380, lost = 0)
I/tgvoip: jitter: resyncing, next timestamp = 1320 (step=60, minDelay=2)
D/tgvoip: Received ping from 134.209.178.88:558
D/tgvoip: Received ping from 134.209.176.124:551
D/tgvoip: Received ping from 134.209.178.131:554
V/tgvoip: Trying to recover late packet
W/tgvoip: jitter: found no packet for timestamp 1260 (last put = 1500, lost = 0)
I/tgvoip: jitter: resyncing, next timestamp = 1440 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 1560 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 1620 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 1740 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 1860 (step=60, minDelay=2)
W/tgvoip: jitter: found no packet for timestamp 1860 (last put = 1980, lost = 0)
I/tgvoip: jitter: resyncing, next timestamp = 1920 (step=60, minDelay=2)
V/tgvoip: opus_encoder: setting bitrate to 19000
V/tgvoip: Trying to recover late packet
W/tgvoip: jitter: found no packet for timestamp 1860 (last put = 2040, lost = 0)
I/tgvoip: jitter: resyncing, next timestamp = 2040 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 2160 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 2220 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 2340 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 2460 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 2520 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 2640 (step=60, minDelay=2)
W/tgvoip: jitter: found no packet for timestamp 2640 (last put = 2820, lost = 0)
I/tgvoip: jitter: resyncing, next timestamp = 2760 (step=60, minDelay=2)
V/tgvoip: Trying to recover late packet
W/tgvoip: jitter: found no packet for timestamp 2700 (last put = 2880, lost = 0)
I/tgvoip: jitter: resyncing, next timestamp = 2820 (step=60, minDelay=2)
V/tgvoip: opus_encoder: setting bitrate to 20000
I/tgvoip: jitter: resyncing, next timestamp = 2940 (step=60, minDelay=2)
W/tgvoip: jitter: found no packet for timestamp 2940 (last put = 3060, lost = 0)
I/tgvoip: jitter: resyncing, next timestamp = 3000 (step=60, minDelay=2)
V/tgvoip: Trying to recover late packet
W/tgvoip: jitter: found no packet for timestamp 2940 (last put = 3180, lost = 0)
I/tgvoip: jitter: resyncing, next timestamp = 3120 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 3240 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 3360 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 3480 (step=60, minDelay=2)
W/tgvoip: jitter: found no packet for timestamp 3480 (last put = 3660, lost = 0)
V/tgvoip: Trying to recover late packet
W/tgvoip: jitter: found no packet for timestamp 3480 (last put = 3660, lost = 0)
I/tgvoip: jitter: resyncing, next timestamp = 3600 (step=60, minDelay=2)
W/tgvoip: Received duplicated packet for seq 79
I/tgvoip: jitter: resyncing, next timestamp = 3720 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 3840 (step=60, minDelay=2)
W/tgvoip: jitter: found no packet for timestamp 3900 (last put = 3960, lost = 0)
I/tgvoip: jitter: resyncing, next timestamp = 3900 (step=60, minDelay=2)
W/tgvoip: jitter: found no packet for timestamp 3900 (last put = 4020, lost = 1)
V/tgvoip: Trying to recover late packet
W/tgvoip: jitter: found no packet for timestamp 3840 (last put = 4020, lost = 2)
V/tgvoip: PLC
I/tgvoip: jitter: resyncing, next timestamp = 3960 (step=60, minDelay=2)
V/tgvoip: Trying to recover late packet
W/tgvoip: jitter: found no packet for timestamp 3900 (last put = 4080, lost = 0)
I/tgvoip: jitter: resyncing, next timestamp = 4080 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 4200 (step=60, minDelay=2)
W/tgvoip: jitter: found no packet for timestamp 4200 (last put = 4320, lost = 0)
I/tgvoip: jitter: resyncing, next timestamp = 4260 (step=60, minDelay=2)
V/tgvoip: Trying to recover late packet
W/tgvoip: jitter: found no packet for timestamp 4200 (last put = 4380, lost = 0)
I/tgvoip: jitter: resyncing, next timestamp = 4380 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 4500 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 4560 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 4680 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 4800 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 4860 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 4980 (step=60, minDelay=2)
I/tgvoip: jitter: resyncing, next timestamp = 5100 (step=60, minDelay=2)
D/tgvoip: Entered VoIPController::~VoIPController
D/tgvoip: before shutdown socket
D/tgvoip: before join sendThread
V/tgvoip: Select canceled
I/tgvoip: === recv thread exiting ===
E/tgvoip: tried to send null packet
I/tgvoip: === send thread exiting ===
D/tgvoip: before join recvThread
D/tgvoip: before join tickThread
I/tgvoip: === tick thread exiting ===
D/tgvoip: before close socket
D/tgvoip: before delete jitter buffer
D/tgvoip: before stop decoder
I/tgvoip: ==== decoder exiting ====
D/tgvoip: before delete audio input
D/tgvoip: before delete encoder
D/tgvoip: before delete audio output
D/tgvoip: before delete decoder
D/tgvoip: before delete echo canceller
D/tgvoip: Left VoIPController::~VoIPController

Thanks