- Joined
- Feb 26, 2025
- Messages
- 21
- Reaction score
- 14
Hey all,
I've been researching 3CX XAPI, and I got the Call History exported from our system using endpoint at /xapi/v1/CallHistoryView
I've noticed some codes there that would most likely be helpful, but I haven't found any documentation about it.
I've tried some logical "decoding", combined with comparisons in the web UI, and came to these rough conclusions...
For fields: SrcDnType & DstDnType
0 = phones with internal numeration
1 = external phone numbers
4 = calls to queues
5 = calls to VMail (voice mail)
6 = IVR (PlayFile) ???
7 = Fax
8 = Parking
12/13 = looks like calls to numbers that are blocked, unreachable or otherwise don't work (eg mistyped and such)
14 = special functionality?
The above look quite logical but if someone can confirm or correct anything please do!
For the field "SegmentActionId" it is way harder to simply conclude by looking at logs, but these are my current best guesses:
6 = Terminated calls, I assume after successful call
10 = call made to queue that was successfuly forwarded to agent that answered it, in web ui seems to be described as "Queue xxx replaced by John Doe"
101, 102, 103, 105 - unanswered call that was redirected somewhere else, usually to voicemail or queue, but don't see what would be distinct between these codes
5 = ???? seems like... just normal calls maybe?
2,7,8,12 = can't explain but these happen rarely so I can ignore them most probably
9 = weird status like John (1234) replaced by John (1234) which doesn't make sense but also rare so probably can be ignored
400-426 - unanswered calls without much logic connecting them, many look like made to weird numbers that probably don't exist, so I haven't yet put much effort into deducting what they mean
Now obviously, a question... Does anyone have a codebook for these, better explanations, something to paint a clearer picture?
Most of the questions at the moment that would require reports are obviously calls to queues, how these get handled, statistics for different agents, times of day, and so on. If the above codes are correct, I can filter something like DstDnType=4 (queue), and then use SegmentActionId to see if call was properly answered (code 10?) or redirected to voicemail (code 101-105?) meaning agent didn't pick up, etc, the correlations with agents and times of day/night, and so on. But the codes are currently just assumptions so I don't feel good about taking it for a fact.
Any pointers would be helpful, maybe there's a way to fetch that through some other API endpoint, maybe some deeply hidden manual, etc...
Thanks in advance!
I've been researching 3CX XAPI, and I got the Call History exported from our system using endpoint at /xapi/v1/CallHistoryView
I've noticed some codes there that would most likely be helpful, but I haven't found any documentation about it.
I've tried some logical "decoding", combined with comparisons in the web UI, and came to these rough conclusions...
For fields: SrcDnType & DstDnType
0 = phones with internal numeration
1 = external phone numbers
4 = calls to queues
5 = calls to VMail (voice mail)
6 = IVR (PlayFile) ???
7 = Fax
8 = Parking
12/13 = looks like calls to numbers that are blocked, unreachable or otherwise don't work (eg mistyped and such)
14 = special functionality?
The above look quite logical but if someone can confirm or correct anything please do!
For the field "SegmentActionId" it is way harder to simply conclude by looking at logs, but these are my current best guesses:
6 = Terminated calls, I assume after successful call
10 = call made to queue that was successfuly forwarded to agent that answered it, in web ui seems to be described as "Queue xxx replaced by John Doe"
101, 102, 103, 105 - unanswered call that was redirected somewhere else, usually to voicemail or queue, but don't see what would be distinct between these codes
5 = ???? seems like... just normal calls maybe?
2,7,8,12 = can't explain but these happen rarely so I can ignore them most probably
9 = weird status like John (1234) replaced by John (1234) which doesn't make sense but also rare so probably can be ignored
400-426 - unanswered calls without much logic connecting them, many look like made to weird numbers that probably don't exist, so I haven't yet put much effort into deducting what they mean
Now obviously, a question... Does anyone have a codebook for these, better explanations, something to paint a clearer picture?
Most of the questions at the moment that would require reports are obviously calls to queues, how these get handled, statistics for different agents, times of day, and so on. If the above codes are correct, I can filter something like DstDnType=4 (queue), and then use SegmentActionId to see if call was properly answered (code 10?) or redirected to voicemail (code 101-105?) meaning agent didn't pick up, etc, the correlations with agents and times of day/night, and so on. But the codes are currently just assumptions so I don't feel good about taking it for a fact.
Any pointers would be helpful, maybe there's a way to fetch that through some other API endpoint, maybe some deeply hidden manual, etc...
Thanks in advance!