Skip to main content

I have a telephony/sessions subscription and it seems I missed a message or some messages.

For this particular session I never got the disconnect to show the call ended. It does seem that I did not receive all the messages based on the sequence numbers. I only see a 3,5,6.

What is the expected reliability on those subscriptions? Is it possible that some messages are missed? What could I do to recover from this missed message scenario? Is this my end not receiving the messages or the other end not sending them?

{"uuid":"7709450238821189519","event":"/restapi/v1.0/account/538209032/extension/538295032/telephony/sessions","timestamp":"2021-08-25T18:07:32.800Z","subscriptionId":"e86347a8-689c-4bb6-a72a-9f969b1c8dea","ownerId":"701308032","body":{"sequence":3,"sessionId":"536405079032","telephonySessionId":"s-02b4237d2b5c47ceb327198d7d72e190","serverId":"10.13.216.111.TAM","eventTime":"2021-08-25T18:07:32.716Z","parties":[{"accountId":"538209032","extensionId":"538295032","id":"p-02b4237d2b5c47ceb327198d7d72e190-2","direction":"Inbound","to":{"phoneNumber":"5343","name":"Mike Hutchinson","extensionId":"538295032"},"from":{"phoneNumber":"5299","name":"Switch Board Operator","extensionId":"538253032","deviceId":"801178602032"},"status":{"code":"Setup","rcc":false},"park":{},"missedCall":false,"standAlone":false,"muted":false}],"origin":{"type":"Call"}}}

{"uuid":"1350348032124045025","event":"/restapi/v1.0/account/538209032/extension/538295032/telephony/sessions","timestamp":"2021-08-25T18:07:36.068Z","subscriptionId":"e86347a8-689c-4bb6-a72a-9f969b1c8dea","ownerId":"701308032","body":{"sequence":5,"sessionId":"536405079032","telephonySessionId":"s-02b4237d2b5c47ceb327198d7d72e190","serverId":"10.13.216.111.TAM","eventTime":"2021-08-25T18:07:35.980Z","parties":[{"accountId":"538209032","extensionId":"538295032","id":"p-02b4237d2b5c47ceb327198d7d72e190-2","direction":"Inbound","to":{"phoneNumber":"5343","name":"Mike Hutchinson","extensionId":"538295032"},"from":{"phoneNumber":"5299","name":"Switch Board Operator","extensionId":"538253032","deviceId":"801178602032"},"status":{"code":"Proceeding","mobilePickupData":{"ccMailboxes":["538295032"],"to":"#477032@sip.ringcentral.com:5060","sid":"35720777167864","srvLvl":"-149699523","srvLvlExt":"406"},"rcc":false},"park":{},"missedCall":false,"standAlone":false,"muted":false}],"origin":{"type":"Call"}}}

{"uuid":"8579565434175763696","event":"/restapi/v1.0/account/538209032/extension/538295032/telephony/sessions","timestamp":"2021-08-25T18:07:42.983Z","subscriptionId":"e86347a8-689c-4bb6-a72a-9f969b1c8dea","ownerId":"701308032","body":{"sequence":6,"sessionId":"536405079032","telephonySessionId":"s-02b4237d2b5c47ceb327198d7d72e190","serverId":"10.13.216.111.TAM","eventTime":"2021-08-25T18:07:42.872Z","parties":[{"accountId":"538209032","extensionId":"538295032","id":"p-02b4237d2b5c47ceb327198d7d72e190-2","direction":"Inbound","to":{"phoneNumber":"5343","name":"Mike Hutchinson","extensionId":"538295032"},"from":{"phoneNumber":"5299","name":"Switch Board Operator","extensionId":"538253032","deviceId":"801178602032"},"status":{"code":"Answered","mobilePickupData":{"ccMailboxes":["538295032"],"to":"#477032@sip.ringcentral.com:5060","sid":"35720777167864","srvLvl":"-149699523","srvLvlExt":"406"},"rcc":false},"park":{},"missedCall":false,"standAlone":false,"muted":false}],"origin":{"type":"Call"}}}

Not all the events (some internal) are fired so you should not expect continuous sequence number. It works quite reliably for all my apps.

How often do you miss the 'disconnect' event? If you do not get the 'disconnect' event, can you make a new call to see if you receive other events or not. That way you can tell if the event is missed or your webhooks just got interrupted etc.


When I have seen "missing" events it's usually temporary. I'll get more events later. On my app I don't see the message come in. It could be the server, it could be the network. But I see messages reliable most of the time but here and there I seem to miss some events. The disconnect is the most troubling because it makes my code think the phone is still on a call and it never disconnected.


Reply