Skip to main content

phoneCallProtocol

Protocol info for the VoIP library, see here » for details on how to populate it.

type tg.PhoneCallProtocol struct { /* ... */ }

Fields

NameTypeRequiredDescription
UDPP2PboolWhether to allow P2P connection to the other participant
UDPReflectorboolWhether to allow connection to the other participants through the reflector servers
MinLayerintyesMinimum layer for remote libtgvoip
MaxLayerintyesMaximum layer for remote libtgvoip
LibraryVersions[]stringyesWhen using phone.requestCall and phone.acceptCall, specify all library versions supported by the client. The server will merge and choose the best library version supported by both peers, returning only the best value in the result of the callee's phone.acceptCall and in the phoneCallAccepted update received by the caller.

References