question

Adithya PK avatar image
Adithya PK asked Adithya PK edited

Call transfer(Warm transfer) - Linking calls

Similar question:https://forums.developers.ringcentral.com/questions/467/sessionid-property-ties-together-multiple-legs-of.html

Creating a new one for more clarity.

Problem: Need a reliable way to link warm transfer calls.

Sequence of Webhooks received for a warm transfer call. Called from +12138396978 to +19492747845(Ext: 102) and then transferred the call to extension 101. I have subscribed for the webhook event `presence?detailedTelephonyState=true` for both extensions 101 and 102.

{
  "body": {
    "activeCalls": [
      {
        "direction": "Inbound",
        "from": "+12138396978",
        "id": "s-2df94ec31cff4bdbbde376b90a9710a2",
        "partyId": "p-2df94ec31cff4bdbbde376b90a9710a2-2",
        "sessionId": "21281719004",
        "startTime": "2019-07-18T08:45:26.012Z",
        "telephonySessionId": "s-2df94ec31cff4bdbbde376b90a9710a2",
        "telephonyStatus": "Ringing",
        "to": "+19492747845",
        "toName": "Nanda Kumar"
      }
    ],
    "allowSeeMyPresence": true,
    "dndStatus": "TakeAllCalls",
    "extensionId": 249697004,
    "pickUpCallsOnHold": false,
    "presenceStatus": "Available",
    "ringOnMonitoredCall": false,
    "sequence": 1686,
    "telephonyStatus": "Ringing",
    "totalActiveCalls": 1,
    "userStatus": "Available"
  },
  "event": "/restapi/v1.0/account/249331004/extension/249697004/presence?detailedTelephonyState=true",
  "ownerId": "249331004",
  "subscriptionId": "b60eeaff-98d3-41cb-919d-82ff18eecf05",
  "timestamp": "2019-07-18T08:45:26.181Z",
  "uuid": "9194351408899344439"
}
[18/Jul/2019 08:45:26] "POST /integrations/ringcentral/webhook-callback/ HTTP/1.0" 200 2
{
  "body": {
    "activeCalls": [
      {
        "direction": "Inbound",
        "from": "+12138396978",
        "id": "8855a1d5e97f4317952605aaecb00816",
        "partyId": "p-2df94ec31cff4bdbbde376b90a9710a2-2",
        "sessionId": "21281719004",
        "startTime": "2019-07-18T08:45:26.012Z",
        "telephonySessionId": "s-2df94ec31cff4bdbbde376b90a9710a2",
        "telephonyStatus": "CallConnected",
        "to": "+19492747845",
        "toName": "Nanda Kumar"
      }
    ],
    "allowSeeMyPresence": true,
    "dndStatus": "TakeAllCalls",
    "extensionId": 249697004,
    "pickUpCallsOnHold": false,
    "presenceStatus": "Busy",
    "ringOnMonitoredCall": false,
    "sequence": 1687,
    "telephonyStatus": "CallConnected",
    "totalActiveCalls": 1,
    "userStatus": "Available"
  },
  "event": "/restapi/v1.0/account/249331004/extension/249697004/presence?detailedTelephonyState=true",
  "ownerId": "249331004",
  "subscriptionId": "b60eeaff-98d3-41cb-919d-82ff18eecf05",
  "timestamp": "2019-07-18T08:45:31.169Z",
  "uuid": "7637040602220223034"
}
[18/Jul/2019 08:45:31] "POST /integrations/ringcentral/webhook-callback/ HTTP/1.0" 200 2
{
  "body": {
    "activeCalls": [
      {
        "direction": "Inbound",
        "from": "+12138396978",
        "id": "8855a1d5e97f4317952605aaecb00816",
        "partyId": "p-2df94ec31cff4bdbbde376b90a9710a2-2",
        "sessionId": "21281719004",
        "startTime": "2019-07-18T08:45:26.012Z",
        "telephonySessionId": "s-2df94ec31cff4bdbbde376b90a9710a2",
        "telephonyStatus": "OnHold",
        "to": "+19492747845",
        "toName": "Nanda Kumar"
      }
    ],
    "allowSeeMyPresence": true,
    "dndStatus": "TakeAllCalls",
    "extensionId": 249697004,
    "pickUpCallsOnHold": false,
    "presenceStatus": "Busy",
    "ringOnMonitoredCall": false,
    "sequence": 1688,
    "telephonyStatus": "OnHold",
    "totalActiveCalls": 1,
    "userStatus": "Available"
  },
  "event": "/restapi/v1.0/account/249331004/extension/249697004/presence?detailedTelephonyState=true",
  "ownerId": "249331004",
  "subscriptionId": "b60eeaff-98d3-41cb-919d-82ff18eecf05",
  "timestamp": "2019-07-18T08:45:58.113Z",
  "uuid": "5592196848337879383"
}
[18/Jul/2019 08:45:58] "POST /integrations/ringcentral/webhook-callback/ HTTP/1.0" 200 2
{
  "body": {
    "activeCalls": [
      {
        "direction": "Inbound",
        "from": "+12138396978",
        "id": "8855a1d5e97f4317952605aaecb00816",
        "partyId": "p-2df94ec31cff4bdbbde376b90a9710a2-2",
        "sessionId": "21281719004",
        "startTime": "2019-07-18T08:45:26.012Z",
        "telephonySessionId": "s-2df94ec31cff4bdbbde376b90a9710a2",
        "telephonyStatus": "OnHold",
        "to": "+19492747845",
        "toName": "Nanda Kumar"
      },
      {
        "direction": "Outbound",
        "from": "+19493349190",
        "id": ".CWUKV478fbmtppizvdoal6IhKVB1IRi",
        "partyId": "p-1e94c3c4647d413eb4343426229347bf-1",
        "sessionId": "21281720004",
        "startTime": "2019-07-18T08:45:58.293Z",
        "telephonySessionId": "s-1e94c3c4647d413eb4343426229347bf",
        "telephonyStatus": "Ringing",
        "to": "101"
      }
    ],
    "allowSeeMyPresence": true,
    "dndStatus": "TakeAllCalls",
    "extensionId": 249697004,
    "pickUpCallsOnHold": false,
    "presenceStatus": "Busy",
    "ringOnMonitoredCall": false,
    "sequence": 1689,
    "telephonyStatus": "OnHold",
    "totalActiveCalls": 2,
    "userStatus": "Available"
  },
  "event": "/restapi/v1.0/account/249331004/extension/249697004/presence?detailedTelephonyState=true",
  "ownerId": "249331004",
  "subscriptionId": "b60eeaff-98d3-41cb-919d-82ff18eecf05",
  "timestamp": "2019-07-18T08:45:58.628Z",
  "uuid": "8206964117358315522"
}
[18/Jul/2019 08:45:59] "POST /integrations/ringcentral/webhook-callback/ HTTP/1.0" 200 2
{
  "body": {
    "activeCalls": [
      {
        "direction": "Inbound",
        "from": "+12138396978",
        "id": "8855a1d5e97f4317952605aaecb00816",
        "partyId": "p-2df94ec31cff4bdbbde376b90a9710a2-2",
        "sessionId": "21281719004",
        "startTime": "2019-07-18T08:45:26.012Z",
        "telephonySessionId": "s-2df94ec31cff4bdbbde376b90a9710a2",
        "telephonyStatus": "OnHold",
        "to": "+19492747845",
        "toName": "Nanda Kumar"
      },
      {
        "direction": "Outbound",
        "from": "+19493349190",
        "fromName": "Nanda Kumar",
        "id": ".CWUKV478fbmtppizvdoal6IhKVB1IRi",
        "partyId": "p-1e94c3c4647d413eb4343426229347bf-1",
        "sessionId": "21281720004",
        "startTime": "2019-07-18T08:45:58.293Z",
        "telephonySessionId": "s-1e94c3c4647d413eb4343426229347bf",
        "telephonyStatus": "CallConnected",
        "to": "101",
        "toName": "Manoj Subramaniyan"
      }
    ],
    "allowSeeMyPresence": true,
    "dndStatus": "TakeAllCalls",
    "extensionId": 249697004,
    "pickUpCallsOnHold": false,
    "presenceStatus": "Busy",
    "ringOnMonitoredCall": false,
    "sequence": 1690,
    "telephonyStatus": "OnHold",
    "totalActiveCalls": 2,
    "userStatus": "Available"
  },
  "event": "/restapi/v1.0/account/249331004/extension/249697004/presence?detailedTelephonyState=true",
  "ownerId": "249331004",
  "subscriptionId": "b60eeaff-98d3-41cb-919d-82ff18eecf05",
  "timestamp": "2019-07-18T08:45:59.185Z",
  "uuid": "7737687417033794706"
}
[18/Jul/2019 08:45:59] "POST /integrations/ringcentral/webhook-callback/ HTTP/1.0" 200 2
{
  "body": {
    "activeCalls": [
      {
        "direction": "Inbound",
        "from": "102",
        "fromName": "Nanda Kumar",
        "id": "s-1e94c3c4647d413eb4343426229347bf",
        "partyId": "p-1e94c3c4647d413eb4343426229347bf-2",
        "sessionId": "21281720004",
        "startTime": "2019-07-18T08:46:03.355Z",
        "telephonySessionId": "s-1e94c3c4647d413eb4343426229347bf",
        "telephonyStatus": "Ringing",
        "to": "101",
        "toName": "Manoj Subramaniyan"
      }
    ],
    "allowSeeMyPresence": true,
    "dndStatus": "TakeAllCalls",
    "extensionId": 249331004,
    "pickUpCallsOnHold": false,
    "presenceStatus": "Available",
    "ringOnMonitoredCall": false,
    "sequence": 2374,
    "telephonyStatus": "Ringing",
    "totalActiveCalls": 1,
    "userStatus": "Available"
  },
  "event": "/restapi/v1.0/account/249331004/extension/249331004/presence?detailedTelephonyState=true",
  "ownerId": "249331004",
  "subscriptionId": "b60eeaff-98d3-41cb-919d-82ff18eecf05",
  "timestamp": "2019-07-18T08:46:03.518Z",
  "uuid": "407326691408392706"
}
[18/Jul/2019 08:46:04] "POST /integrations/ringcentral/webhook-callback/ HTTP/1.0" 200 2
{
  "body": {
    "activeCalls": [
      {
        "direction": "Inbound",
        "from": "102",
        "fromName": "Nanda Kumar",
        "id": "b8fffced0d5f455dbbcd3fc5928a1e19",
        "partyId": "p-1e94c3c4647d413eb4343426229347bf-2",
        "sessionId": "21281720004",
        "startTime": "2019-07-18T08:46:03.355Z",
        "telephonySessionId": "s-1e94c3c4647d413eb4343426229347bf",
        "telephonyStatus": "CallConnected",
        "to": "101",
        "toName": "Manoj Subramaniyan"
      }
    ],
    "allowSeeMyPresence": true,
    "dndStatus": "TakeAllCalls",
    "extensionId": 249331004,
    "pickUpCallsOnHold": false,
    "presenceStatus": "Busy",
    "ringOnMonitoredCall": false,
    "sequence": 2375,
    "telephonyStatus": "CallConnected",
    "totalActiveCalls": 1,
    "userStatus": "Available"
  },
  "event": "/restapi/v1.0/account/249331004/extension/249331004/presence?detailedTelephonyState=true",
  "ownerId": "249331004",
  "subscriptionId": "b60eeaff-98d3-41cb-919d-82ff18eecf05",
  "timestamp": "2019-07-18T08:46:09.416Z",
  "uuid": "3099688135686882283"
}
[18/Jul/2019 08:46:09] "POST /integrations/ringcentral/webhook-callback/ HTTP/1.0" 200 2
{
  "body": {
    "activeCalls": [
      {
        "direction": "Inbound",
        "from": "102",
        "fromName": "Nanda Kumar",
        "id": "b8fffced0d5f455dbbcd3fc5928a1e19",
        "partyId": "p-1e94c3c4647d413eb4343426229347bf-2",
        "sessionId": "21281720004",
        "startTime": "2019-07-18T08:46:03.355Z",
        "telephonySessionId": "s-1e94c3c4647d413eb4343426229347bf",
        "telephonyStatus": "CallConnected",
        "to": "101",
        "toName": "Manoj Subramaniyan"
      }
    ],
    "allowSeeMyPresence": true,
    "dndStatus": "TakeAllCalls",
    "extensionId": 249331004,
    "pickUpCallsOnHold": false,
    "presenceStatus": "Busy",
    "ringOnMonitoredCall": false,
    "sequence": 2376,
    "telephonyStatus": "CallConnected",
    "totalActiveCalls": 1,
    "userStatus": "Available"
  },
  "event": "/restapi/v1.0/account/249331004/extension/249331004/presence?detailedTelephonyState=true",
  "ownerId": "249331004",
  "subscriptionId": "b60eeaff-98d3-41cb-919d-82ff18eecf05",
  "timestamp": "2019-07-18T08:46:11.423Z",
  "uuid": "2813996838693366486"
}
[18/Jul/2019 08:46:11] "POST /integrations/ringcentral/webhook-callback/ HTTP/1.0" 200 2
{
  "body": {
    "activeCalls": [
      {
        "direction": "Inbound",
        "from": "102",
        "fromName": "Nanda Kumar",
        "id": "b8fffced0d5f455dbbcd3fc5928a1e19",
        "partyId": "p-1e94c3c4647d413eb4343426229347bf-2",
        "sessionId": "21281720004",
        "startTime": "2019-07-18T08:46:03.355Z",
        "telephonySessionId": "s-1e94c3c4647d413eb4343426229347bf",
        "telephonyStatus": "CallConnected",
        "to": "101",
        "toName": "Manoj Subramaniyan"
      }
    ],
    "allowSeeMyPresence": true,
    "dndStatus": "TakeAllCalls",
    "extensionId": 249331004,
    "pickUpCallsOnHold": false,
    "presenceStatus": "Busy",
    "ringOnMonitoredCall": false,
    "sequence": 2377,
    "telephonyStatus": "CallConnected",
    "totalActiveCalls": 1,
    "userStatus": "Available"
  },
  "event": "/restapi/v1.0/account/249331004/extension/249331004/presence?detailedTelephonyState=true",
  "ownerId": "249331004",
  "subscriptionId": "b60eeaff-98d3-41cb-919d-82ff18eecf05",
  "timestamp": "2019-07-18T08:46:17.039Z",
  "uuid": "3658773212133995824"
}
[18/Jul/2019 08:46:17] "POST /integrations/ringcentral/webhook-callback/ HTTP/1.0" 200 2
{
  "body": {
    "activeCalls": [
      {
        "direction": "Inbound",
        "from": "+12138396978",
        "id": "8855a1d5e97f4317952605aaecb00816",
        "partyId": "p-2df94ec31cff4bdbbde376b90a9710a2-2",
        "sessionId": "21281719004",
        "startTime": "2019-07-18T08:45:26.012Z",
        "telephonySessionId": "s-2df94ec31cff4bdbbde376b90a9710a2",
        "telephonyStatus": "OnHold",
        "to": "+19492747845",
        "toName": "Nanda Kumar"
      },
      {
        "direction": "Outbound",
        "from": "+19493349190",
        "fromName": "Nanda Kumar",
        "id": "b4b03594927948158d31e0ff7ac0ca16",
        "partyId": "p-1e94c3c4647d413eb4343426229347bf-1",
        "sessionId": "21281720004",
        "startTime": "2019-07-18T08:45:58.293Z",
        "telephonySessionId": "s-1e94c3c4647d413eb4343426229347bf",
        "telephonyStatus": "NoCall",
        "terminationType": "final",
        "to": "101",
        "toName": "Manoj Subramaniyan"
      }
    ],
    "allowSeeMyPresence": true,
    "dndStatus": "TakeAllCalls",
    "extensionId": 249697004,
    "pickUpCallsOnHold": false,
    "presenceStatus": "Busy",
    "ringOnMonitoredCall": false,
    "sequence": 1691,
    "telephonyStatus": "OnHold",
    "totalActiveCalls": 2,
    "userStatus": "Available"
  },
  "event": "/restapi/v1.0/account/249331004/extension/249697004/presence?detailedTelephonyState=true",
  "ownerId": "249331004",
  "subscriptionId": "b60eeaff-98d3-41cb-919d-82ff18eecf05",
  "timestamp": "2019-07-18T08:46:35.889Z",
  "uuid": "7729877915187851277"
}
[18/Jul/2019 08:46:36] "POST /integrations/ringcentral/webhook-callback/ HTTP/1.0" 200 2
{
  "body": {
    "activeCalls": [
      {
        "direction": "Inbound",
        "from": "+12138396978",
        "fromName": "Nanda Kumar",
        "id": "b8fffced0d5f455dbbcd3fc5928a1e19",
        "partyId": "p-1e94c3c4647d413eb4343426229347bf-2",
        "sessionId": "21281720004",
        "startTime": "2019-07-18T08:46:03.355Z",
        "telephonySessionId": "s-1e94c3c4647d413eb4343426229347bf",
        "telephonyStatus": "CallConnected",
        "to": "101",
        "toName": "Manoj Subramaniyan"
      }
    ],
    "allowSeeMyPresence": true,
    "dndStatus": "TakeAllCalls",
    "extensionId": 249331004,
    "pickUpCallsOnHold": false,
    "presenceStatus": "Busy",
    "ringOnMonitoredCall": false,
    "sequence": 2378,
    "telephonyStatus": "CallConnected",
    "totalActiveCalls": 1,
    "userStatus": "Available"
  },
  "event": "/restapi/v1.0/account/249331004/extension/249331004/presence?detailedTelephonyState=true",
  "ownerId": "249331004",
  "subscriptionId": "b60eeaff-98d3-41cb-919d-82ff18eecf05",
  "timestamp": "2019-07-18T08:46:36.301Z",
  "uuid": "7841111973592691272"
}
[18/Jul/2019 08:46:36] "POST /integrations/ringcentral/webhook-callback/ HTTP/1.0" 200 2
{
  "body": {
    "activeCalls": [
      {
        "direction": "Inbound",
        "from": "+12138396978",
        "id": "8855a1d5e97f4317952605aaecb00816",
        "partyId": "p-2df94ec31cff4bdbbde376b90a9710a2-2",
        "sessionId": "21281719004",
        "startTime": "2019-07-18T08:45:26.012Z",
        "telephonySessionId": "s-2df94ec31cff4bdbbde376b90a9710a2",
        "telephonyStatus": "CallConnected",
        "to": "+19492747845",
        "toName": "Nanda Kumar"
      }
    ],
    "allowSeeMyPresence": true,
    "dndStatus": "TakeAllCalls",
    "extensionId": 249697004,
    "pickUpCallsOnHold": false,
    "presenceStatus": "Busy",
    "ringOnMonitoredCall": false,
    "sequence": 1692,
    "telephonyStatus": "CallConnected",
    "totalActiveCalls": 1,
    "userStatus": "Available"
  },
  "event": "/restapi/v1.0/account/249331004/extension/249697004/presence?detailedTelephonyState=true",
  "ownerId": "249331004",
  "subscriptionId": "b60eeaff-98d3-41cb-919d-82ff18eecf05",
  "timestamp": "2019-07-18T08:46:36.455Z",
  "uuid": "8842824190899658942"
}
[18/Jul/2019 08:46:36] "POST /integrations/ringcentral/webhook-callback/ HTTP/1.0" 200 2
{
  "body": {
    "activeCalls": [
      {
        "direction": "Inbound",
        "from": "+12138396978",
        "id": ".CWUKV478fbmtppizvdoal6IhKVB1IRi",
        "partyId": "p-2df94ec31cff4bdbbde376b90a9710a2-2",
        "sessionId": "21281719004",
        "startTime": "2019-07-18T08:45:26.012Z",
        "telephonySessionId": "s-2df94ec31cff4bdbbde376b90a9710a2",
        "telephonyStatus": "NoCall",
        "terminationType": "final",
        "to": "+19492747845",
        "toName": "Nanda Kumar"
      }
    ],
    "allowSeeMyPresence": true,
    "dndStatus": "TakeAllCalls",
    "extensionId": 249697004,
    "pickUpCallsOnHold": false,
    "presenceStatus": "Available",
    "ringOnMonitoredCall": false,
    "sequence": 1693,
    "telephonyStatus": "NoCall",
    "totalActiveCalls": 1,
    "userStatus": "Available"
  },
  "event": "/restapi/v1.0/account/249331004/extension/249697004/presence?detailedTelephonyState=true",
  "ownerId": "249331004",
  "subscriptionId": "b60eeaff-98d3-41cb-919d-82ff18eecf05",
  "timestamp": "2019-07-18T08:46:37.116Z",
  "uuid": "7880425394142774590"
}
[18/Jul/2019 08:46:37] "POST /integrations/ringcentral/webhook-callback/ HTTP/1.0" 200 2
{
  "body": {
    "activeCalls": [
      {
        "direction": "Inbound",
        "from": "+12138396978",
        "id": ".CWUKV478fbmtppizvdoal6IhKVB1IRi",
        "partyId": "p-2df94ec31cff4bdbbde376b90a9710a2-2",
        "sessionId": "21281719004",
        "startTime": "2019-07-18T08:45:26.012Z",
        "telephonySessionId": "s-2df94ec31cff4bdbbde376b90a9710a2",
        "telephonyStatus": "NoCall",
        "terminationType": "final",
        "to": "+19492747845",
        "toName": "Nanda Kumar"
      }
    ],
    "allowSeeMyPresence": true,
    "dndStatus": "TakeAllCalls",
    "extensionId": 249697004,
    "pickUpCallsOnHold": false,
    "presenceStatus": "Available",
    "ringOnMonitoredCall": false,
    "sequence": 1694,
    "telephonyStatus": "NoCall",
    "totalActiveCalls": 1,
    "userStatus": "Available"
  },
  "event": "/restapi/v1.0/account/249331004/extension/249697004/presence?detailedTelephonyState=true",
  "ownerId": "249331004",
  "subscriptionId": "b60eeaff-98d3-41cb-919d-82ff18eecf05",
  "timestamp": "2019-07-18T08:46:57.411Z",
  "uuid": "8418553957626825687"
}
{
  "body": {
    "activeCalls": [
      {
        "direction": "Inbound",
        "from": "+12138396978",
        "fromName": "Nanda Kumar",
        "id": "b8fffced0d5f455dbbcd3fc5928a1e19",
        "partyId": "p-1e94c3c4647d413eb4343426229347bf-2",
        "sessionId": "21281720004",
        "startTime": "2019-07-18T08:46:03.355Z",
        "telephonySessionId": "s-1e94c3c4647d413eb4343426229347bf",
        "telephonyStatus": "NoCall",
        "terminationType": "final",
        "to": "101",
        "toName": "Manoj Subramaniyan"
      }
    ],
    "allowSeeMyPresence": true,
    "dndStatus": "TakeAllCalls",
    "extensionId": 249331004,
    "pickUpCallsOnHold": false,
    "presenceStatus": "Available",
    "ringOnMonitoredCall": false,
    "sequence": 2379,
    "telephonyStatus": "NoCall",
    "totalActiveCalls": 1,
    "userStatus": "Available"
  },
  "event": "/restapi/v1.0/account/249331004/extension/249331004/presence?detailedTelephonyState=true",
  "ownerId": "249331004",
  "subscriptionId": "b60eeaff-98d3-41cb-919d-82ff18eecf05",
  "timestamp": "2019-07-18T08:46:57.446Z",
  "uuid": "5815094066124973139"
}
[18/Jul/2019 08:46:58] "POST /integrations/ringcentral/webhook-callback/ HTTP/1.0" 200 2
[18/Jul/2019 08:46:58] "POST /integrations/ringcentral/webhook-callback/ HTTP/1.0" 200 2
{
  "body": {
    "activeCalls": [
      {
        "direction": "Outbound",
        "from": "+19493349190",
        "fromName": "Nanda Kumar",
        "id": "b4b03594927948158d31e0ff7ac0ca16",
        "partyId": "p-1e94c3c4647d413eb4343426229347bf-1",
        "sessionId": "21281720004",
        "startTime": "2019-07-18T08:45:58.293Z",
        "telephonySessionId": "s-1e94c3c4647d413eb4343426229347bf",
        "telephonyStatus": "NoCall",
        "terminationType": "final",
        "to": "101",
        "toName": "Manoj Subramaniyan"
      }
    ],
    "allowSeeMyPresence": true,
    "dndStatus": "TakeAllCalls",
    "extensionId": 249697004,
    "pickUpCallsOnHold": false,
    "presenceStatus": "Available",
    "ringOnMonitoredCall": false,
    "sequence": 1695,
    "telephonyStatus": "NoCall",
    "totalActiveCalls": 1,
    "userStatus": "Available"
  },
  "event": "/restapi/v1.0/account/249331004/extension/249697004/presence?detailedTelephonyState=true",
  "ownerId": "249331004",
  "subscriptionId": "b60eeaff-98d3-41cb-919d-82ff18eecf05",
  "timestamp": "2019-07-18T08:46:58.468Z",
  "uuid": "2439993634006376870"
}
[18/Jul/2019 08:46:58] "POST /integrations/ringcentral/webhook-callback/ HTTP/1.0" 200 2


Call logs for both the session ids using the endpoint /restapi/v1.0/account/~/call-log?&view=Detailed:


Call log for sessionId 21281719004(from +12138396978 to +19492747845(Ext: 102)):

{
  "action": "Phone Call",
  "billing": {
    "costIncluded": 0.0,
    "costPurchased": 0.0
  },
  "direction": "Inbound",
  "duration": 96,
  "from": {
    "location": "Los Angeles , CA",
    "phoneNumber": "+12138396978"
  },
  "id": "AcKobg12K0kGzUA",
  "lastModifiedTime": "2019-07-18T08:47:10.003Z",
  "legs": [
    {
      "action": "Phone Call",
      "billing": {
        "costIncluded": 0.0,
        "costPurchased": 0.0
      },
      "direction": "Inbound",
      "duration": 96,
      "from": {
        "location": "Los Angeles , CA",
        "phoneNumber": "+12138396978"
      },
      "legType": "Accept",
      "master": true,
      "reason": "Accepted",
      "reasonDescription": "The call connected to and was accepted by this number.",
      "result": "Accepted",
      "startTime": "2019-07-18T08:45:20.848Z",
      "to": {
        "phoneNumber": "+19492747845"
      },
      "transport": "PSTN",
      "type": "Voice"
    },
    {
      "action": "Phone Call",
      "direction": "Inbound",
      "duration": 96,
      "extension": {
        "id": 249697004,
        "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/249331004/extension/249697004"
      },
      "from": {
        "location": "Los Angeles , CA",
        "phoneNumber": "+12138396978"
      },
      "legType": "Accept",
      "reason": "Accepted",
      "reasonDescription": "The call connected to and was accepted by this number.",
      "result": "Accepted",
      "startTime": "2019-07-18T08:45:20.875Z",
      "to": {
        "extensionId": "249697004",
        "name": "Nanda Kumar",
        "phoneNumber": "+19492747845"
      },
      "transport": "PSTN",
      "type": "Voice"
    },
    {
      "action": "VoIP Call",
      "direction": "Outbound",
      "duration": 91,
      "extension": {
        "id": 249697004,
        "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/249331004/extension/249697004"
      },
      "from": {
        "device": {
          "id": "801533794004",
          "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/249331004/device/801533794004"
        },
        "extensionId": "249697004",
        "name": "Nanda Kumar",
        "phoneNumber": "+12138396978"
      },
      "legType": "PstnToSip",
      "reason": "Accepted",
      "reasonDescription": "The call connected to and was accepted by this number.",
      "result": "Call connected",
      "startTime": "2019-07-18T08:45:25.932Z",
      "to": {
        "extensionNumber": "102",
        "location": "Saddleback Valley, CA",
        "phoneNumber": "+19493349190"
      },
      "transport": "VoIP",
      "type": "Voice"
    },
    {
      "action": "Transfer",
      "direction": "Outbound",
      "duration": 21,
      "extension": {
        "id": 249697004,
        "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/249331004/extension/249697004"
      },
      "from": {
        "extensionId": "249697004",
        "name": "Nanda Kumar"
      },
      "legType": "TransferCall",
      "result": "Call connected",
      "startTime": "2019-07-18T08:46:36.185Z",
      "to": {
        "location": "Los Angeles , CA"
      },
      "transport": "PSTN",
      "type": "Voice"
    }
  ],
  "reason": "Accepted",
  "reasonDescription": "The call connected to and was accepted by this number.",
  "result": "Accepted",
  "sessionId": "21281719004",
  "startTime": "2019-07-18T08:45:20.848Z",
  "to": {
    "phoneNumber": "+19492747845"
  },
  "transport": "PSTN",
  "type": "Voice",
  "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/249331004/call-log/AcKobg12K0kGzUA?view=Detailed"
}


Call log for sessionId 21281720004(from 102 to 101):

{
  "action": "Phone Call",
  "billing": {
    "costIncluded": 0.0,
    "costPurchased": 0.0
  },
  "direction": "Inbound",
  "duration": 61,
  "from": {
    "extensionNumber": "102",
    "name": "Nanda Kumar"
  },
  "id": "AcKob3C7o6aQzUA",
  "lastModifiedTime": "2019-07-18T08:47:10.003Z",
  "legs": [
    {
      "action": "VoIP Call",
      "direction": "Outbound",
      "duration": 61,
      "extension": {
        "id": 249697004,
        "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/249331004/extension/249697004"
      },
      "from": {
        "device": {
          "id": "801533794004",
          "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/249331004/device/801533794004"
        },
        "extensionId": "249697004",
        "extensionNumber": "102",
        "name": "Nanda Kumar"
      },
      "legType": "SipToPstnMetered",
      "result": "Call connected",
      "startTime": "2019-07-18T08:45:58.301Z",
      "to": {
        "extensionNumber": "101",
        "name": "Manoj Subramaniyan"
      },
      "transport": "VoIP",
      "type": "Voice"
    },
    {
      "action": "Phone Call",
      "direction": "Inbound",
      "duration": 61,
      "from": {
        "extensionNumber": "102",
        "name": "Nanda Kumar"
      },
      "legType": "Accept",
      "master": true,
      "reason": "Accepted",
      "reasonDescription": "The call connected to and was accepted by this number.",
      "result": "Accepted",
      "startTime": "2019-07-18T08:45:58.302Z",
      "to": {
        "extensionNumber": "101"
      },
      "transport": "PSTN",
      "type": "Voice"
    },
    {
      "action": "Phone Call",
      "direction": "Inbound",
      "duration": 61,
      "extension": {
        "id": 249331004,
        "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/249331004/extension/249331004"
      },
      "from": {
        "extensionNumber": "102",
        "name": "Nanda Kumar"
      },
      "legType": "Accept",
      "reason": "Accepted",
      "reasonDescription": "The call connected to and was accepted by this number.",
      "result": "Accepted",
      "startTime": "2019-07-18T08:45:58.327Z",
      "to": {
        "extensionId": "249331004",
        "extensionNumber": "101",
        "name": "Manoj Subramaniyan"
      },
      "transport": "PSTN",
      "type": "Voice"
    },
    {
      "action": "VoIP Call",
      "direction": "Outbound",
      "duration": 54,
      "extension": {
        "id": 249331004,
        "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/249331004/extension/249331004"
      },
      "from": {
        "device": {
          "id": "801536799004",
          "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/249331004/device/801536799004"
        },
        "extensionId": "249331004",
        "extensionNumber": "102",
        "name": "Manoj Subramaniyan"
      },
      "legType": "PstnToSip",
      "reason": "Accepted",
      "reasonDescription": "The call connected to and was accepted by this number.",
      "recording": {
        "contentUri": "https://media.devtest.ringcentral.com/restapi/v1.0/account/249331004/recording/6609826004/content",
        "id": "6609826004",
        "type": "OnDemand",
        "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/249331004/recording/6609826004"
      },
      "result": "Call connected",
      "startTime": "2019-07-18T08:46:03.327Z",
      "to": {
        "extensionNumber": "101",
        "location": "Saddleback Valley, CA",
        "phoneNumber": "+19493349190"
      },
      "transport": "VoIP",
      "type": "Voice"
    },
    {
      "action": "Transfer",
      "direction": "Outbound",
      "duration": 21,
      "extension": {
        "id": 249331004,
        "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/249331004/extension/249331004"
      },
      "from": {
        "device": {
          "id": "801536799004",
          "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/249331004/device/801536799004"
        },
        "extensionId": "249331004",
        "name": "Manoj Subramaniyan"
      },
      "legType": "TransferCall",
      "result": "Call connected",
      "startTime": "2019-07-18T08:46:35.765Z",
      "to": {
        "location": "Saddleback Valley, CA"
      },
      "transport": "PSTN",
      "type": "Voice"
    }
  ],
  "reason": "Accepted",
  "reasonDescription": "The call connected to and was accepted by this number.",
  "recording": {
    "contentUri": "https://media.devtest.ringcentral.com/restapi/v1.0/account/249331004/recording/6609826004/content",
    "id": "6609826004",
    "type": "OnDemand",
    "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/249331004/recording/6609826004"
  },
  "result": "Accepted",
  "sessionId": "21281720004",
  "startTime": "2019-07-18T08:45:58.302Z",
  "to": {
    "extensionNumber": "101"
  },
  "transport": "PSTN",
  "type": "Voice",
  "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/249331004/call-log/AcKob3C7o6aQzUA?view=Detailed"
}
call handling
1 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Adithya PK avatar image Adithya PK commented ·

Two issues:

  1. There is no reliable way to link the above calls.
  2. Why is the phone number/name not being sent in `to`, `from` nodes in call leg objects? Not even the extension is being sent. We need that info to know from where to where the call is transferred. For example: Check the above call log for sessionId: 21281719004. Only `location` node is present in the `to` node.
0 Likes 0 ·

0 Answers

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys