mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
allow alias expansion from fs_cli
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16416 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -703,8 +703,11 @@ static int process_command(esl_handle_t *handle, const char *cmd)
|
||||
char cmd_str[1024] = "";
|
||||
const char *err = NULL;
|
||||
|
||||
snprintf(cmd_str, sizeof(cmd_str), "api %s\n\n", cmd);
|
||||
esl_send_recv(handle, cmd_str);
|
||||
snprintf(cmd_str, sizeof(cmd_str), "api %s\nconsole_execute: true\n\n", cmd);
|
||||
if (esl_send_recv(handle, cmd_str)) {
|
||||
printf("Socket Interrupted, bye!\n");
|
||||
return 1;
|
||||
}
|
||||
if (handle->last_sr_event) {
|
||||
if (handle->last_sr_event->body) {
|
||||
printf("%s\n", handle->last_sr_event->body);
|
||||
|
Reference in New Issue
Block a user