2024-10-11 15:40:21 -04:00
|
|
|
# Introduction
|
2024-10-10 15:38:51 -04:00
|
|
|
MSNP9 is the eighth released version of the Mobile Status Notification Protocol.
|
|
|
|
It was introduced officially in Client Version 6.0.0312.
|
|
|
|
|
2024-10-11 15:40:21 -04:00
|
|
|
# Command information
|
2024-10-10 15:38:51 -04:00
|
|
|
It introduces the notification service commands:
|
2024-10-21 17:31:11 -04:00
|
|
|
* [PGD](../commands/pgd.md)
|
2024-10-10 15:38:51 -04:00
|
|
|
|
|
|
|
*No switchboard or dispatch service commands were known to be introduced in this version*
|
|
|
|
|
|
|
|
It introduces the error codes:
|
|
|
|
* 282
|
|
|
|
|
|
|
|
The following commands were removed in this version:
|
2024-10-21 17:31:11 -04:00
|
|
|
* [PAG](../commands/pag.md) (returns 715)
|
2024-10-24 10:17:51 -04:00
|
|
|
* [LST](../commands/lst.md) (Only client-initated, the one in [SYN](../commands/syn.md) is kept,
|
|
|
|
removed in November, 2003 via automatic disconnect.)
|
|
|
|
* [LSG](../commands/lsg.md) (Only client-initated, the one in [SYN](../commands/syn.md) is kept,
|
|
|
|
removed in November, 2003 via automatic disconnect.)
|
2024-10-10 15:38:51 -04:00
|
|
|
|
2024-10-11 15:40:21 -04:00
|
|
|
# Known changes
|
|
|
|
(from [MSNP8](msnp8.md)):
|
2024-10-18 18:52:48 -04:00
|
|
|
* [CHG](../commands/chg.md), [ILN](../commands/iln.md), [NLN](../commands/nln.md): Added an optional MSNObject parameter.
|
2024-10-10 15:38:51 -04:00
|
|
|
Now you can tell other clients about image data associated with your account.
|
2024-10-15 13:14:20 -04:00
|
|
|
* [QNG](../commands/qng.md): Added a "next ping" time (in seconds) parameter.
|
|
|
|
* Switchboard [MSG](../commands/msg.md): Acknowledgement type D added.
|
2024-10-14 16:13:21 -04:00
|
|
|
Can respond with either [ACK](../commands/ack.md), error 282, or possibly any other error codes.
|
2024-10-26 06:56:17 -04:00
|
|
|
* [NOT](../commands/not.md): Extended notifications are now supported via the `<TEXTX>` element.
|
2024-10-10 15:38:51 -04:00
|
|
|
* Official Client: Error 603 is handled again after being removed in Client Version 5.0.
|
|
|
|
Error code 711 is no longer handled after being implemented in Client Version 5.0.
|
2024-10-20 07:52:06 -04:00
|
|
|
* Official Client: Supports the [Messenger Config](../services/msgrconfig.md) XML service, replacing `svcs.microsoft.com`.
|
2024-10-11 15:40:21 -04:00
|
|
|
|
|
|
|
# Client-server communication example
|
2024-10-13 17:03:57 -04:00
|
|
|
*NOTE: This has been line-breaked.
|
2024-10-15 13:14:20 -04:00
|
|
|
Lines beginning with `..` followed by a space are continuations of the previous line.*
|
2024-10-10 15:38:51 -04:00
|
|
|
```
|
|
|
|
C: VER 1 MSNP9 MSNP8 CVR0
|
|
|
|
S: VER 1 MSNP9
|
|
|
|
C: CVR 2 0x0409 winnt 5.1 i386 MSNMSGR 6.0.0602 MSMSGS example@hotmail.com
|
2024-10-13 17:03:57 -04:00
|
|
|
S: CVR 2 6.0.0602 6.0.0602 6.0.0268
|
|
|
|
.. http://download.microsoft.com/download/8/a/4/8a42bcae-f533-4468-b871-d2bc8dd32e9e/SetupDl.exe
|
|
|
|
.. http://messenger.msn.com
|
2024-10-10 15:38:51 -04:00
|
|
|
C: USR 3 TWN I example@hotmail.com
|
|
|
|
S: XFR 3 NS 10.0.0.5:1863 0 10.0.0.1:1863
|
|
|
|
```
|
|
|
|
Client disconnects from server
|
|
|
|
|
|
|
|
Client opens a connection to 10.0.0.5:1863
|
|
|
|
```
|
|
|
|
C: VER 4 MSNP9 MSNP8 CVR0
|
|
|
|
S: VER 4 MSNP9
|
|
|
|
C: CVR 5 0x0409 winnt 5.1 i386 MSNMSGR 6.0.0602 MSMSGS example@hotmail.com
|
2024-10-13 17:03:57 -04:00
|
|
|
S: CVR 5 6.0.0602 6.0.0602 6.0.0268
|
|
|
|
.. http://download.microsoft.com/download/8/a/4/8a42bcae-f533-4468-b871-d2bc8dd32e9e/SetupDl.exe
|
|
|
|
.. http://messenger.msn.com
|
2024-10-10 15:38:51 -04:00
|
|
|
C: USR 6 TWN I example@hotmail.com
|
|
|
|
S: USR 6 TWN S passport=parameters,neat=huh,lc=1033,id=507
|
2024-10-23 16:47:02 -04:00
|
|
|
```
|
|
|
|
*The HTTPS interlude is described in the [Passport 1.4](../services/passport14.md) article.*
|
|
|
|
```
|
2024-10-10 15:38:51 -04:00
|
|
|
C: USR 7 TWN S $(pp14response.headers.authenticationInfo["from-PP"])
|
2024-10-10 16:47:15 -04:00
|
|
|
S: USR 7 OK example@hotmail.com example%20user 1 0
|
2024-10-15 14:08:22 -04:00
|
|
|
S: MSG Hotmail Hotmail 448
|
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/x-msmsgsprofile; charset=UTF-8
|
|
|
|
LoginTime: 1726321960
|
|
|
|
EmailEnabled: 1
|
|
|
|
MemberIdHigh: 1
|
|
|
|
MemberIdLow: 2
|
|
|
|
lang_preference: 1033
|
|
|
|
PreferredEmail: example@hotmail.com
|
|
|
|
country: US
|
|
|
|
PostalCode:
|
|
|
|
Gender:
|
|
|
|
Kid: 0
|
|
|
|
Age:
|
|
|
|
BDayPre:
|
|
|
|
Birthday:
|
|
|
|
Wallet:
|
|
|
|
Flags: 1027
|
|
|
|
sid: 507
|
|
|
|
kv: 11
|
|
|
|
MSPAuth: whatever+t+is+in+your+passport+login+ticket+that+you+sent+for+USR+TWN+S$
|
|
|
|
ClientIP: 192.168.1.111
|
|
|
|
ClientPort: 18183
|
|
|
|
|
2024-10-10 15:38:51 -04:00
|
|
|
C: SYN 8 15
|
|
|
|
S: SYN 8 15
|
|
|
|
C: CHG 9 NLN
|
|
|
|
S: CHG 9 NLN
|
2024-10-13 17:03:57 -04:00
|
|
|
S: ILN 9 NLN anotheruser@hotmail.com another%20user 268435500 %3Cmsnobj%20Creator%3D%22anotherdude%40hotmail.com%22
|
|
|
|
.. %20Size%3D%2225235%22%20Type%3D%223%22
|
|
|
|
.. %20Location%3D%22uexA4DE.dat%22%20Friendly%3D%22AAA%3D%22
|
|
|
|
.. %20SHA1D%3D%22vP1ppB+xiFQ8ceZivRe0uCaYLIU%3D%22
|
|
|
|
.. %20SHA1C%3D%22PApbbjkbDSGrt3ybGHRKNaZ8s%2Fw%3D%22%2F%3E
|
2024-10-10 15:38:51 -04:00
|
|
|
C: PNG
|
2024-10-13 17:03:57 -04:00
|
|
|
S: NLN NLN anotheruser@hotmail.com another%20user 268435500 %3Cmsnobj%20Creator%3D%22anotherdude%40hotmail.com%22
|
|
|
|
.. %20Size%3D%2225235%22%20Type%3D%223%22
|
|
|
|
.. %20Location%3D%22uexA4DE.dat%22%20Friendly%3D%22AAA%3D%22
|
|
|
|
.. %20SHA1D%3D%22vP1ppB+xiFQ8ceZivRe0uCaYLIU%3D%22
|
|
|
|
.. %20SHA1C%3D%22PApbbjkbDSGrt3ybGHRKNaZ8s%2Fw%3D%22%2F%3E
|
2024-10-15 14:08:22 -04:00
|
|
|
S: QNG 60
|
2024-10-26 06:56:17 -04:00
|
|
|
S: NOT 457
|
|
|
|
<NOTIFICATION ver="1" id="2" siteid="0" siteurl="http://example.com/">
|
|
|
|
<TO pid="0x00000001:0x00000002" name="example@hotmail.com" />
|
|
|
|
<MSG id="0">
|
|
|
|
<ACTION url="alert?command=action" />
|
|
|
|
<SUBSCR url="alert?command=change" />
|
|
|
|
<BODY lang="1033" icon="alerticon_32x32.png">
|
|
|
|
<TEXT>This is an example notification.</TEXT>
|
|
|
|
<TEXTX><P>This is an <B>extended</B> notification!</P></TEXTX>
|
|
|
|
</BODY>
|
|
|
|
</MSG>
|
|
|
|
</NOTIFICATION>
|
2024-10-10 15:38:51 -04:00
|
|
|
C: OUT
|
|
|
|
```
|
|
|
|
Client disconnects from server
|
|
|
|
```
|
|
|
|
S: OUT
|
|
|
|
```
|
|
|
|
Server disconnects client
|