提交 26fe1dcb authored 作者: Tristan Mahé's avatar Tristan Mahé

stream_file OK, still waiting for FSCORE-455 to get return values

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk/contrib@15040 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 725b42df
差异被折叠。
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
#define ESL_A_TO_VOID(v) ((void*)(v)) #define ESL_A_TO_VOID(v) ((void*)(v))
#define VOID_TO_ESL_A(p) ((esl_accept_t*)(p)) #define VOID_TO_ESL_A(p) ((esl_accept_t*)(p))
#define MAX(x,y) ((x) > (y) ? (x) : (y)) #define MAX(x,y) ((x) > (y) ? (x) : (y))
#define MIN(x,y) ((x) < (y) ? (x) : (y))
/* /*
* Struct Section * Struct Section
...@@ -88,49 +89,37 @@ static void esl2agi(esl_socket_t server_sock, esl_socket_t client_sock, struct s ...@@ -88,49 +89,37 @@ static void esl2agi(esl_socket_t server_sock, esl_socket_t client_sock, struct s
static void *esl2agi_thread(void *data); static void *esl2agi_thread(void *data);
/*
* - EXEC application OPTIONS
* - GET DATA filetoplay timeout maxdigits
* - GET VARIABLE variablename
* - HANGUP 'channelname'
* - RECORD FILE filename format escapedigits timeout offsetsamples BEEP s=silence
* - SAY DIGITS
* - set autohangup time
* - set music on|off class
* - set variable
* - stream file filename <escape digits> [sample offset]
* - wait for digit timeout
*/
static int handle_setup_env(int fd,esl_handle_t *eslC); static int handle_setup_env(int fd,esl_handle_t *eslC);
static void parse_args(char *buf,int *argc,char *argv[_MAX_CMD_ARGS]); static void parse_args(char *buf,int *argc,char *argv[_MAX_CMD_ARGS]);
static command_binding_t *find_binding(char *cmd[]); static command_binding_t *find_binding(char *cmd[]);
static int handle_hangup(esl_handle_t *eslC,int fd,int *argc, char *argv[_MAX_CMD_ARGS]);
static int handle_answer(esl_handle_t *eslC,int fd, int *argc, char *argv[_MAX_CMD_ARGS]);
static int find_and_exec_command(esl_handle_t *eslC,int fd,char *buf); static int find_and_exec_command(esl_handle_t *eslC,int fd,char *buf);
/* static int do_execute(esl_handle_t *eslC,char *cmd,char *args,char *uuid,esl_event_t **save_reply);
static int handle_exec(esl_handle_t *eslC,int fd,char *args);
static int handle_getdata(esl_handle_t *eslC,int fd,char *args);
static int handle_getvar(esl_handle_t *eslC,int fd,char *args);
static int handle_record(esl_handle_t *eslC,int fd,char *args); /*
* ported agi commands
*/
static int handle_say(esl_handle_t *eslC,int fd,char *args); static int handle_hangup(esl_handle_t *eslC,int fd,int *argc, char *argv[_MAX_CMD_ARGS]);
static int handle_setvar(esl_handle_t *eslC,int fd,char *args); static int handle_answer(esl_handle_t *eslC,int fd, int *argc, char *argv[_MAX_CMD_ARGS]);
static int handle_set(esl_handle_t *eslC,int fd,char *args); static int handle_streamfile(esl_handle_t *eslC,int fd,int *argc, char *argv[_MAX_CMD_ARGS]);
static int handle_streamfile(esl_handle_t *eslC,int fd,char *args);
static int handle_waitdigits(esl_handle_t *eslC,int fd,char *args); /* TODO
*/ * - EXEC application OPTIONS
* - GET DATA filetoplay timeout maxdigits
* - GET VARIABLE variablename
* - HANGUP 'channelname'
* - RECORD FILE filename format escapedigits timeout offsetsamples BEEP s=silence
* - SAY DIGITS
* - set autohangup time
* - set music on|off class
* - set variable
* - stream file filename <escape digits> [sample offset]
* - wait for digit timeout
*/
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论