mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
add esl and fs_cli
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10890 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
19
libs/esl/testclient.c
Normal file
19
libs/esl/testclient.c
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <esl.h>
|
||||
|
||||
|
||||
int main(void)
|
||||
{
|
||||
esl_handle_t handle = {0};
|
||||
|
||||
handle.debug = 1;
|
||||
|
||||
esl_connect(&handle, "localhost", 8021, "ClueCon");
|
||||
|
||||
esl_send_recv(&handle, "api status\n\n");
|
||||
|
||||
esl_disconnect(&handle);
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user