[Freeswitch-users] communication probelm with Freeswitch through ESL
kamal.mustafa at gmail.com
Wed Apr 12 16:04:01 MSD 2017
On 12 April 2017 at 17:51, Deepika Yadav <deepikay at iiitd.ac.in> wrote:
> I am not bale to communicate with Freeswith over ESL:
> When I run the following program:
> import ESL
> con = ESL.ESLconnection('localhost', '8021', 'ClueCon')
> if con.connected:
> con.events('plain', 'ALL')
> while 1:
> e = con.recvEvent()
> if e:
> print e.serialize()
> I get output as :
> "Event-Name: SERVER_DISCONNECTED"
Can you run ?
fs_cli also using the same esl socket so it a good way to verify the
socket connection is fine. Other than that, try also with telnet:-
telnet localhost 8021
After getting prompt like:-
Connected to localhost.
Escape character is '^]'.
And press Enter twice. After than type:-
events plain all
And press Enter twice again. You should be getting events data from freeswitch.
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users