]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix mod_openmrcp build.
authorMichael Jerris <mike@jerris.com>
Thu, 1 Nov 2007 12:03:27 +0000 (12:03 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 1 Nov 2007 12:03:27 +0000 (12:03 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6123 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/asr_tts/mod_openmrcp/mod_openmrcp.c

index c6cabcf2faf32e45af476d2adb1fde79bdd0bdea..ecfc35660442faf9f71cba930ef47170531155eb 100644 (file)
@@ -231,7 +231,7 @@ static mrcp_status_t openmrcp_on_channel_modify(mrcp_client_context_t *context,
 
 /** 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 @@ static mrcp_status_t openmrcp_recog_start(mrcp_client_context_t *context, openmr
  * 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 @@ static switch_status_t openmrcp_asr_open(switch_asr_handle_t *ah, char *codec, i
 }
 
 /* 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 @@ static switch_status_t openmrcp_asr_resume(switch_asr_handle_t *ah)
 
 
 /*! 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;