Sure, here’s Admin | System Admin | Ports
However, the apache pointer gave good results, here’s the file, there’s nothing listening on port 88 or 96 as in the gut, instead it shows restapi on 85 and restapps on 84:
cat schmoozecom.conf
# Automatically Generated File - 1438002210
# {"acp":{"port":"80","dir":"\/var\/www\/html"},"ucp":{"port":"81","dir":"\/var\/www\/html\/ucp\/"},"restapi":{"port":"85","dir":"\/var\/www\/html\/restapi\/"},"restapps":{"port":"84","dir":"\/var\/www\/html\/restapps\/"},"hpro":{"port":"83","dir":"\/tftpboot\/"},"xml":{"port":"82","dir":"\/var\/www\/html\/aastra\/"}}
# acp
Listen 80
<VirtualHost *:80>
DocumentRoot /var/www/html
</VirtualHost>
# ucp
Listen 81
<VirtualHost *:81>
DocumentRoot /var/www/html/ucp/
</VirtualHost>
# restapi
Listen 85
<VirtualHost *:85>
DocumentRoot /var/www/html/restapi/
</VirtualHost>
# restapps
Listen 84
<VirtualHost *:84>
DocumentRoot /var/www/html/restapps/
</VirtualHost>
# hpro
Listen 83
<VirtualHost *:83>
DocumentRoot /tftpboot/
</VirtualHost>
Calling the original URI in a browser, but with port 84 gives a solid result:
{"application_name":"restapps","application_display":"Applications","page_name":"main","type":"display","exitPath":null,"layout":[{"type":"link","name":"findmefollow-main","display":"Follow Me","value":"findmefollow\/main"},{"type":"link","name":"voicemail-main","display":"Voicemail","value":"voicemail\/main"},{"type":"link","name":"voicemail-transfer","display":"Transfer VM","value":"voicemail\/transfer"},{"type":"link","name":"endpoint-main","display":"Endpoint Manager","value":"endpoint\/main"},{"type":"link","name":"callforward-main","display":"Call Forward","value":"callforward\/main"},{"type":"link","name":"conferences-main","display":"Conference","value":"conferences\/main"},{"type":"link","name":"parking-main","display":"Parking","value":"parking\/main"},{"type":"link","name":"queues-main","display":"Queues","value":"queues\/main"},{"type":"link","name":"queues-agent","display":"Queue Agent","value":"queues\/agent"},{"type":"link","name":"daynight-main","display":"Call Flow","value":"daynight\/main"},{"type":"link","name":"timeconditions-main","display":"Time Conditions","value":"timeconditions\/main"},{"type":"link","name":"donotdisturb-main","display":"DND","value":"donotdisturb\/main"},{"type":"link","name":"contactmanager-main","display":"Contacts","value":"contactmanager\/main"},{"type":"link","name":"presencestate-main","display":"Presence","value":"presencestate\/main"}],"action":[],"error":[]}
So, over to the phone web admin to directly edit the settings, and I get a better response from the softbutton, in that the ‘apps’ one (http://10.10.0.111:84/applications.php/restapps/main?user=403) shows a menu of apps, but selecting those, or pressing the other buttons gives the “Cannot display” message again.
http://10.10.0.111:84/applications.php/contactmanager/main?user=403 for example, returns this in a browser:
{"application_name":"contactmanager","application_display":"Contacts","page_name":"main","type":"display","exitPath":null,"layout":[],"action":[],"error":[{"reason":0}]}
Over to Admin | User Management.
There’s a user there with a login of 403, RestAPI is enabled for it, a token and token key are shown, Modules is set to All
So, back to the wiki, which does indeed say “Verify User has RESTful API Setup” but does little to explain it. Tokens are mentioned, but what’s the difference between a token and token key, for example?
So. Getting closer. No idea why the apache config is wrong but I’ll look into it, could it possibly be a bug?
Any further help on getting these XLM apps to work would be greatly appreciated.
Thanks.