Modified: freeswitch/trunk/libs/esl/testclient.c (14616 => 14617)
--- freeswitch/trunk/libs/esl/testclient.c 2009-08-24 07:03:42 UTC (rev 14616)
+++ freeswitch/trunk/libs/esl/testclient.c 2009-08-24 14:04:59 UTC (rev 14617)
@@ -11,6 +11,13 @@
esl_send_recv(&handle, "api status\n\n");
+ if (handle.last_sr_event && handle.last_sr_event->body) {
+ printf("%s\n", handle.last_sr_event->body);
+ } else {
+ // this is unlikely to happen with api or bgapi (which is hardcoded above) but prefix but may be true for other commands
+ printf("%s\n", handle.last_sr_reply);
+ }
+
esl_disconnect(&handle);
return 0;