Good day all,
My company has an integration with RC where we receive call data via telephony webhook and process that data on behalf of our customers. I have two questions:
1. Our code does not properly handle transferred/ multi-leg calls. I have been doing some research and believe I can tell a call has been transferred by the presence of an event with the status code of "Gone". Is it accurate to say this event represent the start of a new leg of the call? Additionally, I noticed that a "Gone" event can have the following reasons: "Pickup", "Undefined", "AttendedTransfer", "Conference", "Supervising". Would you kindly briefly explain these reasons?
2. One other thing I noticed in our data is that we receive calls with a session id of 0. Specifically, I am noticing these calls have to do with conferencing. Is there any other reason why a session would have a sessionid of 0 other than conferencing? See below example of transfer to conference with peer id.sessionid of 0.
"code": "Gone",
"reason": "Conference",
"peerId": {
"telephonySessionId": "s-a0dd888305b18z18c590772c3z13204cb0000",
"sessionId": "0",
"partyId": "p-a0dd888305b18z18c590772c3z13204cb0000-2"
},