Windows Vista Forums

MSNP12: disconnecting after UUX or QRY
  1. #1


    mynetx Guest

    MSNP12: disconnecting after UUX or QRY

    While working on an implementation of MSNP12 for PHP, I found that the
    Notification Server is disconnecting me (signing me out) as soon as I
    send a UUX command with the PSM and MachineGuid. It does not sign me out
    if I do not try to set my PSM etc, by omitting the UUX.

    >>> = Send, <<< = Receive
    [ Tweener Authentication etc, then: ]

    >>> SYN 7 2008-10-28T19:51:36.0000000+01:00
    2008-10-28T19:51:36.0000000+01:00
    <<< SYN 7 2008-10-29T11:19:50.61-07:00 2008-10-26T04:41:38.46-07:00 5 2
    <<< GTC A
    <<< BLP AL
    <<< PRP MFN My%20Name
    <<< PRP MBE N
    <<< PRP WWE 0
    <<< LSG Favorites dc12d58c-dee9-44d3-****-0d93e****d50
    <<< LST N=mynetx@xxxxxx F=mynetx
    C=8418cb1c-e95c-4810-****-49909****213 11 1
    3d4ad801-712a-4a0a-****-ed203****655

    >>> CHG 8 BSY 1073741856
    <<< CHG 8 BSY 1073741856
    <<< MSG Hotmail Hotmail 289\r\n
    MIME-Version: 1.0\r\nContent-Type: text/x-msmsgsinitialmdatanoti...
    <<< ILN 8 NLN mynetx@xxxxxx mynetx 2520567852 %3Cmsnobj%20C...
    <<< UBX mynetx@xxxxxx 620\r\n
    <Data><PSM>Minor WLMStatus update</PSM><CurrentMedia></CurrentMe...

    >>> UUX 9 88\r\n
    <Data><PSM>Last test: 30 Oct 2008 21 23 57</PSM><CurrentMedia>
    </CurrentMedia><MachineGuid>11EBCC45-6F60-4BBB-****-FCC61****CF7
    </MachineGuid></Data>
    <<< UUX 9 0
    [ Server closes connection ]


    I also get disconnected after having received a confirm command of a
    successfully completed QRY challenge:




    [ Normal protocol connection, including switchboard invites, etc.,
    everything just working fine... until now: ]

    <<< CHL 0 21078281041487922537

    >>> QRY 15 PROD0114ES4Z%Q5W 32\r\n
    24ae42ad2504abd89f67997146c293c7
    <<< QRY 15
    [ Server closes connection ]


    Note:
    I do calculate the hash correctly, as I am *not* receiving
    a 540 error, but a successful "QRY" reply before the notification server
    disconnects.

    Any ideas why the server is disconnecting me in these 2 cases?
    Thanks for your research,
    mynetx

      My System SpecsSystem Spec

  2. #2


    mynetx Guest

    Re: MSNP12: disconnecting after UUX or QRY

    Solved.
    Jonathan Kay pointed me to a thread at Fanatic stating that problems
    will arise when I add an additional \r\n to a payload command, like UUX
    and QRY are.

    Thanks mate!
    mynetx


    mynetx wrote:

    > While working on an implementation of MSNP12 for PHP, I found that the
    > Notification Server is disconnecting me (signing me out) as soon as I
    > send a UUX command with the PSM and MachineGuid. It does not sign me out
    > if I do not try to set my PSM etc, by omitting the UUX.
    >

    > >>> = Send, <<< = Receive
    >
    > [ Tweener Authentication etc, then: ]

    > >>> SYN 7 2008-10-28T19:51:36.0000000+01:00
    > 2008-10-28T19:51:36.0000000+01:00
    > <<< SYN 7 2008-10-29T11:19:50.61-07:00 2008-10-26T04:41:38.46-07:00 5 2
    > <<< GTC A
    > <<< BLP AL
    > <<< PRP MFN My%20Name
    > <<< PRP MBE N
    > <<< PRP WWE 0
    > <<< LSG Favorites dc12d58c-dee9-44d3-****-0d93e****d50
    > <<< LST N=mynetx@xxxxxx F=mynetx
    > C=8418cb1c-e95c-4810-****-49909****213 11 1
    > 3d4ad801-712a-4a0a-****-ed203****655

    > >>> CHG 8 BSY 1073741856
    > <<< CHG 8 BSY 1073741856
    > <<< MSG Hotmail Hotmail 289\r\n
    > MIME-Version: 1.0\r\nContent-Type: text/x-msmsgsinitialmdatanoti...
    > <<< ILN 8 NLN mynetx@xxxxxx mynetx 2520567852 %3Cmsnobj%20C...
    > <<< UBX mynetx@xxxxxx 620\r\n
    > <Data><PSM>Minor WLMStatus update</PSM><CurrentMedia></CurrentMe...

    > >>> UUX 9 88\r\n
    > <Data><PSM>Last test: 30 Oct 2008 21 23 57</PSM><CurrentMedia>
    > </CurrentMedia><MachineGuid>11EBCC45-6F60-4BBB-****-FCC61****CF7
    > </MachineGuid></Data>
    > <<< UUX 9 0
    > [ Server closes connection ]
    >
    >
    > I also get disconnected after having received a confirm command of a
    > successfully completed QRY challenge:
    >
    >
    > [ Normal protocol connection, including switchboard invites, etc.,
    > everything just working fine... until now: ]
    >
    > <<< CHL 0 21078281041487922537

    > >>> QRY 15 PROD0114ES4Z%Q5W 32\r\n
    > 24ae42ad2504abd89f67997146c293c7
    > <<< QRY 15
    > [ Server closes connection ]
    >
    >
    > Note:
    > I do calculate the hash correctly, as I am *not* receiving
    > a 540 error, but a successful "QRY" reply before the notification server
    > disconnects.
    >
    > Any ideas why the server is disconnecting me in these 2 cases?
    > Thanks for your research,
    > mynetx

      My System SpecsSystem Spec

MSNP12: disconnecting after UUX or QRY problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disconnecting .. and other SteM Vista General 4 19 Feb 2009
disconnecting Nicknames Vista General 0 11 Jan 2009
Msn Messenger Keeps Disconnecting. Ellice Live Messenger 4 01 Feb 2008
Disconnecting NiC Vista General 2 21 Dec 2007
Ad-hoc keeps disconnecting Leonardo Bastos Vista networking & sharing 0 26 Sep 2007