31 #ifndef OPAL_T38_T38PROTO_H
32 #define OPAL_T38_T38PROTO_H
43 #include <ptlib/pipechan.h>
52 class PASN_OctetString;
56 #define OPAL_OPT_STATION_ID "Station-Id"
57 #define OPAL_OPT_HEADER_INFO "Header-Info"
58 #define OPAL_NO_G111_FAX "No-G711-Fax"
59 #define OPAL_SWITCH_ON_CED "Switch-On-CED"
60 #define OPAL_T38_SWITCH_TIME "T38-Switch-Time"
62 #define OPAL_FAX_TIFF_FILE "TIFF-File"
90 const char * g711Prefix =
"fax",
91 const char * t38Prefix =
"t38"
103 const PString & party,
104 void * userData = NULL,
105 unsigned int options = 0,
131 const PString & filename,
194 const PString & filename,
282 #endif // OPAL_T38_T38PROTO_H
void SetDefaultDirectory(const PString &dir)
Definition: t38proto.h:152
OpalFaxEndPoint & m_endpoint
Definition: t38proto.h:255
virtual OpalMediaFormatList GetMediaFormats() const
virtual PBoolean SendUserInputTone(char tone, unsigned duration)
Definition: t38proto.h:183
virtual OpalMediaFormatList GetMediaFormats() const
void SetFaxMediaFormatOptions(OpalMediaFormat &mediaFormat) const
Definition: t38proto.h:268
virtual void AdjustMediaFormats(bool local, const OpalConnection *otherConnection, OpalMediaFormatList &mediaFormats) const
virtual void OnStartMediaPatch(OpalMediaPatch &patch)
Definition: localep.h:360
Definition: t38proto.h:266
virtual bool OnSwitchingFaxMediaStreams(bool toT38)
Definition: transports.h:703
OpalFaxEndPoint(OpalManager &manager, const char *g711Prefix="fax", const char *t38Prefix="t38")
enum OpalFaxConnection::@44 m_state
Definition: t38proto.h:267
bool IsReceive() const
Definition: t38proto.h:246
virtual bool IsAvailable() const
virtual void OnFaxCompleted(bool failed)
const PString & GetFileName() const
Definition: t38proto.h:242
bool m_receiving
Definition: t38proto.h:257
OpalMediaFormat m_tiffFileFormat
Definition: t38proto.h:259
friend class OpalFaxMediaStream
Definition: t38proto.h:273
bool m_disableT38
Definition: t38proto.h:258
PTimer m_switchTimer
Definition: t38proto.h:271
virtual PString GetPrefixName() const
OpalLocalEndPoint & endpoint
Definition: localep.h:522
Definition: connection.h:462
virtual OpalFaxConnection * CreateConnection(OpalCall &call, void *userData, OpalConnection::StringOptions *stringOptions, const PString &filename, bool receiving, bool disableT38)
OpalFaxConnection OpalT38Connection
Definition: t38proto.h:277
OpalMediaStatistics m_finalStatistics
Definition: t38proto.h:262
virtual void OnUserInputTone(char tone, unsigned duration)
virtual void OnEstablished()
PDECLARE_NOTIFIER(PTimer, OpalFaxConnection, OnSwitchTimeout)
const PString & GetT38Prefix() const
Definition: t38proto.h:156
OpalManager & manager
Definition: endpoint.h:807
virtual OpalMediaStream * CreateMediaStream(const OpalMediaFormat &mediaFormat, unsigned sessionID, PBoolean isSource)
PDirectory m_defaultDirectory
Definition: t38proto.h:161
virtual void OnStopMediaPatch(OpalMediaPatch &patch)
Definition: connection.h:353
const PString & GetDefaultDirectory() const
Definition: t38proto.h:148
virtual void OnSwitchedFaxMediaStreams(bool toT38, bool success)
PString m_t38Prefix
Definition: t38proto.h:160
Definition: t38proto.h:80
void InternalGetStatistics(OpalMediaStatistics &statistics, bool terminate) const
PString m_filename
Definition: t38proto.h:256
virtual void GetStatistics(OpalMediaStatistics &statistics) const
virtual void OnReleased()
virtual bool SwitchFaxMediaStreams(bool toT38)
virtual void OnFaxCompleted(OpalFaxConnection &connection, bool failed)
virtual PSafePtr< OpalConnection > MakeConnection(OpalCall &call, const PString &party, void *userData=NULL, unsigned int options=0, OpalConnection::StringOptions *stringOptions=NULL)
OpalFaxConnection(OpalCall &call, OpalFaxEndPoint &endpoint, const PString &filename, bool receiving, bool disableT38, OpalConnection::StringOptions *stringOptions=NULL)