2024-10-15 13:14:20 -04:00
|
|
|
# Introduction
|
2024-10-16 16:12:41 -04:00
|
|
|
`RNG` is a command introduced with [MSNP2](../versions/msnp2.md).
|
2024-10-15 13:14:20 -04:00
|
|
|
|
|
|
|
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
|
2024-11-30 12:02:48 -05:00
|
|
|
`RNG session-id address:port CKI cookie inviter-handle inviter-friendly-name {U} {domain} {direct-connect}`
|
2024-10-15 13:14:20 -04:00
|
|
|
|
|
|
|
Where `session-id` is the Switchboard session identification number you need in [ANS](ans.md).
|
|
|
|
|
|
|
|
Where `address:port` is the server you need to connect to join the conversation.
|
|
|
|
|
|
|
|
Where `CKI` is always `CKI`.
|
|
|
|
|
2024-10-23 16:47:02 -04:00
|
|
|
Where `cookie` is the Switchboard cookie, to be used in [USR](usr.md) and [ANS](ans.md).
|
2024-10-15 13:14:20 -04:00
|
|
|
|
|
|
|
Where `inviter-handle` is the inviter's handle.
|
|
|
|
|
|
|
|
Where `inviter-handle` is the inviter's friendly name.
|
|
|
|
|
2024-11-30 12:02:48 -05:00
|
|
|
Where `U` is always `U`. Since [MSNP13](../versions/msnp13.md).
|
|
|
|
The use of this parameter is unknown.
|
|
|
|
|
|
|
|
Where `domain` is always `messenger.hotmail.com`. Since [MSNP13](../versions/msnp13.md).
|
|
|
|
The use of this parameter is unknown.
|
|
|
|
|
|
|
|
Where `direct-connect` is set to one of these two values, Since [MSNP14](../versions/msnp14.md):
|
|
|
|
* `0`: This `address:port` can only be accessed only via the HTTP Gateway.
|
|
|
|
* `1`: This `address:port` can be connected to via TCP as well as the HTTP Gateway.
|
|
|
|
|
2024-10-15 13:14:20 -04:00
|
|
|
# Examples
|
|
|
|
|
|
|
|
## Getting a Switchboard invite
|
2024-11-30 12:02:48 -05:00
|
|
|
*NOTE: This has been line-breaked.
|
|
|
|
Lines beginning with `..` followed by a space are continuations of the previous line.*
|
|
|
|
|
|
|
|
### Old
|
|
|
|
*Only in [MSNP2](../versions/msnp2.md) to [MSNP12](../versions/msnp12.md).*
|
|
|
|
```
|
|
|
|
S: RNG 987654331 10.0.1.200:1865 CKI 123456789.123456789.123456789
|
|
|
|
.. anotheruser@hotmail.com another%20user
|
|
|
|
```
|
|
|
|
|
|
|
|
### New
|
|
|
|
*Only in [MSNP13](../versions/msnp13.md).*
|
|
|
|
```
|
|
|
|
S: RNG 987654331 10.0.1.200:1865 CKI 123456789.123456789.123456789
|
|
|
|
.. anotheruser@hotmail.com another%20user U messenger.hotmail.com
|
|
|
|
```
|
|
|
|
|
|
|
|
### Modern
|
|
|
|
*Since [MSNP14](../versions/msnp14.md).*
|
2024-10-15 13:14:20 -04:00
|
|
|
```
|
2024-11-30 12:02:48 -05:00
|
|
|
S: RNG 987654331 10.0.1.200:1865 CKI 123456789.123456789.123456789
|
|
|
|
.. anotheruser@hotmail.com another%20user U messenger.hotmail.com 1
|
2024-10-15 13:14:20 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
## Invalid context
|
|
|
|
*Inherited from being an unimplemented command.*
|
|
|
|
```
|
|
|
|
C: RNG 1
|
|
|
|
```
|
|
|
|
Server disconnects client.
|
|
|
|
|
|
|
|
# Known changes
|
2024-11-30 12:02:48 -05:00
|
|
|
* [MSNP13](../versions/msnp13.md): Added two new parameters,
|
|
|
|
one of which is always `U`, and the other is always `messenger.hotmail.com`.
|
|
|
|
* [MSNP14](../versions/msnp14.md): Added a new parameter that is either `0` or `1`
|
|
|
|
to denote whenever the client should directly connect to the address, or use the HTTP Gateway to connect instead.
|