Hi Alec, can you clarify please.
1) Are you talking about WebHook subscriptions? PubNub ones live for 15 minutes and should be renewed with such frequency.
2) Are you referring Sandbox or Production
3) Please provide your application ID from Dev Portal.
This is a web hook subscription; Application is in production. Not sure what is application ID. Application Key is c7qfJNYFRcGojljw2tvwWA
While web hook subscriptions expire in days we refresh them every night. Here is what we typically get on refresh with 200 http return:
{
"uri" : "https://platform.ringcentral.com/restapi/v1.0/subscription/589f16dc-7cc1-40fb-941d-4cbd395988e6";,
"id" : "589f16dc-7cc1-40fb-941d-4cbd395988e6",
"creationTime" : "2016-11-16T20:10:42.772Z",
"status" : "Active",
"eventFilters" : [ "/restapi/v1.0/account/244166027/extension/462615027/presence?detailedTelephonyState=true", "/restapi/v1.0/account/244166027/extension/299450027/message-store", "/restapi/v1.0/account/244166027/extension/462613027/presence?detailedTelephonyState=true", "/restapi/v1.0/account/244166027/extension/302041027/presence?detailedTelephonyState=true", "/restapi/v1.0/account/244166027/extension/462613027/message-store", "/restapi/v1.0/account/244166027/extension/462615027/message-store", "/restapi/v1.0/account/244166027/extension/244166027/message-store", "/restapi/v1.0/account/244166027/extension/302041027/message-store", "/restapi/v1.0/account/244166027/extension/299451027/message-store", "/restapi/v1.0/account/244166027/extension/299450027/presence?detailedTelephonyState=true", "/restapi/v1.0/account/244166027/extension/299451027/presence?detailedTelephonyState=true", "/restapi/v1.0/account/244166027/extension/244166027/presence/line/presence?detailedTelephonyState=true", "/restapi/v1.0/account/244166027/extension/244166027/presence?detailedTelephonyState=true", "/restapi/v1.0/account/244166027/extension/299452027/presence?detailedTelephonyState=true", "/restapi/v1.0/account/244166027/extension/299452027/message-store" ],
"expirationTime" : "2017-03-17T07:00:08.877Z",
"expiresIn" : 604799,
"deliveryMode" : {
"transportType" : "WebHook",
"encryption" : false,
"address" : "https://url-was-modified/rc2/subscription.php?guid=60A0C223-0889-47DA-82AA-568C37310B4E";
}
}
Next day
{
"uri" : "https://platform.ringcentral.com/restapi/v1.0/subscription/589f16dc-7cc1-40fb-941d-4cbd395988e6";,
"id" : "589f16dc-7cc1-40fb-941d-4cbd395988e6",
"creationTime" : "2016-11-16T20:10:42.772Z",
"status" : "Active",
"eventFilters" : [ "/restapi/v1.0/account/244166027/extension/462615027/presence?detailedTelephonyState=true", "/restapi/v1.0/account/244166027/extension/299450027/message-store", "/restapi/v1.0/account/244166027/extension/462613027/presence?detailedTelephonyState=true", "/restapi/v1.0/account/244166027/extension/302041027/presence?detailedTelephonyState=true", "/restapi/v1.0/account/244166027/extension/462613027/message-store", "/restapi/v1.0/account/244166027/extension/462615027/message-store", "/restapi/v1.0/account/244166027/extension/244166027/message-store", "/restapi/v1.0/account/244166027/extension/302041027/message-store", "/restapi/v1.0/account/244166027/extension/299451027/message-store", "/restapi/v1.0/account/244166027/extension/299450027/presence?detailedTelephonyState=true", "/restapi/v1.0/account/244166027/extension/299451027/presence?detailedTelephonyState=true", "/restapi/v1.0/account/244166027/extension/244166027/presence/line/presence?detailedTelephonyState=true", "/restapi/v1.0/account/244166027/extension/244166027/presence?detailedTelephonyState=true", "/restapi/v1.0/account/244166027/extension/299452027/presence?detailedTelephonyState=true", "/restapi/v1.0/account/244166027/extension/299452027/message-store" ],
"expirationTime" : "2017-03-18T07:00:10.881Z",
"expiresIn" : 604799,
"deliveryMode" : {
"transportType" : "WebHook",
"encryption" : false,
"address" : "https://url-was-modified/rc2/subscription.php?guid=60A0C223-0889-47DA-82AA-568C37310B4E";
}
}
You can see that expiration time is bumped by 1 day.
In seven days (not sure about exact number but close) we got 404 with subscriptionId not found as if it already expired. Query subscription for an account returns nothing.
One way to explain all of this is to assume that subscription is not refreshed despite 200 returned.
Another thing i noticed is
"creationTime" : "2016-11-16T20:10:42.772Z",
I am not sure what exactly this time represents since this subscription was recreated several times already
Need your help badly since we are in production