locked
OCS 2007 SIP INVITE how to decrypt the message in the "ms-body" field RRS feed

  • Question

  • Hi, I have been using the UCMA api for sometime, however i have not been able to find a solution to the prob below... Would be really glad if someone could help me out...

    Using the UCMA api, i have created a bot which can send and receive messages. I have registered an endpoint and subscribed for the OnSessionRecieved event. 

    When a user x tries to send message to the bot, the OnSessionRecieved Event gets fired. But the question is how do i receive the message which came along with the invite request???

    When I saw the ucma client log, i saw the following header 

    Ms-Text-Format: text/plain; charset=UTF-8;msgr=WAAtAE0ATQBTAC0ASQBNAC0ARgBvAHIAbQBhAHQAOgAgAEYATgA9AE0AUwAlADIAMABTAGgAZQBsAGwAJQAyADAARABsAGcAJQAyADAAMgA7ACAARQBGAD0AOwAgAEMATwA9ADAAOwAgAEMAUwA9ADAAOwAgAFAARgA9ADAACgANAAoADQA; ms-body=Oik=


    and on subsequent trials found that the ms-body field should have the actual message which came along with the SIP INVITE, also msgr field as shown above always remained constant...

    Can anyone please help me with the algorithm to decrypt the ms-body field???

    Any help would be great!
    Regards,
    Monty
    Monday, March 16, 2009 8:38 AM

Answers

  • hey Deli,

    I didnt want to decrypt the SIP message as such, i just wanted to decode the ms-body content which was the actual message in the invite SIP message! Anyways it done - it was base 64 encoded... thanks anyways.

    -Monty
    • Marked as answer by montykg Tuesday, March 17, 2009 4:09 AM
    Tuesday, March 17, 2009 4:08 AM

All replies

  • You can only decrypt Sip messages if you have the Server private key!
    If you want to read the Sip messages you can open a Debug Session on the Front-End and use the snooper tool to look at the logfile
    - Belgian Unified Communications Community : http://www.pro-exchange.be -
    Monday, March 16, 2009 9:54 PM
  • hey Deli,

    I didnt want to decrypt the SIP message as such, i just wanted to decode the ms-body content which was the actual message in the invite SIP message! Anyways it done - it was base 64 encoded... thanks anyways.

    -Monty
    • Marked as answer by montykg Tuesday, March 17, 2009 4:09 AM
    Tuesday, March 17, 2009 4:08 AM
  • Ok guys any idea what the msgr tag contains... it seems to be some constant... does it provide some useful information???

    -Monty
    Wednesday, March 18, 2009 3:58 AM