Max Posted July 7, 2021 Report Share Posted July 7, 2021 I am trying to get the live status of a domain, using http://myip/rest/system/status, it can return the information below: "obj_cdrs":49994, "trunk_cdrs":12808, "ext_cdr":6111, "ivr_cdr":22238, "total_calls":69138, "total_attempts":9895, "total_duration":16338451, "current_calls":8, "current_legs":14 My questions are: 1. whats the relations beween total_calls and obj_cdrs,trunk_cdrs,ext_cdr,ivr_cdr? 2.How can I get the information (via APIs) of an acd or an agent below: (1)the total calls today, the answered calls today, the abandoned calls today , (2)live information :the calls in Queue, the calls answered; 3. For the questions listed in 2., can they be got via the cdr which is collected in a mysql table by ways of "Settings - CDR & Recording" -CDR URL : jsons://MYIP/vodiaCDR.php (which is the one Vodi recommended.)" ? thanks Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted July 7, 2021 Report Share Posted July 7, 2021 For the domain there is are different API calls. You can see them in the status page for the domain. They are not the same, what are you looking for? Quote Link to comment Share on other sites More sharing options...
Max Posted July 7, 2021 Author Report Share Posted July 7, 2021 Thank you! I am doing some reports for some ACSs! To do this, I need to get live calls data (ivrtime,talktime,holdtime today) and period data (weeklly, monthly) as well, how do you recommend to get them? Another question is , for each cdr record collected in a mysql table by ways of "Settings - CDR & Recording" -CDR URL : jsons://MYIP/vodiaCDR.php (which is the one Vodi recommended), does it mean a complete call? As I have analyzed the cdr records, I found that it has two records representing one complete call while it has single record representing one complete call, but I am not sure Quote Link to comment Share on other sites More sharing options...
Max Posted July 13, 2021 Author Report Share Posted July 13, 2021 Hi, any one who can help me on this? Quote Link to comment Share on other sites More sharing options...
Max Posted July 13, 2021 Author Report Share Posted July 13, 2021 As I studied this for some time ,my new question is : how to fetch the "Inbound" and "Outbound" direction of today's call via vodia API? Thanks Quote Link to comment Share on other sites More sharing options...
Support Posted July 14, 2021 Report Share Posted July 14, 2021 You can fetch the inbound or outbound calls via the XML files in the CDR(s) directory. Or you can process the "from" or the "to" section of the call logs to determine if the call was inbound or outbound. Quote Link to comment Share on other sites More sharing options...
Max Posted July 15, 2021 Author Report Share Posted July 15, 2021 Thanks for your update! I had tried to find the rules of judging the direction of a call in cdr records via "from" and "to" fields, but its seeming very unpredictable ,which I think the information is not the fact and wrong. As I need to get the live informatioin of "Inbound"/"Outboud" calls, I suppose access directory of the vodia server is a little inconvenient, so can we have other ways ? doesnot voida server have APIs for this ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.