Gateway control messages

Greeting message

The message sent by the gateway immediately after a client connects.

Fields

Field
Required
Type
Description
lsg_version
required
string
The live gateway version.
Example message
1
lsg_version=0.2.0\n

Challenge request

The gateway sends this message immediately following the greeting message to authenticate the client.

Fields

Field
Required
Type
Description
cram
required
string
A randomly-generated challenge string. Must be encoded by the client into the response.
Example message
1
cram=j5pwMHz6vwXruJM4cOwQrQeQE0bImIzT\n

Authentication response

The gateway sends this response following the client's authentication request.

Fields

Field
Required
Type
Description
success
required
string
Set to 1 if the client was successfully authenticated, 0 otherwise.
error
optional
string
A description of the authentication error if the client was not successfully authenticated.
session_id
optional
string
A unique identifier representing the established session.
Example message
1
success=1|session_id=100322\n