<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">&lt;<a href="mailto:kamal.mustafa@gmail.com" target="_blank">kamal.mustafa@gmail.com</a>&gt;</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 &lt;<a href="mailto:deepikay@iiitd.ac.in">deepikay@iiitd.ac.in</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am not bale to communicate with Freeswith over ESL:<br>
&gt;<br>
&gt; When I run the following program:<br>
&gt;<br>
&gt; import ESL<br>
&gt;<br>
&gt; con = ESL.ESLconnection(&#39;localhost&#39;, &#39;8021&#39;, &#39;ClueCon&#39;)<br>
&gt;<br>
&gt; if con.connected:<br>
&gt;     con.events(&#39;plain&#39;, &#39;ALL&#39;)<br>
&gt;     while 1:<br>
&gt;         e = con.recvEvent()<br>
&gt;         if e:<br>
&gt;             print e.serialize()<br>
&gt;<br>
&gt;<br>
&gt; I get output as :<br>
&gt;<br>
&gt;<br>
&gt; &quot;Event-Name: SERVER_DISCONNECTED&quot;<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 &#39;^]&#39;.<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>