]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix for compilation errors
authorDavid Yat Sin <dyatsin@sangoma.com>
Thu, 13 Sep 2012 04:00:26 +0000 (00:00 -0400)
committerDavid Yat Sin <dyatsin@sangoma.com>
Thu, 13 Sep 2012 04:00:26 +0000 (00:00 -0400)
libs/freetdm/mod_freetdm/mod_freetdm.c
libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c

index 182c0b206bf68e0bcdec34eb36ad935321367181..7a8e10593e677d452c4946650a608047b7ad0ed5 100755 (executable)
@@ -170,7 +170,9 @@ static const char* channel_get_variable(switch_core_session_t *session, switch_e
 ftdm_status_t ftdm_channel_from_event(ftdm_sigmsg_t *sigmsg, switch_core_session_t **sp);
 void dump_chan(ftdm_span_t *span, uint32_t chan_id, switch_stream_handle_t *stream);
 void dump_chan_xml(ftdm_span_t *span, uint32_t chan_id, switch_stream_handle_t *stream);
+#if 0
 void ctdm_init(switch_loadable_module_interface_t *module_interface);
+#endif
 
 static switch_core_session_t *ftdm_channel_get_session(ftdm_channel_t *channel, int32_t id)
 {
@@ -5358,9 +5360,9 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_freetdm_load)
        SWITCH_ADD_APP(app_interface, "disable_ec", "Disable Echo Canceller", "Disable Echo Canceller", disable_ec_function, "", SAF_NONE);
        SWITCH_ADD_APP(app_interface, "disable_dtmf", "Disable DTMF Detection", "Disable DTMF Detection", disable_dtmf_function, "", SAF_NONE);
        SWITCH_ADD_APP(app_interface, "enable_dtmf", "Enable DTMF Detection", "Enable DTMF Detection", enable_dtmf_function, "", SAF_NONE);
-
+#if 0
        ctdm_init(*module_interface);
-
+#endif
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
 }
index 68cf7f67432b2fde394f7f31d730798b6299901a..c1940a4badc7688c36fe3d95b5752e20eaf01392 100755 (executable)
@@ -769,18 +769,18 @@ static FIO_COMMAND_FUNCTION(wanpipe_command)
                break;
        case FTDM_COMMAND_ENABLE_DTMF_REMOVAL:
                {
-#ifdef WP_API_FEATURE_LIBSNG_HWEC
+#ifdef WP_API_FEATURE_DTMF_REMOVAL
                        int return_code = 0;
                        err = sangoma_hwec_set_hwdtmf_removal(ftdmchan->sockfd, ftdmchan->physical_chan_id, &return_code, 1, 0);
                        if (return_code) {
-                               ftdm_log_chan_msg(ftdmchan, FTDM_LOG_ERROR, "Wanpipe failed to Disable HW-DTMF removal\n");
+                               ftdm_log_chan_msg(ftdmchan, FTDM_LOG_ERROR, "Wanpipe failed to Enable HW-DTMF removal\n");
                        }
 #endif
                }
                break;
        case FTDM_COMMAND_DISABLE_DTMF_REMOVAL:
                {
-#ifdef WP_API_FEATURE_LIBSNG_HWEC
+#ifdef WP_API_FEATURE_DTMF_REMOVAL
                        int return_code = 0;
                        err = sangoma_hwec_set_hwdtmf_removal(ftdmchan->sockfd, ftdmchan->physical_chan_id, &return_code, 0, 0);
                        if (return_code) {