Hi,
We’re trying to get SangomaCRM working (with restapi), and we’ve been unable to retrieve any data related to calls. We are able to retrieve general static data, like extension info. We’re using sangomacrm module version 13.0.4.32.
Example 1:
Trying to retrieve general call data (as per the wiki FPG/REST+API) (I couldn’t post the link)
curl -H "Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" --request GET https://pbx/admin/api/sangomacrm/rest/calls/list/both --insecure
This is the entirety of the output:
{"status":true,"data":[]}
Example 2: General static data
curl -H "Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" --request GET https://pbx/admin/api/sangomacrm/rest/users/extension/412 --insecure
Output:
{"status":true,"data":{"id":"3","auth":"1","authid":null,"username":"username","description":null,"password":"Hidden","default_extension":"412","primary_group":null,"permissions":null,"fname":"Joe","lname":"User","displayname":"Joe User","title":"","company":"","department":"","language":null,"timezone":null,"dateformat":null,"timeformat":null,"datetimeformat":null,"email":"[email protected]","cell":"","work":"","home":"","fax":""}}
Any ideas? My hunch is that the data just isn’t there, although we do have a fully populated asteriskcdrdb database; not sure if these are tied together.