[Freeswitch-svn] [commit] r6123 - freeswitch/trunk/src/mod/asr_tts/mod_openmrcp
Author: mikej Date: Thu Nov 1 08:03:27 2007 New Revision: 6123 Modified: freeswitch/trunk/src/mod/asr_tts/mod_openmrcp/mod_openmrcp.c Log: fix mod_openmrcp build. Modified: freeswitch/trunk/src/mod/asr_tts/mod_openmrcp/mod_openmrcp.c ============================================================================== --- freeswitch/trunk/src/mod/asr_tts/mod_openmrcp/mod_openmrcp.c (original) +++ freeswitch/trunk/src/mod/asr_tts/mod_openmrcp/mod_openmrcp.c Thu Nov 1 08:03:27 2007 @@ -231,7 +231,7 @@ /** Read in the grammar and construct an MRCP Recognize message that has The grammar attached as the payload */ -static mrcp_status_t openmrcp_recog_start(mrcp_client_context_t *context, openmrcp_session_t *asr_session, char *path) +static mrcp_status_t openmrcp_recog_start(mrcp_client_context_t *context, openmrcp_session_t *asr_session, const char *path) { mrcp_generic_header_t *generic_header; apr_status_t rv; @@ -284,7 +284,11 @@ * This code expects certain one-time initialization of the openmrcp client * engine/systeme to have already taken place.function to open the asr interface */ -static switch_status_t openmrcp_asr_open(switch_asr_handle_t *ah, char *codec, int rate, char *dest, switch_asr_flag_t *flags) +static switch_status_t openmrcp_asr_open(switch_asr_handle_t *ah, + const char *codec, + int rate, + const char *dest, + switch_asr_flag_t *flags) { openmrcp_session_t *asr_session; mrcp_client_channel_t *asr_channel; @@ -345,7 +349,7 @@ } /* function to load a grammar to the asr interface */ -static switch_status_t openmrcp_asr_load_grammar(switch_asr_handle_t *ah, char *grammar, char *path) +static switch_status_t openmrcp_asr_load_grammar(switch_asr_handle_t *ah, const char *grammar, const char *path) { /** Read grammar from path and create and send and MRCP RECOGNIZE msg that has the grammar attached to body. @@ -424,7 +428,7 @@ /*! function to unload a grammar to the asr interface */ -static switch_status_t openmrcp_asr_unload_grammar(switch_asr_handle_t *ah, char *grammar) +static switch_status_t openmrcp_asr_unload_grammar(switch_asr_handle_t *ah, const char *grammar) { return SWITCH_STATUS_SUCCESS;
participants (1)
-
Freeswitch SVN