Subscription Issue

  • 1
  • Problem
  • Updated 2 years ago
  • Solved
  • (Edited)

After creating a subscription, I'm able to get SMS/voicemail notifications when I text/ call my account number and leave a voicemail, but I'm not receiving a presence notification when I simply call. I'm subscribed to both message-store and presence events.

Photo of Rodney Gist

Rodney Gist

  • 120 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
Photo of AK

AK, Official Rep

  • 4,372 Points 4k badge 2x thumb
Hi Rodney,

When an extension is subscribed to the presence events you would see notifications for both inbound and outbound calls.

Are you using the same extension number that you are making a call from ? If so, could you login to the softphone and initiate a ringout for you to test for subscription notifications when you make an outbound call. 

Please use the instructions below to setup your softphone if you haven't :
https://developer.ringcentral.com/library/tutorials/test-account.html
Photo of Rodney Gist

Rodney Gist

  • 120 Points 100 badge 2x thumb

I am not receiving any subscription presence notifications at all (including ringout). However, I do see the calls listed in the calls history log.

Initial subscription request body:
{
    "id" : [ID],
    "creationTime" : [creationTime],
    "status" : "Active",
    "uri" : "https://platform.devtest.ringcentral.com/restapi/v1.0/subscription/[ID]";
    "eventFilters" : [ "/restapi/v1.0/account/[AccountID]/extension/[AccountID]/message-store", "/restapi/v1.0/account/[AccountID]/extension/[AccountID]/presence" ],
    "expirationTime" : [expirationTime],
    "expiresIn" : 899,
    "deliveryMode" : {
        "transportType" : "PubNub",
        "encryption" : true,
        "address" : [address],
        "subscriberKey" : [subscriberKey],
        "encryptionAlgorithm" : "AES",
        "encryptionKey" : [encryptionKey]
    }
}

And then I receive a response saying "Connected".

At this point, I call the number I used to log in with. I don't receive any notification upon calling, but upon leaving a voice message at the end of the call, I receive a message-store notification.

Then I see the call recorded as a missed call on the calls history log.

(Edited)
Photo of Benjamin Dean

Benjamin Dean

  • 8,602 Points 5k badge 2x thumb
Did you get this resolved?
Photo of Chris Goetz

Chris Goetz

  • 370 Points 250 badge 2x thumb
After you make sure you have a soft phone setup to listen receive calls, you need to subscribe to the detailed status of the presence event to get that info.

"/restapi/v1.0/account/~/extension/~/presence?detailedTelephonyState=true"
Photo of Benjamin Dean

Benjamin Dean

  • 8,602 Points 5k badge 2x thumb
Outstanding. Thanks for sharing that information. I will bubble it up to our documentation team for inclusion.