docs: close caller analytics remediation delivery

This commit is contained in:
hectorzhao
2026-09-01 11:14:16 +08:00
parent 9fa1964dec
commit 367211ee47
6 changed files with 827 additions and 9 deletions
@@ -0,0 +1,752 @@
{
"date": "2026-09-01T02:44:55.304Z",
"from": "2026-09-01T02:44:48.013Z",
"api": {
"status": 200,
"body": {
"metricVersion": "caller-analytics-v1.1",
"analysisRevision": "caller-analytics-r2",
"snapshotId": "11b2aac60d66a436654584f578321207b4f3c0195942b10630ebd7bba8ed39f6",
"view": "landing",
"from": "2026-09-01T02:44:48.013Z",
"to": "2026-09-01T02:44:55.140Z",
"asOf": "2026-09-01T02:44:55.150Z",
"qualityStatus": "LIVE",
"coverageStatus": "CONTINUOUS",
"dataThrough": "2026-09-01T02:44:53.599Z",
"lagMs": 468,
"durationPrecision": "milliseconds",
"health": {
"gap": false,
"lagMs": 468,
"bootId": "66823a5b-4361-4c39-8bf8-f8db9736347f",
"reason": "",
"degraded": false,
"updatedAt": "2026-09-01T02:44:54.959Z",
"dataThrough": "2026-09-01T02:44:53.599Z",
"spoolOffset": 109742,
"captureSince": "2026-09-01T02:23:21Z",
"coverageStatus": "CONTINUOUS",
"spoolUnreadBytes": 0,
"producerEventCount": 32,
"collectedEventCount": 32
},
"gaps": [],
"summary": {
"totalCalls": 6,
"connectedCalls": 4,
"answeredCalls": 2,
"failedCalls": 2,
"pendingCalls": 0,
"unknownCalls": 0,
"activeCalls": 0,
"talkMs": 1801,
"durationUnknownCalls": 0,
"provisionalAnsweredCalls": 0,
"notConnectedCalls": 2,
"connectionRate": 66.6667,
"overallAnswerRate": 33.3333,
"connectedAnswerRate": 50
},
"summaryScope": "时间及业务筛选;样本/比例/异常筛选仅影响号码列表",
"numbers": [
{
"customerId": "cra_20260831",
"caller": "99100001",
"totalCalls": 6,
"connectedCalls": 4,
"answeredCalls": 2,
"failedCalls": 2,
"pendingCalls": 0,
"unknownCalls": 0,
"activeCalls": 0,
"talkMs": 1801,
"durationUnknownCalls": 0,
"provisionalAnsweredCalls": 0,
"notConnectedCalls": 2,
"connectionRate": 66.6667,
"overallAnswerRate": 33.3333,
"connectedAnswerRate": 50,
"alert": null
}
],
"total": 1,
"skip": 0,
"take": 25,
"trends": [
{
"time": 1788230640000,
"totalCalls": 6,
"connectedCalls": 4,
"answeredCalls": 2,
"failedCalls": 2,
"pendingCalls": 0,
"unknownCalls": 0,
"activeCalls": 0,
"talkMs": 1801,
"durationUnknownCalls": 0,
"provisionalAnsweredCalls": 0,
"caller": "",
"customerId": "",
"notConnectedCalls": 2,
"connectionRate": 66.6667,
"overallAnswerRate": 33.3333,
"connectedAnswerRate": 50
}
],
"baseFilters": {
"view": "landing",
"from": "2026-09-01T02:44:48.013Z",
"to": "2026-09-01T02:44:55.140Z",
"customerId": "cra_20260831",
"customerGatewayId": "",
"vendorId": "",
"vendorGatewayId": "",
"caller": "",
"city": "",
"carrier": ""
},
"numberFilters": {
"minSamples": 0,
"onlyAlerts": false,
"connectionMin": 0,
"connectionMax": 100,
"overallMin": 0,
"overallMax": 100,
"connectedMin": 0,
"connectedMax": 100
},
"metricAvailability": {
"connectionRate": true,
"answerRates": true
},
"historyNotice": "当前窗口在连续采集覆盖内;旧固定6秒话单不参与校准。"
}
},
"detail": {
"rows": [
{
"id": "bd2f99d0f2f094dafa116dc400cfb9d7d8371005cc529737e327dfeb1d9b8345",
"callKey": "be549d085a7dee62f13ae303c379803081d7bc8e5436e80fed9a933707c22d0d",
"startedAt": "2026-09-01T02:44:52.099Z",
"caller": "99100001",
"callee": "99106",
"vendorGatewayId": "cra_20260831",
"counts": {
"talkMs": 0,
"totalCalls": 1,
"activeCalls": 0,
"failedCalls": 1,
"pendingCalls": 0,
"unknownCalls": 0,
"answeredCalls": 0,
"connectedCalls": 0,
"durationUnknownCalls": 0,
"provisionalAnsweredCalls": 0
},
"payload": {
"event": {
"at": 1788230692099,
"city": "UNKNOWN",
"code": 0,
"cseq": "",
"kind": "ATTEMPT",
"bootId": "66823a5b-4361-4c39-8bf8-f8db9736347f",
"branch": "",
"callId": "cra-99106-d9a7fdb7122b429b8eb2925d6ee8df7d@loopback",
"callee": "99106",
"caller": "99100001",
"method": "INVITE",
"nodeId": "YanZi",
"source": "opensips",
"talkMs": null,
"callUid": "e8c57831b2aac971c4ca3583cb67cad8582eed13b58e7ea39f5f0be2bc86c6ed",
"carrier": "UNKNOWN",
"eventId": "231e79d6950e2d7307bfe838c6baf2ca4d3ecc9c83bd929e6b3045bd2139021c",
"sequence": 1788230692099000,
"vendorId": "cra_20260831",
"attemptId": "1",
"startedAt": 1788230692099,
"customerId": "cra_20260831",
"receivedAt": 1788230692439,
"landingCaller": "99100001",
"schemaVersion": 2,
"evidenceVersion": 2,
"vendorGatewayId": "cra_20260831",
"customerGatewayId": "cra_20260831"
},
"talkMs": 0,
"endedAt": 1788230693599,
"unknown": false,
"finalCode": 486,
"acceptedAt": null,
"durationAt": 1788230693599,
"first180At": null,
"first183At": null,
"durationFinal": true,
"talkStartedAt": null,
"durationComplete": true,
"durationAuthority": 1,
"terminationReason": "verified-dialog-final"
}
},
{
"id": "1ced517eabcf44a9c87bbb01859b0478486e3de0c57c9aacbc88373b26caa332",
"callKey": "87a0252e111310be93d0ac6200ca31519408e7eda0f6d0019e58129dbb394c8e",
"startedAt": "2026-09-01T02:44:51.345Z",
"caller": "99100001",
"callee": "99105",
"vendorGatewayId": "cra_20260831",
"counts": {
"talkMs": 300,
"totalCalls": 1,
"activeCalls": 0,
"failedCalls": 0,
"pendingCalls": 0,
"unknownCalls": 0,
"answeredCalls": 1,
"connectedCalls": 1,
"durationUnknownCalls": 0,
"provisionalAnsweredCalls": 0
},
"payload": {
"event": {
"at": 1788230691346,
"city": "UNKNOWN",
"code": 0,
"cseq": "",
"kind": "ATTEMPT",
"bootId": "66823a5b-4361-4c39-8bf8-f8db9736347f",
"branch": "",
"callId": "cra-99105-f2cc27a5f1c44e3097a1ba39497600a1@loopback",
"callee": "99105",
"caller": "99100001",
"method": "INVITE",
"nodeId": "YanZi",
"source": "opensips",
"talkMs": null,
"callUid": "158db5741881d9555396f88f8d71be8114b3de9b3fbb01b1977afc3216c191f3",
"carrier": "UNKNOWN",
"eventId": "a2573b627de297d67e9800ad9ce123999e4a56885c9fe4b60f8e046df0072622",
"sequence": 1788230691346000,
"vendorId": "cra_20260831",
"attemptId": "1",
"startedAt": 1788230691345,
"customerId": "cra_20260831",
"receivedAt": 1788230691655,
"landingCaller": "99100001",
"schemaVersion": 2,
"evidenceVersion": 2,
"vendorGatewayId": "cra_20260831",
"customerGatewayId": "cra_20260831"
},
"talkMs": 300,
"endedAt": 1788230691797,
"unknown": false,
"finalCode": 200,
"acceptedAt": 1788230691496,
"durationAt": 1788230691797,
"first180At": 1788230691346,
"first183At": null,
"durationFinal": true,
"talkStartedAt": 1788230691497,
"durationComplete": true,
"durationAuthority": 1,
"terminationReason": "verified-dialog-final"
}
},
{
"id": "4c4589bdcd2ef482d577a76f47e7e3cd504bd05aee95b6228a86939e89530940",
"callKey": "52584c11a53a7388dd68ad49afc1e5dfc407b851aa12a813229eb81265975f71",
"startedAt": "2026-09-01T02:44:49.540Z",
"caller": "99100001",
"callee": "99104",
"vendorGatewayId": "cra_20260831",
"counts": {
"talkMs": 1501,
"totalCalls": 1,
"activeCalls": 0,
"failedCalls": 0,
"pendingCalls": 0,
"unknownCalls": 0,
"answeredCalls": 1,
"connectedCalls": 1,
"durationUnknownCalls": 0,
"provisionalAnsweredCalls": 0
},
"payload": {
"event": {
"at": 1788230689541,
"city": "UNKNOWN",
"code": 0,
"cseq": "",
"kind": "ATTEMPT",
"bootId": "66823a5b-4361-4c39-8bf8-f8db9736347f",
"branch": "",
"callId": "cra-99104-95c6b3c023b94f4f9fdd7781c37587f8@loopback",
"callee": "99104",
"caller": "99100001",
"method": "INVITE",
"nodeId": "YanZi",
"source": "opensips",
"talkMs": null,
"callUid": "5c68fe746adb05173b06bbc7f1fc3fb60b15a2c155500be4d5c860a34fcd408d",
"carrier": "UNKNOWN",
"eventId": "1b15c22588b24db034cff9e4a7bfa135d326ba3b38c8f592952fb72aaf13c041",
"sequence": 1788230689541000,
"vendorId": "cra_20260831",
"attemptId": "1",
"startedAt": 1788230689540,
"customerId": "cra_20260831",
"receivedAt": 1788230689889,
"landingCaller": "99100001",
"schemaVersion": 2,
"evidenceVersion": 2,
"vendorGatewayId": "cra_20260831",
"customerGatewayId": "cra_20260831"
},
"talkMs": 1501,
"endedAt": 1788230691043,
"unknown": false,
"finalCode": 200,
"acceptedAt": 1788230689541,
"durationAt": 1788230691043,
"first180At": null,
"first183At": null,
"durationFinal": true,
"talkStartedAt": 1788230689542,
"durationComplete": true,
"durationAuthority": 1,
"terminationReason": "verified-dialog-final"
}
},
{
"id": "cdcbfca07604ebff4bbe4fe6734873f0eea61d1f798825b0ff2e698e33d0d6e6",
"callKey": "7a108c8adcfc4af723c08103a2be7bba190f9d42a6b8edc272cc2542a5fe6330",
"startedAt": "2026-09-01T02:44:49.239Z",
"caller": "99100001",
"callee": "99103",
"vendorGatewayId": "cra_20260831",
"counts": {
"talkMs": 0,
"totalCalls": 1,
"activeCalls": 0,
"failedCalls": 1,
"pendingCalls": 0,
"unknownCalls": 0,
"answeredCalls": 0,
"connectedCalls": 0,
"durationUnknownCalls": 0,
"provisionalAnsweredCalls": 0
},
"payload": {
"event": {
"at": 1788230689239,
"city": "UNKNOWN",
"code": 0,
"cseq": "",
"kind": "ATTEMPT",
"bootId": "66823a5b-4361-4c39-8bf8-f8db9736347f",
"branch": "",
"callId": "cra-99103-53e5a373297a43919927eebd528cd362@loopback",
"callee": "99103",
"caller": "99100001",
"method": "INVITE",
"nodeId": "YanZi",
"source": "opensips",
"talkMs": null,
"callUid": "cd37b5bfc20e65e02019970b922add6fab0e8980d6620fb4edadbde91428dc47",
"carrier": "UNKNOWN",
"eventId": "60c7fa2f2798a67e603bb6d4a39daa3bdc402ca3d3a924611e1067692372dba3",
"sequence": 1788230689239000,
"vendorId": "cra_20260831",
"attemptId": "1",
"startedAt": 1788230689239,
"customerId": "cra_20260831",
"receivedAt": 1788230689889,
"landingCaller": "99100001",
"schemaVersion": 2,
"evidenceVersion": 2,
"vendorGatewayId": "cra_20260831",
"customerGatewayId": "cra_20260831"
},
"talkMs": 0,
"endedAt": 1788230689239,
"unknown": false,
"finalCode": 486,
"acceptedAt": null,
"durationAt": 1788230689239,
"first180At": null,
"first183At": null,
"durationFinal": true,
"talkStartedAt": null,
"durationComplete": true,
"durationAuthority": 1,
"terminationReason": "verified-dialog-final"
}
},
{
"id": "662cc9075f141345c45a274d2412d4ebffdf043dd75fa1b6e1a6ac9d85ce9460",
"callKey": "6c05dd76e643c25294847a1163d623262108b4176e37e33b51fc3685355f19f9",
"startedAt": "2026-09-01T02:44:48.787Z",
"caller": "99100001",
"callee": "99102",
"vendorGatewayId": "cra_20260831",
"counts": {
"talkMs": 0,
"totalCalls": 1,
"activeCalls": 0,
"failedCalls": 0,
"pendingCalls": 0,
"unknownCalls": 0,
"answeredCalls": 0,
"connectedCalls": 1,
"durationUnknownCalls": 0,
"provisionalAnsweredCalls": 0
},
"payload": {
"event": {
"at": 1788230688787,
"city": "UNKNOWN",
"code": 0,
"cseq": "",
"kind": "ATTEMPT",
"bootId": "66823a5b-4361-4c39-8bf8-f8db9736347f",
"branch": "",
"callId": "cra-99102-5b8fad37fb9141d6ba5e5453e8372d4a@loopback",
"callee": "99102",
"caller": "99100001",
"method": "INVITE",
"nodeId": "YanZi",
"source": "opensips",
"talkMs": null,
"callUid": "7cda6788fb05dd8dcf36a3c2ffbb8fe124c9746a2c32bca294954ef72c91c748",
"carrier": "UNKNOWN",
"eventId": "17d7dc0a0bb67acb249cb5a1f82615e513853127cd327818224c492fa0dc16a3",
"sequence": 1788230688787000,
"vendorId": "cra_20260831",
"attemptId": "1",
"startedAt": 1788230688787,
"customerId": "cra_20260831",
"receivedAt": 1788230689112,
"landingCaller": "99100001",
"schemaVersion": 2,
"evidenceVersion": 2,
"vendorGatewayId": "cra_20260831",
"customerGatewayId": "cra_20260831"
},
"talkMs": 0,
"endedAt": 1788230688938,
"unknown": false,
"finalCode": 487,
"acceptedAt": null,
"durationAt": 1788230688938,
"first180At": null,
"first183At": 1788230688787,
"durationFinal": true,
"talkStartedAt": null,
"durationComplete": true,
"durationAuthority": 1,
"terminationReason": "verified-dialog-final"
}
},
{
"id": "f5a3e11aa1b23e91559582bf2ea0dbc32032c0b5bb55a04d28f1ab02bbb5a64b",
"callKey": "fe25de2674a793555634a0b1732790425667f16cc81f89a3e28aaa46e35c3acc",
"startedAt": "2026-09-01T02:44:48.335Z",
"caller": "99100001",
"callee": "99101",
"vendorGatewayId": "cra_20260831",
"counts": {
"talkMs": 0,
"totalCalls": 1,
"activeCalls": 0,
"failedCalls": 0,
"pendingCalls": 0,
"unknownCalls": 0,
"answeredCalls": 0,
"connectedCalls": 1,
"durationUnknownCalls": 0,
"provisionalAnsweredCalls": 0
},
"payload": {
"event": {
"at": 1788230688335,
"city": "UNKNOWN",
"code": 0,
"cseq": "",
"kind": "ATTEMPT",
"bootId": "66823a5b-4361-4c39-8bf8-f8db9736347f",
"branch": "",
"callId": "cra-99101-7c962c8b0e6f4dc6aa922e850c96cbbe@loopback",
"callee": "99101",
"caller": "99100001",
"method": "INVITE",
"nodeId": "YanZi",
"source": "opensips",
"talkMs": null,
"callUid": "69136797dbe483cbd977dcf5576464b07eda7fe03ca8d7810144b9de44b99423",
"carrier": "UNKNOWN",
"eventId": "d4b0b273a78d6aad97e695882c34a44c59fc8a9c1130b98c5865b4b00f8cadb1",
"sequence": 1788230688335000,
"vendorId": "cra_20260831",
"attemptId": "1",
"startedAt": 1788230688335,
"customerId": "cra_20260831",
"receivedAt": 1788230688370,
"landingCaller": "99100001",
"schemaVersion": 2,
"evidenceVersion": 2,
"vendorGatewayId": "cra_20260831",
"customerGatewayId": "cra_20260831"
},
"talkMs": 0,
"endedAt": 1788230688486,
"unknown": false,
"finalCode": 486,
"acceptedAt": null,
"durationAt": 1788230688486,
"first180At": 1788230688336,
"first183At": null,
"durationFinal": true,
"talkStartedAt": null,
"durationComplete": true,
"durationAuthority": 1,
"terminationReason": "verified-dialog-final"
}
}
],
"breakdown": [
{
"vendorGatewayId": "cra_20260831",
"city": "UNKNOWN",
"carrier": "UNKNOWN",
"totalCalls": 6,
"connectedCalls": 4,
"answeredCalls": 2,
"failedCalls": 2,
"pendingCalls": 0,
"unknownCalls": 0,
"activeCalls": 0,
"talkMs": 1801,
"durationUnknownCalls": 0,
"provisionalAnsweredCalls": 0,
"caller": "",
"customerId": "",
"notConnectedCalls": 2,
"connectionRate": 66.6667,
"overallAnswerRate": 33.3333,
"connectedAnswerRate": 50
}
],
"breakdownTruncated": false,
"skip": 0,
"take": 25
},
"sip": [
{
"callId": "cra-99101-7c962c8b0e6f4dc6aa922e850c96cbbe@loopback",
"direction": "UAC",
"code": 100,
"sdp": false,
"time": 1788230688.3355267
},
{
"callId": "cra-99101-7c962c8b0e6f4dc6aa922e850c96cbbe@loopback",
"direction": "UAS",
"code": 180,
"sdp": false,
"time": 1788230688.3360817
},
{
"callId": "cra-99101-7c962c8b0e6f4dc6aa922e850c96cbbe@loopback",
"direction": "UAC",
"code": 180,
"sdp": false,
"time": 1788230688.3362823
},
{
"callId": "cra-99101-7c962c8b0e6f4dc6aa922e850c96cbbe@loopback",
"direction": "UAS",
"code": 486,
"sdp": false,
"time": 1788230688.4863043
},
{
"callId": "cra-99101-7c962c8b0e6f4dc6aa922e850c96cbbe@loopback",
"direction": "UAC",
"code": 486,
"sdp": false,
"time": 1788230688.4864848
},
{
"callId": "cra-99102-5b8fad37fb9141d6ba5e5453e8372d4a@loopback",
"direction": "UAC",
"code": 100,
"sdp": false,
"time": 1788230688.7877743
},
{
"callId": "cra-99102-5b8fad37fb9141d6ba5e5453e8372d4a@loopback",
"direction": "UAS",
"code": 183,
"sdp": false,
"time": 1788230688.7879457
},
{
"callId": "cra-99102-5b8fad37fb9141d6ba5e5453e8372d4a@loopback",
"direction": "UAC",
"code": 183,
"sdp": false,
"time": 1788230688.7880127
},
{
"callId": "cra-99102-5b8fad37fb9141d6ba5e5453e8372d4a@loopback",
"direction": "UAS",
"code": 487,
"sdp": false,
"time": 1788230688.9381335
},
{
"callId": "cra-99102-5b8fad37fb9141d6ba5e5453e8372d4a@loopback",
"direction": "UAC",
"code": 487,
"sdp": false,
"time": 1788230688.9384828
},
{
"callId": "cra-99103-53e5a373297a43919927eebd528cd362@loopback",
"direction": "UAC",
"code": 100,
"sdp": false,
"time": 1788230689.239587
},
{
"callId": "cra-99103-53e5a373297a43919927eebd528cd362@loopback",
"direction": "UAS",
"code": 486,
"sdp": false,
"time": 1788230689.2397466
},
{
"callId": "cra-99103-53e5a373297a43919927eebd528cd362@loopback",
"direction": "UAC",
"code": 486,
"sdp": false,
"time": 1788230689.2398334
},
{
"callId": "cra-99104-95c6b3c023b94f4f9fdd7781c37587f8@loopback",
"direction": "UAC",
"code": 100,
"sdp": false,
"time": 1788230689.541705
},
{
"callId": "cra-99104-95c6b3c023b94f4f9fdd7781c37587f8@loopback",
"direction": "UAS",
"code": 200,
"sdp": true,
"time": 1788230689.5418484
},
{
"callId": "cra-99104-95c6b3c023b94f4f9fdd7781c37587f8@loopback",
"direction": "UAC",
"code": 200,
"sdp": true,
"time": 1788230689.54246
},
{
"callId": "cra-99105-f2cc27a5f1c44e3097a1ba39497600a1@loopback",
"direction": "UAC",
"code": 100,
"sdp": false,
"time": 1788230691.3461745
},
{
"callId": "cra-99105-f2cc27a5f1c44e3097a1ba39497600a1@loopback",
"direction": "UAS",
"code": 180,
"sdp": false,
"time": 1788230691.3463302
},
{
"callId": "cra-99105-f2cc27a5f1c44e3097a1ba39497600a1@loopback",
"direction": "UAC",
"code": 180,
"sdp": false,
"time": 1788230691.3463998
},
{
"callId": "cra-99105-f2cc27a5f1c44e3097a1ba39497600a1@loopback",
"direction": "UAS",
"code": 200,
"sdp": true,
"time": 1788230691.4965453
},
{
"callId": "cra-99105-f2cc27a5f1c44e3097a1ba39497600a1@loopback",
"direction": "UAC",
"code": 200,
"sdp": true,
"time": 1788230691.4974086
},
{
"callId": "cra-99106-d9a7fdb7122b429b8eb2925d6ee8df7d@loopback",
"direction": "UAC",
"code": 100,
"sdp": false,
"time": 1788230692.099361
},
{
"callId": "cra-99106-d9a7fdb7122b429b8eb2925d6ee8df7d@loopback",
"direction": "UAS",
"code": 100,
"sdp": false,
"time": 1788230692.0994966
},
{
"callId": "cra-99106-d9a7fdb7122b429b8eb2925d6ee8df7d@loopback",
"direction": "UAS",
"code": 486,
"sdp": false,
"time": 1788230693.5997336
},
{
"callId": "cra-99106-d9a7fdb7122b429b8eb2925d6ee8df7d@loopback",
"direction": "UAC",
"code": 486,
"sdp": false,
"time": 1788230693.5999396
}
],
"bucketAudit": {
"totalCalls": 54,
"connectedCalls": 36,
"answeredCalls": 16,
"failedCalls": 18,
"pendingCalls": 0,
"unknownCalls": 0,
"activeCalls": 0,
"talkMs": 14405,
"durationUnknownCalls": 2,
"provisionalAnsweredCalls": 0,
"notConnectedCalls": 18,
"connectionRate": null,
"overallAnswerRate": null,
"connectedAnswerRate": null
},
"replayed": 5,
"tests": [
"real SIP six scenarios",
"two SDP offer/answer negotiations through RTPEngine",
"ACK-based positive duration including subsecond call",
"real API counts, completeness and three rates",
"real DB states and minute buckets",
"database replay idempotency",
"customer scope and 403 isolation",
"scoped customer/vendor filter options",
"unauthenticated 401",
"invalid query 400"
]
}