RestAPI Apps not working - File Not Found

Hi forum! Im pretty new here but i’m told this is the right place to ask this question.

First off, our FreePBX is SO MUCH BETTER than the Mitell 3300 it replaced - i can’t believe this software is free. Its amazing! What makes it even more amazing, are the restful apps but unfortunately, i can’t get them to work on any of the phones in our office. We have 9 Aastra phones (mix of 39i and 57i) and one Yaelink T28P.

On all the aastra phones, i assigned buttons to link to the rest applications using Endpoint Manager (licensed) but when i try to use them, i get a file not found error.

Has this happened to anyone else?

Did you follow the setup guide for using the Rest APPS module?

Hi cktech! Flattery will get you everywhere.

Since the REST Applications module is very new, it isn’t installed on systems by default. Have you checked in module admin, to make sure that it’s installed and enabled? Do you also have a trial license for REST Applications setup on your system? should help to get you started in the right direction.

Hi All,

Yes, restapi and restapplications are installed and enabled. I did follow the setup guide, very straightforward. All seems good, but i still get the “File not found” error when i try to use any of the buttons. I have the token enabled for All Extensions and All Apps as well.


Did you enable a token for each user? Each user needs their own token for the REST API.

Also have you verified your port in sysadmin for rest apps is working and open to the phones.

I only enabled tokens for the users who will be using htem.

Yes, the port is correct and open to all internal devices.

What happens if you go to the URL link that is setup on the button on the phone in a web browser?

What Distro are you using? Almost sounds like you may have some htaccess blocking it otherwise like PBXiaF???

I am using the newest freepbx distro.

What is the url of the buttons? I just setup the button links using endpoint manager. I don’t see a URL listed.

Log unto the phone GUI and see what the URL that is setup

OK, DND goes to:

Follow Me goes to:

Apps: 112

Park: 112

So Apps and Park seems weird - it just goes to my extension, but the others seem ok but come up as “file not found”

When i browse to any of the seemingly valid URLs, i get this in my browser:

Not Found

The requested URL /applications.php/donotdisturb/main was not found on this server.

Apache/2.2.15 (CentOS) Server at Port 88

The port is def open as i’m on the local lan.

What version of the sysadmin RPM (rpm -q sysadmin) and FreePBX module do you have installed? What are the contents of /etc/httpd/conf.d/schmoozecom.conf ?

Sysadmin: 6.1-174

Listen 82
<VirtualHost *:82>
DocumentRoot /var/www/html/aastra/

Listen 88
<VirtualHost *:88>
DocumentRoot /var/www/html/restapps/

Listen 96
<VirtualHost *:96>
DocumentRoot /var/www/html/restapi/

Listen 81
<VirtualHost *:81>
DocumentRoot /var/www/html/recordings/

Listen 80
<VirtualHost *:80>
DocumentRoot /var/www/html/

Listen 84
<VirtualHost *:84>
DocumentRoot /tftpboot/

any more tips guys?

Seems like a Rest API issue to me based on the limited data you have given us. Go into the Rest API module and click on general settings then submit the page and test. Almost seems like the Rest API itself is not completely setup.

I did this. Is there anything else i should do besides submitting again?

I am out of ideas. Works for hundreds of other users. You can alway buy support and open a support ticket. Otherwise I am out of ideas without getting into the box.

Hmmm, that’s too bad. Would you look at the box and let me know if it looks ok, or would i have to purchase support right off the bat. I don’t think i ever used my support credits that came with my initial install.

You would need to buy support. Purchases do not include support and this is a free module at this time not a paid module.