Call details in CC API

Status
Not open for further replies.

Trestill

Platinum Distributor
Advanced Certified
Joined
Jan 22, 2015
Messages
61
Reaction score
6
Hello,

another trouble for me is getting call details.
The data I need is:
* direction (inbound/outbound)
* state of the call (ringing, talking, hold, etc.)
* caller number
* callee number
* queue number (if this is inbound call from queue)

Code:
ActiveConnection[] conn = PhoneSystem.Root.GetDNByNumber(id).GetActiveConnections();
string result = string.Concat("CallID: ", conn[0].CallID, " ; OriginatedBy: ", conn[0].OriginatedBy, " ; status: ", conn[0].Status, " ; OnBehalfOf: ", conn[0].OnBehalfOf, " , DialedNumber: ", conn[0].DialedNumber);
id is extension number which interest me. And what I get is:
["CallID: 272 ; OriginatedBy: ; status: Ringing ; OnBehalfOf: , DialedNumber: "]
Any suggestions what I do wrong here? And how to get info from AttachedData (is there anything usefull) ?

Regards,
Trestill
 
You can't get call "history" from the Call Control API. You can, however, monitor events in real-time. If you want historical information, I suggest you look at the CDF text files 3CX can generate after the call is complete. This will have most of the information you are looking for.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
112,323
Messages
591,896
Members
165,474
Latest member
costionofrei