[Freeswitch-users] communication probelm with Freeswitch through ESL

Deepika Yadav deepikay at iiitd.ac.in
Sat Apr 15 09:17:18 MSD 2017


Thanks,

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.

Regards,
Deepika

On Wed, Apr 12, 2017 at 5:34 PM, Kamal Mustafa <kamal.mustafa at gmail.com>
wrote:

> 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
>
> Enter:-
>
> auth ClueCon
>
> And press Enter twice. After than type:-
>
> events plain all
>
> And press Enter twice again. You should be getting events data from
> freeswitch.
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Regards
Deepika
https://www.iiitd.edu.in/~deepikay/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170415/46aafcda/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list