fix mod_ivrtest build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6122 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
7b6182aa13
commit
9128dac2ef
|
@ -55,7 +55,7 @@ static switch_status_t on_dtmf(switch_core_session_t *session, void *input, swit
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void disast_function(switch_core_session_t *session, char *data)
|
SWITCH_STANDARD_APP(disast_function)
|
||||||
{
|
{
|
||||||
void *x = NULL;
|
void *x = NULL;
|
||||||
memset((void *) x, 0, 1000);
|
memset((void *) x, 0, 1000);
|
||||||
|
@ -63,7 +63,7 @@ static void disast_function(switch_core_session_t *session, char *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void xml_function(switch_core_session_t *session, char *data)
|
SWITCH_STANDARD_APP(xml_function)
|
||||||
{
|
{
|
||||||
switch_xml_t f1 = switch_xml_parse_file("/root/formula1.xml"), team, driver;
|
switch_xml_t f1 = switch_xml_parse_file("/root/formula1.xml"), team, driver;
|
||||||
const char *teamname;
|
const char *teamname;
|
||||||
|
@ -79,7 +79,7 @@ static void xml_function(switch_core_session_t *session, char *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void ivr_application_function(switch_core_session_t *session, char *data)
|
SWITCH_STANDARD_APP(ivr_application_function)
|
||||||
{
|
{
|
||||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||||
char *params = switch_core_session_strdup(session, data);
|
char *params = switch_core_session_strdup(session, data);
|
||||||
|
@ -127,7 +127,7 @@ static void ivr_application_function(switch_core_session_t *session, char *data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void dirtest_function(switch_core_session_t *session, char *data)
|
SWITCH_STANDARD_APP(dirtest_function)
|
||||||
{
|
{
|
||||||
char *var, *val;
|
char *var, *val;
|
||||||
switch_channel_t *channel;
|
switch_channel_t *channel;
|
||||||
|
@ -173,7 +173,7 @@ static switch_status_t show_dtmf(switch_core_session_t *session, void *input, sw
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void tts_function(switch_core_session_t *session, char *data)
|
SWITCH_STANDARD_APP(tts_function)
|
||||||
{
|
{
|
||||||
switch_channel_t *channel;
|
switch_channel_t *channel;
|
||||||
switch_codec_t *codec;
|
switch_codec_t *codec;
|
||||||
|
@ -230,7 +230,7 @@ static switch_bool_t bug_callback(switch_media_bug_t *bug, void *user_data, swit
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void bugtest_function(switch_core_session_t *session, char *data)
|
SWITCH_STANDARD_APP(bugtest_function)
|
||||||
{
|
{
|
||||||
#ifdef BUGTEST
|
#ifdef BUGTEST
|
||||||
switch_media_bug_t *bug;
|
switch_media_bug_t *bug;
|
||||||
|
@ -250,13 +250,13 @@ static void bugtest_function(switch_core_session_t *session, char *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
static void asrtest_function(switch_core_session_t *session, char *data)
|
SWITCH_STANDARD_APP(asrtest_function)
|
||||||
{
|
{
|
||||||
switch_ivr_detect_speech(session, "lumenvox", "demo", data, "127.0.0.1", NULL);
|
switch_ivr_detect_speech(session, "lumenvox", "demo", data, "127.0.0.1", NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
static void asrtest_function(switch_core_session_t *session, char *data)
|
SWITCH_STANDARD_APP(asrtest_function)
|
||||||
{
|
{
|
||||||
switch_asr_handle_t ah = { 0 };
|
switch_asr_handle_t ah = { 0 };
|
||||||
switch_asr_flag_t flags = SWITCH_ASR_FLAG_NONE;
|
switch_asr_flag_t flags = SWITCH_ASR_FLAG_NONE;
|
||||||
|
@ -359,7 +359,7 @@ static void asrtest_function(switch_core_session_t *session, char *data)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void ivrtest_function(switch_core_session_t *session, char *data)
|
SWITCH_STANDARD_APP(ivrtest_function)
|
||||||
{
|
{
|
||||||
switch_channel_t *channel;
|
switch_channel_t *channel;
|
||||||
switch_status_t status = SWITCH_STATUS_SUCCESS;
|
switch_status_t status = SWITCH_STATUS_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue