mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-07 07:59:49 +00:00
disable modem functionality on openbsd
This commit is contained in:
parent
19dbd07ff8
commit
2907a4824f
@ -801,8 +801,9 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_spandsp_init)
|
|||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't bind!\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't bind!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(MODEM_SUPPORT)
|
||||||
modem_global_init(module_interface, pool);
|
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);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "mod_spandsp loaded, using spandsp library version [%s]\n", SPANDSP_RELEASE_DATETIME_STRING);
|
||||||
|
|
||||||
@ -817,7 +818,9 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_spandsp_shutdown)
|
|||||||
|
|
||||||
mod_spandsp_fax_shutdown();
|
mod_spandsp_fax_shutdown();
|
||||||
mod_spandsp_dsp_shutdown();
|
mod_spandsp_dsp_shutdown();
|
||||||
|
#if defined(MODEM_SUPPORT)
|
||||||
modem_global_shutdown();
|
modem_global_shutdown();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (spandsp_globals.tones) {
|
if (spandsp_globals.tones) {
|
||||||
switch_core_hash_destroy(&spandsp_globals.tones);
|
switch_core_hash_destroy(&spandsp_globals.tones);
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#undef HAVE_STDLIB_H
|
#undef HAVE_STDLIB_H
|
||||||
#include "switch_private.h"
|
#include "switch_private.h"
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_OPENPTY) || defined(HAVE_DEV_PTMX) || defined(HAVE_POSIX_OPENPT) || WIN32
|
#if !defined(__OpenBSD__) && (defined(HAVE_OPENPTY) || defined(HAVE_DEV_PTMX) || defined(HAVE_POSIX_OPENPT) || WIN32)
|
||||||
#define MODEM_SUPPORT 1
|
#define MODEM_SUPPORT 1
|
||||||
#if !defined(HAVE_POSIX_OPENPT) && !defined(HAVE_DEV_PTMX) && !defined(WIN32)
|
#if !defined(HAVE_POSIX_OPENPT) && !defined(HAVE_DEV_PTMX) && !defined(WIN32)
|
||||||
#define USE_OPENPTY 1
|
#define USE_OPENPTY 1
|
||||||
@ -55,6 +55,7 @@
|
|||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#elif defined(__SunOS)
|
#elif defined(__SunOS)
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
#elif defined(__OpenBSD__)
|
||||||
#else
|
#else
|
||||||
#include <pty.h>
|
#include <pty.h>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user