<div dir="ltr">Thanks,<div> <div>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.</div><div><br></div><div>Regards,</div><div>Deepika</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 12, 2017 at 5:34 PM, Kamal Mustafa <span dir="ltr"><<a href="mailto:kamal.mustafa@gmail.com" target="_blank">kamal.mustafa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 12 April 2017 at 17:51, Deepika Yadav <<a href="mailto:deepikay@iiitd.ac.in">deepikay@iiitd.ac.in</a>> wrote:<br>
> Hi,<br>
><br>
> I am not bale to communicate with Freeswith over ESL:<br>
><br>
> When I run the following program:<br>
><br>
> import ESL<br>
><br>
> con = ESL.ESLconnection('localhost', '8021', 'ClueCon')<br>
><br>
> if con.connected:<br>
> con.events('plain', 'ALL')<br>
> while 1:<br>
> e = con.recvEvent()<br>
> if e:<br>
> print e.serialize()<br>
><br>
><br>
> I get output as :<br>
><br>
><br>
> "Event-Name: SERVER_DISCONNECTED"<br>
<br>
</span>Can you run ?<br>
<br>
fs_cli -pClueCon<br>
<br>
fs_cli also using the same esl socket so it a good way to verify the<br>
socket connection is fine. Other than that, try also with telnet:-<br>
<br>
telnet localhost 8021<br>
<br>
After getting prompt like:-<br>
<br>
Trying ::1...<br>
Trying 127.0.0.1...<br>
Connected to localhost.<br>
Escape character is '^]'.<br>
Content-Type: auth/request<br>
<br>
Enter:-<br>
<br>
auth ClueCon<br>
<br>
And press Enter twice. After than type:-<br>
<br>
events plain all<br>
<br>
And press Enter twice again. You should be getting events data from freeswitch.<br>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Regards<br>Deepika<br><a href="https://www.iiitd.edu.in/~deepikay/" target="_blank">https://www.iiitd.edu.in/~deepikay/</a></div>
</div>