I need a proof of concept code before proceeding to build a bigger application. This POC will need to use the PHP websocket library of your choice and will be made of two parts: 1) a PHP CLI server application, awaiting connections on port 8443 using SSL for websocket protocol (wss)
The PHP CLI server application will connect to a local asterisk server using AMI (AMI needs a simple tcp connection and I will provide username and password to perform the log in). The PHP CLI server will send all events received by AMI interface to the websocket client.
The websocket client will show the messages received by the server in the top half and offers an input box to send messages to the PHP CLI server application, using websocket protocol.
The PHP CLI server receives the messages and send them to the asterisk server using the AMI connection (just one AMI connection is needed, for both receiving and sending packets).
In case the AMI connection is interrupted, it needs to recover and establish a new one.
Multiple websocket clients can connect at the same time and receive all the same AMI messages from the PHP CLI server. All websocket clients can send messages to the PHP CLI server.
Full source code will be released, all rights for this code will be transferred to me. Installation instructions must be provided, especially required for the SSL part. Let's Encrypt Certificate and Private Key will be provided.
FTP access to the server hosting the asterisk and web server will be provided. No any other kind of access will be provided.
In the offer, please specify which PHP Websocket library you are going to use.
Payment will be released only when the application will be verified.