I have a website running on php.
I access the website on my smartphone. ( In this case, i am using iphone4 chrome mobile browser)
When i click login, the page submits to a another php page and triggers a call to my phone.
The phone call comes in, i answer it and then press the '#' to end the call and brought back to the browser. I get an error 504 error. I am using 3g on my phone. I do this test again using a wifi connection and get the same error.
My php pages are on an apache http server on a linux server running centos 6.2
I have done the following on the httpd.conf :
KeepAlive On
KeepALiveTimeout 600
HTTP server:
The server is on a separate virtual machine on the server. Upon clicking 'LOGIN' on the index page, it is redirected to another php page which triggers a call by sending a message through a socket to a Asterisk(PBX) siting on another virtual machine on the server.
The php page waits for the asterisk call to end before redirecting the page to an intranet sitting on a separate server.
Triggering of call:
The phone call is triggered by an ASterisk(PBX) on an virtual machine on the server.