none
No event received when presence changed, why???anyone can help me?

    Question

  • I use UCWA to get presence events to my application from Skype for business. I've created an UCWA application and subscribed to a contact presence, but after I actived the event channel, no msg received to my app when I changed the user's presence. I want to know what happened and how can I get the notification from the event channel, anyone can help me? thanks!

    my http msg:

    1.

    POST https://lync2013.vpbx.com/ucwa/oauth/v1/applications/10460669728/people/presenceSubscriptions HTTP/1.1
    Host: lync2013.vpbx.com:443
    Authorization: Bearer cwt=AAEBHAEFAAAAAAAFFQAAAOZS8Vl_QPeeqBtMdWwEAACBEMaBADfVlKBTqOXXcrR5VY6CAjnWgyCc886zA3UoU2TdD9lJVf95GV68bEqmTN2R-RtwVMqGv4YIjNcFkdkt1ggNEMaBADfVlKBTqOXXcrR5VY4
    Accept: application/json
    Content-Type: application/json
    X-Requested-With: XMLHttpRequest
    Accept-Language: en-us
    User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
    Content-Length: 49
    Connection: Keep-Alive
    Cache-Control: no-cache

    {"duration":11,"Uris":["sip:testyh2@vpbx.com"]}

    2.

    HTTP/1.1 201 Created
    Cache-Control: no-cache
    Via: 1.1 lync2013.vpbx.com RtcInt
    Content-Length: 535
    Content-Type: application/json; charset=utf-8
    X-MS-Server-Fqdn: lync2013.vpbx.com
    X-MS-Correlation-Id: 2147483771
    client-request-id: 99ef6a2c-4433-4649-964c-b4b39454b86d
    X-MS-Correlation-Id: 2147483687
    client-request-id: b094793c-cc50-4169-a283-0e377bdafdd0
    Strict-Transport-Security: max-age=31536000; includeSubDomains
    Date: Tue, 09 Oct 2018 03:50:03 GMT

    {"id":"1577d71c3c104201aa16599f1a8b9662","_links":{"self":{"href":"/ucwa/oauth/v1/applications/10460669728/people/presenceSubscriptions/1577d71c3c104201aa16599f1a8b9662"},"memberships":{"href":"/ucwa/oauth/v1/applications/10460669728/people/presenceSubscriptionMemberships?presenceSubscriptionId=1577d71c3c104201aa16599f1a8b9662"},"addToPresenceSubscription":{"href":"/ucwa/oauth/v1/applications/10460669728/people/presenceSubscriptionMemberships?presenceSubscriptionId=1577d71c3c104201aa16599f1a8b9662"}},"rel":"presenceSubscription"}

    3.

    GET https://lync2013.vpbx.com/ucwa/oauth/v1/applications/10460669728/events?ack=1 HTTP/1.1
    Host: lync2013.vpbx.com:443
    Authorization: Bearer cwt=AAEBHAEFAAAAAAAFFQAAAOZS8Vl_QPeeqBtMdWwEAACBEMaBADfVlKBTqOXXcrR5VY6CAjnWgyCc886zA3UoU2TdD9lJVf95GV68bEqmTN2R-RtwVMqGv4YIjNcFkdkt1ggNEMaBADfVlKBTqOXXcrR5VY4
    Accept: text/json
    User-Agent: Mozilla/5.0
    Content-Type: text/json
    Connection: Keep-Alive

    4.

    HTTP/1.1 200 OK
    Cache-Control: no-cache
    Via: 1.1 lync2013.vpbx.com RtcInt
    Content-Length: 3383
    Content-Type: application/vnd.microsoft.com.ucwa+json; charset=utf-8
    X-MS-Server-Fqdn: lync2013.vpbx.com
    X-MS-Correlation-Id: 2147483752
    client-request-id: 7eecbd7b-c0c3-4c93-a549-28eb07df5fd3
    X-MS-Correlation-Id: 2147483689
    client-request-id: 1bc0bc2d-493a-40f3-8c27-5d8a00ca9db4
    Strict-Transport-Security: max-age=31536000; includeSubDomains
    Date: Tue, 09 Oct 2018 03:51:56 GMT

    {"_links":{"self":{"href":"/ucwa/oauth/v1/applications/10460669728/events?ack=1"},"next":{"href":"/ucwa/oauth/v1/applications/10460669728/events?ack=2"}},"sender":[{"rel":"me","href":"/ucwa/oauth/v1/applications/10460669728/me","events":[{"link":{"rel":"me","href":"/ucwa/oauth/v1/applications/10460669728/me"},"type":"updated"},{"link":{"rel":"presence","href":"/ucwa/oauth/v1/applications/10460669728/me/presence"},"type":"added"},{"link":{"rel":"note","href":"/ucwa/oauth/v1/applications/10460669728/me/note"},"type":"added"},{"link":{"rel":"location","href":"/ucwa/oauth/v1/applications/10460669728/me/location"},"type":"added"}]},{"rel":"communication","href":"/ucwa/oauth/v1/applications/10460669728/communication","events":[{"link":{"rel":"communication","href":"/ucwa/oauth/v1/applications/10460669728/communication"},"_embedded":{"communication":{"b460e86a-2df9-4102-bd21-32498f0af350":"please pass this in a PUT request","supportedModalities":["Messaging"],"supportedMessageFormats":["Plain"],"_links":{"self":{"href":"/ucwa/oauth/v1/applications/10460669728/communication"},"conversations":{"href":"/ucwa/oauth/v1/applications/10460669728/communication/conversations?filter=active"},"startMessaging":{"href":"/ucwa/oauth/v1/applications/10460669728/communication/messagingInvitations","revision":"2"},"startOnlineMeeting":{"href":"/ucwa/oauth/v1/applications/10460669728/communication/onlineMeetingInvitations?onlineMeetingUri=adhoc"},"joinOnlineMeeting":{"href":"/ucwa/oauth/v1/applications/10460669728/communication/onlineMeetingInvitations"},"missedItems":{"href":"/ucwa/oauth/v1/applications/10460669728/communication/missedItems"}},"rel":"communication","etag":"2665976469"}},"type":"updated"}]},{"rel":"people","href":"/ucwa/oauth/v1/applications/10460669728/people","events":[{"link":{"rel":"presenceSubscription","href":"/ucwa/oauth/v1/applications/10460669728/people/presenceSubscriptions/1577d71c3c104201aa16599f1a8b9662"},"type":"added"},{"link":{"rel":"contact","href":"/ucwa/oauth/v1/applications/10460669728/people/testyh2@vpbx.com"},"in":{"rel":"subscribedContacts","href":"/ucwa/oauth/v1/applications/10460669728/people/subscribedContacts"},"type":"added"},{"link":{"rel":"contactPresence","href":"/ucwa/oauth/v1/applications/10460669728/people/testyh2@vpbx.com/presence"},"in":{"rel":"contact","href":"/ucwa/oauth/v1/applications/10460669728/people/testyh2@vpbx.com"},"type":"updated"},{"link":{"rel":"contactNote","href":"/ucwa/oauth/v1/applications/10460669728/people/testyh2@vpbx.com/note"},"in":{"rel":"contact","href":"/ucwa/oauth/v1/applications/10460669728/people/testyh2@vpbx.com"},"type":"updated"},{"link":{"rel":"contactSupportedModalities","href":"/ucwa/oauth/v1/applications/10460669728/people/testyh2@vpbx.com/supportedMedia"},"in":{"rel":"contact","href":"/ucwa/oauth/v1/applications/10460669728/people/testyh2@vpbx.com"},"type":"updated"},{"link":{"rel":"contactLocation","href":"/ucwa/oauth/v1/applications/10460669728/people/testyh2@vpbx.com/location"},"in":{"rel":"contact","href":"/ucwa/oauth/v1/applications/10460669728/people/testyh2@vpbx.com"},"type":"updated"},{"link":{"rel":"contactPrivacyRelationship","href":"/ucwa/oauth/v1/applications/10460669728/people/testyh2@vpbx.com/privacyRelationship","revision":"2"},"in":{"rel":"contact","href":"/ucwa/oauth/v1/applications/10460669728/people/testyh2@vpbx.com"},"type":"updated"}]}]}

    Then no event received from event channel:(

    what's wrong?


    • Edited by yhacmilan Tuesday, October 9, 2018 6:04 AM
    Tuesday, October 9, 2018 3:45 AM

All replies