[Freeswitch-users] communication probelm with Freeswitch through ESL
deepikay at iiitd.ac.in
Sat Apr 15 09:17:18 MSD 2017
I checked by running fs_cli, there was no connection with the Freeswitch.
The Freeswitch was somehow not running on the port 8021, so I changed it
and it worked.
On Wed, Apr 12, 2017 at 5:34 PM, Kamal Mustafa <kamal.mustafa at gmail.com>
> On 12 April 2017 at 17:51, Deepika Yadav <deepikay at iiitd.ac.in> wrote:
> > Hi,
> > 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 -pClueCon
> 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:-
> Trying ::1...
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> Content-Type: auth/request
> auth ClueCon
> And press Enter twice. After than type:-
> events plain all
> And press Enter twice again. You should be getting events data from
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> Official FreeSWITCH Sites
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users