FreePBX | Register | Issues | Wiki | Portal | Support

FreePBXact docks the CRM API interface, calls the call record, and displays no data


(Bruce Zhou) #1

Hello:

I configure CRM API settings and CRM API environment in FreePBXact. I try to record calls in CRM API endpoints, but my application shows no data.

[root@freepbx /]# curl -X GET  -s -H "Token: e6fa6b1e1e8502bb3d42892f2b13835f4398d2a3cb8378a5dbad5c80f8e20d0l" -H "Content-Type: application/json"  http://localhost//admin/api/sangomacrm/rest/calls/list/both | python -m json.tool
{
    "data": [],
    "status": true
}

`


(Preston McNair) #2

Have you licensed the CRM add-on?


(TheJames) #3

Assuming yes, and assuming you have the API stuff enabled to log calls.
you may wish to open a ticket at https://support.sangoma.com


(Bruce Zhou) #4

Hello:

It’s okay for me to get user information through username id,as follows:`
[root@freepbx ~]# curl -X GET \

-s
-H “Token: 9b5e5fd577e8ca124e6dee7f4957b986dc6fd7986c6ce05ced98839d7db5767b”
-H “Content-Type: application/json”
http://localhost//admin/api/sangomacrm/rest/users/extension/100 | python -m json.tool
{
“data”: {
“auth”: “1”,
“authid”: null,
“cell”: null,
“company”: null,
“dateformat”: null,
“datetimeformat”: null,
“default_extension”: “100”,
“department”: null,
“description”: “Autogenerated user on new device creation”,
“displayname”: “Bruce.Zhou”,
“email”: “”,
“fax”: null,
“fname”: null,
“home”: null,
“id”: “1”,
“language”: null,
“lname”: null,
“password”: “Hidden”,
“permissions”: null,
“primary_group”: null,
“timeformat”: null,
“timezone”: null,
“title”: null,
“username”: “100”,
“work”: null
},
“status”: true
}

but I have a problem that there’s no record of finding call records. Why is it empty inside data?
[root@freepbx /]# curl -X GET -s -H "Token: e6fa6b1e1e8502bb3d42892f2b13835f4398d2a3cb8378a5dbad5c80f8e20d0l" -H "Content-Type: application/json" http://localhost//admin/api/sangomacrm/rest/calls/list/both | python -m json.tool { "data": [], "status": true }Can you help me out? Thank you.


(James Zhu) #5

hi:
yes, he is my customer and buy CRM module from my side.