From: Anthony Minessale Date: Mon, 24 Aug 2009 14:04:59 +0000 (+0000) Subject: update example X-Git-Tag: v1.0.6~2007 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b87e6cdaf599740d738c0c44acadb3412fbf53bc;p=thirdparty%2Ffreeswitch.git update example git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14617 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/libs/esl/testclient.c b/libs/esl/testclient.c index c9509049eb..9c501f0605 100644 --- a/libs/esl/testclient.c +++ b/libs/esl/testclient.c @@ -11,6 +11,13 @@ int main(void) 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;