FreePBX | Register | Issues | Wiki | Portal | Support

RestAPI Apps not working - File Not Found


#1

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?


(Tony Lewis) #2

Did you follow the setup guide for using the Rest APPS module? http://wiki.freepbx.org/display/FCM/RESTful+Phone+Apps


(Jason Parker) #3

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?

http://www.schmoozecom.com/restapps.php should help to get you started in the right direction.


#4

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.


(Tony Lewis) #5

cktech

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.


#6

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

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


(Tony Lewis) #7

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


(Tony Lewis) #8

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


#9

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.


(Tony Lewis) #10

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


#11

OK, DND goes to: http://10.10.210.2:88/applications.php/donotdisturb/main?user=112

Follow Me goes to: http://10.10.210.2:88/applications.php/findmefollow/main?user=112

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”


#12

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 10.10.210.2 Port 88

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


(Jason Parker) #13

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 ?


#14

Sysadmin: 6.1-174

schmoozecom.conf:
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/


#15

any more tips guys?


(Tony Lewis) #16

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.


#17

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


(Tony Lewis) #18

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.


#19

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.


(Tony Lewis) #20

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