in reply to Re^3: Perl an array of sockets
in thread Perl an array of sockets
It runs , When I open my webpage, websocket it's open... when I make a call, events are catched by eventhandler and call the subprocess "buscar_exten" but... no message is send to the clients "send($c,"mandando mensaje 1000\r\n",0)" connected to the websocket service, what I mean is the perl code at the top is similar but at least I can get the ip and port calling "peerhost()" and "peerport()" and when I open the socket in the "buscar_exten" at least close the socket, but the second code does nothing.
I need when an event is received by eventhandler subprocess, send a message to the connected clients thru the websocket. The first perl code I use IO:Socket but harder to create websocket, second it's easier but still no luck.
I need to create an array/hash of sockets and then when an event occurs in asterisk being able to send it thru sockets.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Perl an array of sockets
by roboticus (Chancellor) on Nov 21, 2017 at 16:21 UTC | |
by suhijo (Novice) on Nov 21, 2017 at 17:32 UTC | |
by suhijo (Novice) on Nov 21, 2017 at 19:22 UTC | |
by suhijo (Novice) on Nov 21, 2017 at 20:58 UTC |