# Table of contents:
# Introduction
RNG is a command introduced with MSNP2.
It is a Notification Server command, without a response payload.
Used to invite ("ring") you to a Switchboard session.
# Client/Request
This command can not be sent from the client.
# Server/Response
RNG session-id address:port CKI cookie inviter-handle inviter-friendly-name {U} {domain} {direct-connect}
Where session-id is the Switchboard session ID you need in ANS.
Where address:port is the server you need to connect to join the conversation.
Where CKI is always CKI.
Where cookie is the Switchboard cookie, to be used in ANS.
Where inviter-handle is the inviter's handle.
Where inviter-handle is the inviter's friendly name.
Where U is always U. Since MSNP13.
The use of this parameter is unknown.
Where domain is always messenger.hotmail.com. Since MSNP13.
The use of this parameter is unknown.
Where direct-connect is set to one of these two values, Since MSNP14:
0: Thisaddress:portcan only be accessed only via the HTTP Gateway.1: Thisaddress:portcan be connected to via TCP as well as the HTTP Gateway.
# Examples
# Getting a Switchboard invite
NOTE: This has been line-broken.
Lines beginning with .. followed by a space are continuations of the previous line.
# Old
S: RNG 987654321 10.0.1.200:1863 CKI 123456789.123456789
.. anotheruser@hotmail.com another%20user
# New
Only in MSNP13.
S: RNG 987654321 10.0.1.200:1863 CKI 123456789.123456789
.. anotheruser@hotmail.com another%20user U messenger.hotmail.com
# Modern
Since MSNP14.
S: RNG 987654321 10.0.1.200:1863 CKI 123456789.123456789
.. anotheruser@hotmail.com another%20user U messenger.hotmail.com 1
# Invalid context
Inherited from being an unimplemented command.
C: RNG 1
Server disconnects client.