]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
revert --- wrong you cant tell if you have modem support unless you include the file
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 7 Dec 2011 11:15:39 +0000 (05:15 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 7 Dec 2011 11:15:39 +0000 (05:15 -0600)
src/mod/applications/mod_spandsp/mod_spandsp.c
src/mod/applications/mod_spandsp/mod_spandsp_modem.h

index 58ce00a92ccdb07150dc4c144dc2956ba8979493..a5730a73f70405939af4fa08e373998fbc4861be 100644 (file)
@@ -533,9 +533,9 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_spandsp_init)
                /* Not such severe to prevent loading */
        }
 
-    //#if defined(MODEM_SUPPORT) 
+
        modem_global_init(module_interface, pool);
-    //#endif
+
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "mod_spandsp loaded, using spandsp library version [%s]\n", SPANDSP_RELEASE_DATETIME_STRING);
 
        return SWITCH_STATUS_SUCCESS;
@@ -547,9 +547,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_spandsp_shutdown)
 
        mod_spandsp_fax_shutdown();
        mod_spandsp_dsp_shutdown();
-#if defined(MODEM_SUPPORT) 
        modem_global_shutdown();
-#endif
 
     if (spandsp_globals.tones) {
         switch_core_hash_destroy(&spandsp_globals.tones);
index 1555c9e92bac9cac78b0a41aea96357571c3986d..7e89a9edc76f849d81632d9993264ef5004c7514 100644 (file)
@@ -31,8 +31,8 @@
  *
  */
 
-#if defined(HAVE_OPENPTY) || defined(HAVE_DEV_PTMX) || defined(HAVE_POSIX_OPENPT)
 #include "switch_private.h"
+#if defined(HAVE_OPENPTY) || defined(HAVE_DEV_PTMX) || defined(HAVE_POSIX_OPENPT)
 #define MODEM_SUPPORT 1
 #if !defined(HAVE_POSIX_OPENPT) && !defined(HAVE_DEV_PTMX)
 #define USE_OPENPTY 1