Legacy Dev Forum Posts

 View Only

Sign Up

Missing disconnectType field

  • 1.  Missing disconnectType field

    Posted 06-05-2025 18:11

    Yan_Naroditsky | 2017-05-09 17:36:31 UTC | #1

    Hi,

    I found that disconnectType is missing from one of the participant records of the conversation

    {
    	"id": "9c71c35a-1c52-4253-8fef-2eb716094d4b",
    	"participants": [{
    			"id": "22b5589b-4944-4035-9c60-ff7e894b020f",
    			"name": "Beijing, China",
    			"address": "tel:+861058655000",
    			"startTime": "2017-05-08T02:20:45.209Z",
    			"connectedTime": "2017-05-08T02:20:45.277Z",
    			"endTime": "2017-05-08T02:23:00.457Z",
    			"purpose": "customer",
    			"state": "disconnected",
    			"direction": "inbound",
    			"disconnectType": "endpoint",
    			"held": false,
    			"wrapupRequired": false,
    			"queue": {
    				"id": "f090222f-6a26-4420-b802-5848b6ef5e09",
    				"selfUri": "/api/v2/routing/queues/f090222f-6a26-4420-b802-5848b6ef5e09"
    			},
    			"attributes": {
    				"NDNIS": "8542",
    				"NANI": "1058655000",
    				"PropertyCode": "BJSHI"
    			},
    			"provider": "Edge",
    			"muted": false,
    			"confined": false,
    			"recording": false,
    			"recordingState": "none",
    			"ani": "tel:+861058655000",
    			"dnis": "tel:+862123268542"
    		}, {
    			"id": "7ea8bbf9-9ade-4116-90fa-dd836223f74e",
    			"name": "Shanghai, China",
    			"address": "sip:9cebe2bc-5069-4030-9b42-602df864f3c5@127.0.0.1;language=en-US;user=ivr",
    			"startTime": "2017-05-08T02:20:45.445Z",
    			"connectedTime": "2017-05-08T02:20:45.473Z",
    			"endTime": "2017-05-08T02:20:47.989Z",
    			"purpose": "ivr",
    			"state": "disconnected",
    			"direction": "inbound",
    			"disconnectType": "transfer",
    			"held": false,
    			"wrapupRequired": false,
    			"attributes": {},
    			"provider": "Edge",
    			"muted": false,
    			"confined": false,
    			"recording": false,
    			"recordingState": "none",
    			"ani": "tel:+861058655000",
    			"dnis": "sip:9cebe2bc-5069-4030-9b42-602df864f3c5@127.0.0.1;language=en-US;user=ivr"
    		}, {
    			"id": "ca45ef1a-89ef-4388-838d-56128a2375f6",
    			"name": "China Key Resmax - Q",
    			"address": "sip:f090222f-6a26-4420-b802-5848b6ef5e09@127.0.0.1;language=en-US;src=https://edge-proxy.ap-northeast-1.mypurecloud.jp:945/connector/v1/organizations/742c7ec7-6a75-4a3f-b78a-5ec17c23ff15/defaults/ivr/3909a02b-9072-4510-846f-146d2aca059b/defaultentrypoint.vxml;user=acd",
    			"startTime": "2017-05-08T02:20:47.782Z",
    			"connectedTime": "2017-05-08T02:20:47.798Z",
    			"endTime": "2017-05-08T02:20:48.899Z",
    			"purpose": "acd",
    			"state": "terminated",
    			"direction": "inbound",
    			"disconnectType": "transfer",
    			"held": false,
    			"wrapupRequired": false,
    			"queue": {
    				"id": "f090222f-6a26-4420-b802-5848b6ef5e09",
    				"selfUri": "/api/v2/routing/queues/f090222f-6a26-4420-b802-5848b6ef5e09"
    			},
    			"attributes": {
    				"ivr.Priority": "10"
    			},
    			"errorInfo": {
    				"code": "error.ininedgecontrol.session.inactive",
    				"message": "sessionId is inactive",
    				"messageWithParams": "sessionId is inactive",
    				"messageParams": {
    					"text": "sessionId is inactive"
    				},
    				"details": [],
    				"errors": []
    			},
    			"provider": "Edge",
    			"muted": false,
    			"confined": false,
    			"recording": false,
    			"recordingState": "none",
    			"ani": "tel:+861058655000",
    			"dnis": "sip:f090222f-6a26-4420-b802-5848b6ef5e09@127.0.0.1;language=en-US;src=https://edge-proxy.ap-northeast-1.mypurecloud.jp:945/connector/v1/organizations/742c7ec7-6a75-4a3f-b78a-5ec17c23ff15/defaults/ivr/3909a02b-9072-4510-846f-146d2aca059b/defaultentrypoint.vxml;user=acd"
    		}, {
    			"id": "5e27a3ac-c912-4ffd-ac28-3a61a2d3ebf8",
    			"address": "sip:1027@10.180.64.22;language=en-US;user=station",
    			"startTime": "2017-05-08T02:20:48.887Z",
    			"endTime": "2017-05-08T02:20:48.671Z",
    			"purpose": "agent",
    			"state": "disconnected",
    			"direction": "inbound",
    			"held": false,
    			"wrapupRequired": false,
    			"wrapupPrompt": "optional",
    			"user": {
    				"id": "07091486-3db9-4bf7-8e10-89cc576a58e1",
    				"selfUri": "/api/v2/users/07091486-3db9-4bf7-8e10-89cc576a58e1"
    			},
    			"queue": {
    				"id": "f090222f-6a26-4420-b802-5848b6ef5e09",
    				"selfUri": "/api/v2/routing/queues/f090222f-6a26-4420-b802-5848b6ef5e09"
    			},
    			"attributes": {},
    			"provider": "Edge",
    			"muted": false,
    			"confined": false,
    			"recording": false,
    			"recordingState": "none",
    			"ani": "sip:+861058655000@10.180.64.21;user=phone",
    			"dnis": "sip:1027@10.180.64.22;language=en-US;user=station"
    		}, {
    			"id": "e2727c8a-8d71-49b8-9f08-fb7a250f1a3b",
    			"address": "sip:1027@10.180.64.21",
    			"startTime": "2017-05-08T02:20:48.704Z",
    			"connectedTime": "2017-05-08T02:20:48.896Z",
    			"endTime": "2017-05-08T02:23:00.461Z",
    			"purpose": "agent",
    			"state": "disconnected",
    			"direction": "inbound",
    			"disconnectType": "peer",
    			"held": false,
    			"wrapupRequired": true,
    			"wrapupPrompt": "optional",
    			"user": {
    				"id": "07091486-3db9-4bf7-8e10-89cc576a58e1",
    				"selfUri": "/api/v2/users/07091486-3db9-4bf7-8e10-89cc576a58e1"
    			},
    			"queue": {
    				"id": "f090222f-6a26-4420-b802-5848b6ef5e09",
    				"selfUri": "/api/v2/routing/queues/f090222f-6a26-4420-b802-5848b6ef5e09"
    			},
    			"attributes": {},
    			"provider": "Edge",
    			"wrapup": {
    				"code": "7fb334b0-0e9e-11e4-9191-0800200c9a66",
    				"notes": "",
    				"tags": [],
    				"durationSeconds": 3,
    				"endTime": "2017-05-08T02:23:03.554Z"
    			},
    			"muted": false,
    			"confined": false,
    			"recording": false,
    			"recordingState": "none",
    			"ani": "sip:+861058655000@10.180.64.21;user=phone",
    			"dnis": "sip:1027@10.180.64.21"
    		}
    	],
    	"otherMediaUris": [],
    	"recordingState": "none",
    	"selfUri": "/api/v2/conversations/calls/9c71c35a-1c52-4253-8fef-2eb716094d4b"
    }

    tim.smith | 2017-05-09 18:26:08 UTC | #2

    What resource are you using to retrieve the data? Is there a difference between the data returned from conversation and analytics API resources?


    Yan_Naroditsky | 2017-05-09 18:39:02 UTC | #3

    I am using

    /api/v2/conversations/calls/

    Haven't checked with the analytics API


    tim.smith | 2017-05-09 19:55:39 UTC | #4

    I've checked with the dev team and this needs to go through PureCloud Support to troubleshoot the missing data.


    Yan_Naroditsky | 2017-05-09 19:57:52 UTC | #5

    Ok! Will open the ticket


    system | 2017-06-09 20:12:30 UTC | #6

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 1272