You're setting eslEvent as the return value of SendRecv but not inspecting it and then overwriting it with RecvEvent.Have you tried checking what the SendRecv return value looks like serialised? It should be there._________________________________________________________________________On Thu, 25 Apr 2019 at 20:17, Ramesh Kandasamy <ramelcom@gmail.com> wrote:Thanks Anthony for the response!I am using ESL library that comes with Freeswitch source code.I am trying to use C# ESL APIs as below to send the 'api status' command to the Freeswitch VM from a remote server.//Initializes a new instance of ESLconnection, and connects to the host $host on the port $port, and supplies $password to freeswitchESLconnection eslConnection = new ESLconnection(hostName, "8021", password);if (eslConnection.Connected() != ESL_SUCCESS){Console.WriteLine("Error connecting to FreeSwitch");return null;}Console.WriteLine("successful connection");ESLevent eslEvent = eslConnection.SendRecv("api status");if (eslEvent == null){Console.WriteLine("Error sending command");return;}if (eslConnection.Connected() == ESL_SUCCESS){eslEvent = eslConnection.RecvEvent();Console.WriteLine(eslEvent.Serialize(String.Empty));}With this am able to connect successfully. But unable to see any response.I see the same symptoms 'conference xml_list' etc.But If I subscribe for HEARTBEAT event as below instead of 'api status' shown above, I see the events coming at regular intervals.ESLevent eslEvent = eslConnection.SendRecv("event xml HEARTBEAT");Am I using something wrong above?ThanksRamesh_________________________________________________________________________On Thu, Apr 25, 2019 at 10:31 AM Anthony Minessale <anthony.minessale@gmail.com> wrote:Maybe you have a bad client, are you using one of the official ones?See below using raw protocol commands over basic telnet connection to demonstrate.------# telnet localhost 8021Trying ::1...Trying 127.0.0.1...Connected to localhost.Escape character is '^]'.Content-Type: auth/requestauth ClueConContent-Type: command/replyReply-Text: +OK acceptedapi statusContent-Type: api/responseContent-Length: 371UP 0 years, 1 day, 3 hours, 39 minutes, 51 seconds, 345 milliseconds, 930 microsecondsFreeSWITCH (Version 20.19.4-dev git 837c62c 2019-04-24 12:16:15Z 64bit) is ready246 session(s) since startup14 session(s) - peak 25, last 5min 140 session(s) per Sec out of max 30, peak 2, last 5min 01000 session(s) maxmin idle cpu 0.00/86.43Current Stack Size/Max 240K/8192KexitContent-Type: command/replyReply-Text: +OK byeContent-Type: text/disconnect-noticeContent-Length: 67Disconnected, goodbye.See you at ClueCon! http://www.cluecon.com/Connection closed by foreign host.On Wed, Apr 24, 2019 at 4:34 PM Ramesh Kandasamy <ramelcom@gmail.com> wrote:_________________________________________________________________________Hi everyone,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 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.So, the question is what other ESL methods shall be used to get the status of freeswitch?ThanksRamesh
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com--_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com