Asterisk - The Open Source Telephony Project  21.4.1
Macros | Functions | Variables
eagi-sphinx-test.c File Reference
#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
 

Detailed Description

Extended AGI test application

This code is released into public domain without any warranty of any kind.

Definition in file eagi-sphinx-test.c.