提交 e127ca7d authored 作者: Robert Jongbloed's avatar Robert Jongbloed

Updated to current stable version of PTLib/OPAL.

上级 2b603088
...@@ -1031,7 +1031,7 @@ switch_status_t FSConnection::receive_message(switch_core_session_message_t *msg ...@@ -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"); PTRACE(2, "mod_opal\tRequesting switch to T.38");
PSafePtr<OpalConnection> other = GetOtherPartyConnection(); PSafePtr<OpalConnection> other = GetOtherPartyConnection();
if (other != NULL && other->SwitchT38(true)) if (other != NULL && other->SwitchFaxMediaStreams(true))
switch_channel_set_flag(m_fsChannel, CF_REQ_MEDIA); switch_channel_set_flag(m_fsChannel, CF_REQ_MEDIA);
else { else {
PTRACE(1, "mod_opal\tMode change request to T.38 failed"); PTRACE(1, "mod_opal\tMode change request to T.38 failed");
......
...@@ -32,13 +32,17 @@ ...@@ -32,13 +32,17 @@
#endif #endif
#include <ptlib.h> #include <ptlib.h>
#include <opal/manager.h>
#if !defined(PTLIB_CHECK_VERSION) #ifndef OPAL_CHECK_VERSION
#error PTLib is too old to use, must be >= 2.10.6 #define OPAL_CHECK_VERSION(a,b,c) 0
#endif #endif
#include <opal/manager.h> #if !OPAL_CHECK_VERSION(3,12,8)
#include <opal/localep.h> #error OPAL is too old to use, must be >= 2.12.8
#endif
#include <ep/localep.h>
#include <h323/h323ep.h> #include <h323/h323ep.h>
#include <iax2/iax2ep.h> #include <iax2/iax2ep.h>
...@@ -53,11 +57,8 @@ ...@@ -53,11 +57,8 @@
#define MODNAME "mod_opal" #define MODNAME "mod_opal"
#ifndef OPAL_CHECK_VERSION #define HAVE_T38 OPAL_T38_CAPABILITY
#define OPAL_CHECK_VERSION(a,b,c) 0
#endif
#define HAVE_T38 (OPAL_CHECK_VERSION(3,11,2) && OPAL_T38_CAPABILITY)
class FSEndPoint; class FSEndPoint;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论