<div dir="ltr"><div dir="ltr"><div>Maybe you have a bad client, are you using one of the official ones?</div><div>See below using raw protocol commands over basic telnet connection to demonstrate.</div><div><br></div><div>------</div><div><br></div><div># telnet localhost 8021</div><div>Trying ::1...</div><div>Trying 127.0.0.1...</div><div>Connected to localhost.</div><div>Escape character is '^]'.</div><div>Content-Type: auth/request</div><div><br></div><div>auth ClueCon</div><div><br></div><div>Content-Type: command/reply</div><div>Reply-Text: +OK accepted</div><div><br></div><div>api status</div><div><br></div><div>Content-Type: api/response</div><div>Content-Length: 371</div><div><br></div><div>UP 0 years, 1 day, 3 hours, 39 minutes, 51 seconds, 345 milliseconds, 930 microseconds</div><div>FreeSWITCH (Version 20.19.4-dev git 837c62c 2019-04-24 12:16:15Z 64bit) is ready</div><div>246 session(s) since startup</div><div>14 session(s) - peak 25, last 5min 14 </div><div>0 session(s) per Sec out of max 30, peak 2, last 5min 0 </div><div>1000 session(s) max</div><div>min idle cpu 0.00/86.43</div><div>Current Stack Size/Max 240K/8192K</div><div><br></div><div>exit</div><div><br></div><div>Content-Type: command/reply</div><div>Reply-Text: +OK bye</div><div><br></div><div>Content-Type: text/disconnect-notice</div><div>Content-Length: 67</div><div><br></div><div>Disconnected, goodbye.</div><div>See you at ClueCon! <a href="http://www.cluecon.com/">http://www.cluecon.com/</a></div><div>Connection closed by foreign host.</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 24, 2019 at 4:34 PM Ramesh Kandasamy <<a href="mailto:ramelcom@gmail.com">ramelcom@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi everyone, <div><br></div><div>I am looking for a way to get the status of a Freeswitch from a remote server through ESL API command. I tried using SendRecv and Api methods of ESLconnection class to send the 'status' command. But I don't receive the response. However, after further reading through the confluence, I realized that it is probably because, 'status' command output doesn't include <span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px">with a header named "content-type" that has a value of "api/response" or "command/reply" and both SendRecv and Api methods look for this.</span></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px"><br></span></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px">So, the question is what other ESL methods shall be used to get the status of freeswitch?</span></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px"><br></span></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px">Thanks</span></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px">Ramesh</span></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px"><br></span></div><div><br></div><div><br></div><div><br></div></div></div></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Anthony Minessale II</div><div dir="ltr">Founder, FreeSWITCH.</div><div dir="ltr"><div><a href="http://freeswitch.com" target="_blank">http://freeswitch.com</a></div><div><br></div><div><br></div><div><span style="font-size:12.8px"><a href="https://youtu.be/l_hOxzCt6X4" target="_blank">https://youtu.be/l_hOxzCt6X4</a></span><br></div><div><a href="https://www.youtube.com/watch?v=oAxXgyx5jUw" target="_blank">https://www.youtube.com/watch?v=oAxXgyx5jUw</a><br></div><div><a href="https://www.youtube.com/watch?v=9XXgW34t40s" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">https://www.youtube.com/watch?v=9XXgW34t40s</a></div><div><a href="https://www.youtube.com/watch?v=NLaDpGQuZDA" target="_blank">https://www.youtube.com/watch?v=NLaDpGQuZDA</a><br></div></div></div></div></div></div></div></div></div>