forked from Mirrors/freeswitch
Updated to current stable version of PTLib/OPAL.
This commit is contained in:
parent
2b60308891
commit
e127ca7d40
2
src/mod/endpoints/mod_opal/mod_opal.cpp
Normal file → Executable file
2
src/mod/endpoints/mod_opal/mod_opal.cpp
Normal file → Executable file
@ -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");
|
||||||
|
17
src/mod/endpoints/mod_opal/mod_opal.h
Normal file → Executable file
17
src/mod/endpoints/mod_opal/mod_opal.h
Normal file → Executable file
@ -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 @@
|
|||||||
|
|
||||||
#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;
|
||||||
|
Loading…
Reference in New Issue
Block a user