[Freeswitch-svn] [commit] r3768 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Wed Dec 20 16:44:21 EST 2006
Author: anthm
Date: Wed Dec 20 16:44:21 2006
New Revision: 3768
Modified:
freeswitch/trunk/src/switch_ivr.c
Log:
linux #%^%$&
Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c (original)
+++ freeswitch/trunk/src/switch_ivr.c Wed Dec 20 16:44:21 2006
@@ -4412,10 +4412,9 @@
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 @@
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 @@
} 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 {
More information about the Freeswitch-svn
mailing list