]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
linux #%^%$&
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 20 Dec 2006 21:44:21 +0000 (21:44 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 20 Dec 2006 21:44:21 +0000 (21:44 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3768 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr.c

index dee8b5994e913c59023d1b8b1a6de52a8978c769..fd2d0a65b28ea05b72b3580242e92fb22ef32e75 100644 (file)
@@ -4412,10 +4412,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro(switch_core_session_t *s
                                                         uint32_t buflen)
 {
        switch_xml_t cfg, xml = NULL, language, macros, macro, input, action;
-    const char *lname = NULL, *mname = NULL;
-    char hint_data[1024] = "", enc_hint[1024] = "";
+    char *lname = NULL, *mname = NULL, hint_data[1024] = "", enc_hint[1024] = "";
     switch_status_t status = SWITCH_STATUS_GENERR;
-    const char *old_sound_prefix, *sound_path = NULL, *tts_engine = NULL, *tts_voice = NULL;
+    char *old_sound_prefix, *sound_path = NULL, *tts_engine = NULL, *tts_voice = NULL;
     switch_channel_t *channel;
 
     channel = switch_core_session_get_channel(session);
@@ -4493,8 +4492,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro(switch_core_session_t *s
 
             if ((proceed = switch_perform_regex(data, pattern, &re, ovector, sizeof(ovector) / sizeof(ovector[0])))) {
                 for (action = switch_xml_child(input, "action"); action; action = action->next) {
-                    char *adata = switch_xml_attr_soft(action, "data");
-                    char *func = switch_xml_attr_soft(action, "function");
+                    char *adata = (char *) switch_xml_attr_soft(action, "data");
+                    char *func = (char *) switch_xml_attr_soft(action, "function");
 
                     if (strchr(pattern, '(') && strchr(adata, '$')) {
                         switch_perform_substitution(re, proceed, adata, data, substituted, sizeof(substituted), ovector);
@@ -4532,8 +4531,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro(switch_core_session_t *s
                     } else if (!strcasecmp(func, "say")) {
                         switch_say_interface_t *si;
                         if ((si = switch_loadable_module_get_say_interface(lang))) {
-                            char *say_type = switch_xml_attr_soft(action, "type");
-                            char *say_method = switch_xml_attr_soft(action, "method");
+                            char *say_type = (char *) switch_xml_attr_soft(action, "type");
+                            char *say_method = (char *) switch_xml_attr_soft(action, "method");
                             
                             si->say_function(session, odata, get_say_type_by_name(say_type), get_say_method_by_name(say_method), input_callback, buf, buflen);
                         } else {