Skip to content

VoIP calls connection issues - PKT_INIT packets not receiving responses #1694

@dda777

Description

@dda777

Hello! I'm experiencing issues with VoIP calls in MadelineProto. The connection seems to be stuck in a loop sending PKT_INIT packets without receiving proper responses.

Environment:

  • MadelineProto version: 8.6.1
  • PHP version: 8.4-fpm
  • Running in Docker container

Observed behavior:

The VoIPController continuously sends PKT_INIT packets to UDP endpoints but appears to not establish a stable connection:

VoIPController, 1240306068: 	Sending PKT_INIT to udp://91.108.13.22:597...
VoIPController, 1240306068: 	Sending PKT_INIT to udp://91.108.9.39:597...
VoIPController, 1240306068: 	Sending PKT_INIT to udp://91.108.17.41:596...

IPv6 connections are failing with "Network is unreachable":

VoIPController, 1240306068: 	Got error while connecting to udp://[2001:b28:f23d:f101:1:0:111:306]:597: 
Amp\Socket\ConnectException: Connection to udp://[2001:b28:f23d:f101:1:0:111:306]:597 failed after 3 attempts

Audio playback seems to work (DJ loop: playing ... to primary queue), but the connection status remains unstable.

Questions:

  1. Is this behavior normal during VoIP call establishment?
  2. Are there known issues with VoIP calls to PC (Telegram Desktop) or iOS clients?
  3. Should IPv6 connectivity be required, or is IPv4-only sufficient?

My setup includes:

  • PHP extensions: uv-beta, redis, ffi, gmp
  • System limits configured as per documentation
  • All required dependencies installed

Has anyone successfully established stable VoIP calls with similar configuration? Any insights would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions