diff --git a/src/mod/endpoints/mod_opal/mod_opal.cpp b/src/mod/endpoints/mod_opal/mod_opal.cpp old mode 100644 new mode 100755 index 6f0fb3addd..7d97c29b51 --- a/src/mod/endpoints/mod_opal/mod_opal.cpp +++ b/src/mod/endpoints/mod_opal/mod_opal.cpp @@ -1031,7 +1031,7 @@ switch_status_t FSConnection::receive_message(switch_core_session_message_t *msg { PTRACE(2, "mod_opal\tRequesting switch to T.38"); PSafePtr other = GetOtherPartyConnection(); - if (other != NULL && other->SwitchT38(true)) + if (other != NULL && other->SwitchFaxMediaStreams(true)) switch_channel_set_flag(m_fsChannel, CF_REQ_MEDIA); else { PTRACE(1, "mod_opal\tMode change request to T.38 failed"); diff --git a/src/mod/endpoints/mod_opal/mod_opal.h b/src/mod/endpoints/mod_opal/mod_opal.h old mode 100644 new mode 100755 index 7b3993b0b2..4b0cd62a02 --- a/src/mod/endpoints/mod_opal/mod_opal.h +++ b/src/mod/endpoints/mod_opal/mod_opal.h @@ -32,13 +32,17 @@ #endif #include +#include -#if !defined(PTLIB_CHECK_VERSION) - #error PTLib is too old to use, must be >= 2.10.6 +#ifndef OPAL_CHECK_VERSION + #define OPAL_CHECK_VERSION(a,b,c) 0 #endif -#include -#include +#if !OPAL_CHECK_VERSION(3,12,8) + #error OPAL is too old to use, must be >= 2.12.8 +#endif + +#include #include #include @@ -53,11 +57,8 @@ #define MODNAME "mod_opal" -#ifndef OPAL_CHECK_VERSION - #define OPAL_CHECK_VERSION(a,b,c) 0 -#endif +#define HAVE_T38 OPAL_T38_CAPABILITY -#define HAVE_T38 (OPAL_CHECK_VERSION(3,11,2) && OPAL_T38_CAPABILITY) class FSEndPoint;