Legacy Dev Forum Posts

 View Only

Sign Up

Conversations - conversationStart and segmentStart incorrect

  • 1.  Conversations - conversationStart and segmentStart incorrect

    Posted 06-05-2025 18:11

    OzSze | 2017-03-22 04:54:02 UTC | #1

    There seems to be some inconsistency with the Conversations data with the conversationStart. Using "/api/v2/analytics/conversations/{conversationId}/details".

    The conversationStart should be the overall start time for the conversation.

    However I have come across some records whereby the conversationStart is after the first segmentStart.

    Below are two examples.

    Example (1) { "conversationId": "7a59731a-7202-432d-b551-ba213ca701f4", "conversationStart": "2017-03-20T20:43:53.552Z", "conversationEnd": "2017-03-20T20:43:55.001Z", "participants": [ { "participantId": "3296614a-0aa4-469b-ab62-3f57b6bbdb80", "userId": "5c3d08a9-5646-49c6-8591-e583a378d8b8", "purpose": "user", "sessions": [ { "mediaType": "voice", "sessionId": "62587b53-bb9a-48b8-994e-757c5a0309a5", "ani": "sip:AKLWS002@103.247.154.170:8060", "direction": "outbound", "dnis": "tel:+6493077532;tgrp=8b1c0e0f-f851-450b-83f7-4db691ac11b9;trunk-context=employsure", "edgeId": "d8c43e41-61a0-4b01-83c8-e8cf79f0a742", "segments": [ { "segmentStart": "2017-03-20T20:43:53.497Z", "segmentEnd": "2017-03-20T20:43:55.001Z", "disconnectType": "peer", "segmentType": "dialing", "sipResponseCodes": [ 404 ], "q850ResponseCodes": [ 1 ], "conference": false } ] } ] }, { "participantId": "d3bd69e3-08d2-40a1-930a-0688f0a121be", "participantName": "New Zealand", "purpose": "external", "sessions": [ { "mediaType": "voice", "sessionId": "72841547-aa35-4a65-b791-0b0073d6dafa", "ani": "sip:+6493939441@103.247.154.170;user=phone", "direction": "outbound", "dnis": "tel:+6493077532", "edgeId": "41f3a5d7-8678-4d1a-8319-cdcce97f8ef5", "segments": [ { "segmentStart": "2017-03-20T20:43:53.552Z", "segmentEnd": "2017-03-20T20:43:54.344Z", "segmentType": "dialing", "sipResponseCodes": [ 404 ], "q850ResponseCodes": [ 1 ], "conference": false } ] } ] }, { "participantId": "af51b433-98da-4c4e-b934-f636004868ce", "participantName": "New Zealand", "purpose": "external", "sessions": [ { "mediaType": "voice", "sessionId": "3b3ae08b-5274-4e24-88f7-c1fc9c19a38e", "ani": "sip:+6493939441@103.247.154.170;user=phone", "direction": "outbound", "dnis": "tel:+6493077532", "edgeId": "d8c43e41-61a0-4b01-83c8-e8cf79f0a742", "segments": [ { "segmentStart": "2017-03-20T20:43:54.353Z", "segmentEnd": "2017-03-20T20:43:55.001Z", "segmentType": "dialing", "sipResponseCodes": [ 404 ], "q850ResponseCodes": [ 1 ], "conference": false } ] } ] } ] }

    Example (2) { "conversationId": "6c092883-c69c-4e96-b42d-cafeac05cd71", "conversationStart": "2017-03-20T05:57:02.002Z", "conversationEnd": "2017-03-20T05:58:36.621Z", "participants": [ { "participantId": "09283894-e390-4370-8bbe-b1f702009e90", "participantName": "61893764001", "purpose": "customer", "sessions": [ { "mediaType": "voice", "sessionId": "1399c87b-27f6-41c2-897d-a9884d36d12d", "ani": "tel:+61893764001", "direction": "inbound", "dnis": "tel:+61281233640", "edgeId": "5aa91dbf-9531-48b7-b0e1-53cfa52ddc81", "segments": [ { "segmentStart": "2017-03-20T05:57:01.979Z", "segmentEnd": "2017-03-20T05:57:02.067Z", "segmentType": "system", "conference": false }, { "segmentStart": "2017-03-20T05:57:02.067Z", "segmentEnd": "2017-03-20T05:58:36.621Z", "segmentType": "interact", "conference": false } ] } ] }, { "participantId": "ebcf8875-603c-4d97-bdc9-bc0f80495b63", "participantName": "National", "purpose": "ivr", "sessions": [ { "mediaType": "voice", "sessionId": "dcb50adc-054e-403c-a624-80da3e091791", "ani": "tel:+61893764001", "direction": "inbound", "edgeId": "6f739d1b-4c86-4116-946f-da625323b41f", "segments": [ { "segmentStart": "2017-03-20T05:57:02.002Z", "segmentEnd": "2017-03-20T05:57:02.046Z", "segmentType": "system", "conference": false }, { "segmentStart": "2017-03-20T05:57:02.046Z", "segmentEnd": "2017-03-20T05:57:03.438Z", "segmentType": "ivr", "conference": false } ] } ] }, { "participantId": "f8e019ba-714e-4c85-8207-b7a640e80c72", "participantName": "AUMain_Q", "purpose": "acd", "sessions": [ { "mediaType": "voice", "sessionId": "ab43f9fb-ea6a-46bb-9b35-e3f40f0a9d5b", "ani": "tel:+61893764001", "direction": "inbound", "edgeId": "6f739d1b-4c86-4116-946f-da625323b41f", "segments": [ { "segmentStart": "2017-03-20T05:57:03.454Z", "segmentEnd": "2017-03-20T05:57:03.514Z", "queueId": "7d265bbd-fe8f-47d4-8a78-aa8a7efeea5f", "segmentType": "delay", "requestedRoutingSkillIds": [ "049f64cb-0a3d-4851-a4d3-de653421adf5" ], "conference": false }, { "segmentStart": "2017-03-20T05:57:03.514Z", "segmentEnd": "2017-03-20T05:58:36.617Z", "queueId": "7d265bbd-fe8f-47d4-8a78-aa8a7efeea5f", "disconnectType": "system", "segmentType": "interact", "requestedRoutingSkillIds": [ "049f64cb-0a3d-4851-a4d3-de653421adf5" ], "conference": false } ] } ] } ] }


    tim.smith | 2017-03-22 15:01:12 UTC | #2

    Could you open a ticket with PureCloud Support for this? They will be able to investigate this data issue further.


    OzSze | 2017-03-22 22:13:16 UTC | #3

    Will do so. I have other examples but did not include in post as it is too long.


    Rasko | 2017-03-27 15:19:13 UTC | #4

    Have you received any respond from the support?


    OzSze | 2017-03-29 01:17:43 UTC | #5

    The support request will be lodged today. Will let you know as soon as I hear back from them.


    system | 2017-08-28 19:33:12 UTC | #6


    This post was migrated from the old Developer Forum.

    ref: 1081