CallId and hist_id

pyc

Platinum Partner
Advanced Certified
Joined
Mar 18, 2025
Messages
2
Reaction score
0
I have a question, from logs,

3CXCallFlog.log
2025/04/25 14:37:13.341|0005|Trac| [_3CX.Script] _55_14.Main.270.[C:67.2]-CallFlowExample - CallID a11daa6b00010000_12 - Callflow - Start executing main flow...

3CXQueueManager.log
2025/04/25 14:37:59.853|0005|Info| [_3CX.QueueManager.QCallTrack] 271,QCallEnd
2025/04/25 14:37:59.853|0005|Info| [_3CX.QueueManager.QCallTrack] 271,Q.80: [28] (hist_id: a11daa6b00010000_12)

I can see that that hist_id alongside with HistoryIDOfTheCall, CallID are unique IDs for each call made, and that the hist_id will also be carried forward from call flow app to queue and then the extension picked up then call end. But from official 3CX XAPI, I can't seem to find any APIs that can get that unique ID, and also not possible in CFD as well. Possible to get the IDs especially the HistoryIDOfTheCall?
 
Last edited:
From a CFD app, you can get it with a simple C# script.
return MyCall?.Caller["chid"];
 
Do we have equivalent variable in Call Control API/XAPI? Thanks.
 
This is all changing with 3CX V20 SP6. You should pause before you invest too much time on this task.
 
The format has changed, but the field is the same, it's the history call id, which can be accessed with different names in different APIs. From a CFD app or using the C# Call Control API, you can get it by retrieving the "chid" property attached to the call. From the REST API there is a callid property for every connection, however I'm not sure if it refers to the same value of it's the numeric ID...
 
  • Like
Reactions: Evolute IT

Members Online Now

No members online now.

Forum statistics

Threads
111,831
Messages
589,277
Members
164,660
Latest member
RJenkinsROCK