Link Search Menu Expand Document

Constructor: phoneCallProtocol

Back to constructors index

Protocol info for libtgvoip

Attributes:

NameTypeRequiredDescription
udp_p2pBoolOptionalWhether to allow P2P connection to the other participant
udp_reflectorBoolOptionalWhether to allow connection to the other participants through the reflector servers
min_layerintYesMinimum layer for remote libtgvoip
max_layerintYesMaximum layer for remote libtgvoip
library_versionsArray of 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.

Type: PhoneCallProtocol

Example:

$phoneCallProtocol = ['_' => 'phoneCallProtocol', 'udp_p2p' => Bool, 'udp_reflector' => Bool, 'min_layer' => int, 'max_layer' => int, 'library_versions' => ['string', 'string']];