This patch implements the /help idea, but I'm still not sure that it's the
right solution.
Index: fs_cli.c
===================================================================
--- fs_cli.c (revision 11040)
+++ fs_cli.c (working copy)
@@ -286,11 +286,13 @@
goto end;
}
-
+ if (!strncasecmp(cmd, "help", 4))
+ goto process_api_command;
printf("Unknown command [%s]\n", cmd);
} else {
char cmd_str[1024] = "";
+ process_api_command:
snprintf(cmd_str, sizeof(cmd_str), "api %s\n\n", cmd);
esl_send_recv(handle, cmd_str);
if (handle->last_sr_event && handle->last_sr_event->body) {
_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org