Asterisk - The Open Source Telephony Project
18.5.0
|
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/select.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include "asterisk.h"
#include "asterisk/compat.h"
Go to the source code of this file.
Macros | |
#define | AUDIO_FILENO (STDERR_FILENO + 1) |
#define | SPHINX_HOST "192.168.1.108" |
#define | SPHINX_PORT 3460 |
Functions | |
static int | connect_sphinx (void) |
int | main (int argc, char *argv[]) |
static int | read_environment (void) |
static char * | run_command (char *command) |
static int | run_script (void) |
static char * | wait_result (void) |
Variables | |
static int | sphinx_sock = -1 |
Extended AGI test application
This code is released into public domain without any warranty of any kind.
Definition in file eagi-sphinx-test.c.
#define AUDIO_FILENO (STDERR_FILENO + 1) |
Definition at line 34 of file eagi-sphinx-test.c.
Referenced by wait_result().
#define SPHINX_HOST "192.168.1.108" |
Definition at line 36 of file eagi-sphinx-test.c.
Referenced by connect_sphinx().
#define SPHINX_PORT 3460 |
Definition at line 37 of file eagi-sphinx-test.c.
Referenced by connect_sphinx().
|
static |
Definition at line 41 of file eagi-sphinx-test.c.
References errno, gethostbyname, hp, SPHINX_HOST, SPHINX_PORT, and sphinx_sock.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 211 of file eagi-sphinx-test.c.
References connect_sphinx(), errno, read_environment(), run_script(), and tmp().
Referenced by compute_func(), and is_zero_or_null().
|
static |
Definition at line 76 of file eagi-sphinx-test.c.
Referenced by main().
|
static |
Definition at line 169 of file eagi-sphinx-test.c.
References wait_result().
Referenced by run_script().
|
static |
|
static |
Definition at line 110 of file eagi-sphinx-test.c.
References AUDIO_FILENO, errno, FD_SET, FD_ZERO, max, NULL, and sphinx_sock.
Referenced by run_command().
|
static |
Definition at line 39 of file eagi-sphinx-test.c.
Referenced by connect_sphinx(), and wait_result().