Web Support via asterisk

Hello everyone
I use asterisk for manage all incoming and outgoing call in my company so I want to support all customers on the web though join all web site viewers to the Support Queue in asterisk.

My web site and asterisk is hosted in same server.

I use the Socket to connect to the server from PHP.

How to Dial Queue form PHP socket and the web viewers can to talk to our support.
But when I use originate Action socket can be call 2 extension or number and bridge between theme.

fputs($socket, “Action: Originate\r\n” );
fputs($socket, “Channel: Local/8000@from-internal\r\n” );
fputs($socket, “Exten:100\r\n” );
fputs($socket, “Context: from-internal\r\n” );
fputs($socket, “Priority: 1\r\n” );
fputs($socket, “Async: yes\r\n\r\n” );
$wrets=fgets($socket,128);

Please advise me how to make a call between web site viewer and my asterisk support
Thank you

You should consider using webrtc. Also don’t host your website and asterisk on the same machine. If there is a hardware failure or some sort of an issue with your box, you won’t have a website and a pbx.