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,
216 virtual PBoolean SendUserInputTone(
char tone,
unsigned duration);
218 virtual bool SwitchFaxMediaStreams(
bool toT38);
219 virtual void OnSwitchedFaxMediaStreams(
bool toT38,
bool success);
220 virtual bool OnSwitchingFaxMediaStreams(
bool toT38);
235 virtual void GetStatistics(
273 friend class OpalFaxMediaStream;
282 #endif // OPAL_T38_T38PROTO_H void SetDefaultDirectory(const PString &dir)
Definition: t38proto.h:152
OpalFaxEndPoint & m_endpoint
Definition: t38proto.h:255
Definition: t38proto.h:183
const PString & GetT38Prefix() const
Definition: t38proto.h:156
Definition: localep.h:360
const PString & GetFileName() const
Definition: t38proto.h:242
Definition: t38proto.h:266
virtual void OnUserInputTone(OpalConnection &connection, char tone, int duration)
Definition: transports.h:703
OpalFaxEndPoint(OpalManager &manager, const char *g711Prefix="fax", const char *t38Prefix="t38")
bool IsReceive() const
Definition: t38proto.h:246
Definition: t38proto.h:267
virtual bool IsAvailable() const
virtual void OnEstablished(OpalConnection &connection)
virtual OpalMediaFormatList GetMediaFormats() const
bool m_receiving
Definition: t38proto.h:257
OpalMediaFormat m_tiffFileFormat
Definition: t38proto.h:259
bool m_disableT38
Definition: t38proto.h:258
PTimer m_switchTimer
Definition: t38proto.h:271
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
const PString & GetPrefixName() const
Definition: endpoint.h:729
OpalMediaStatistics m_finalStatistics
Definition: t38proto.h:262
virtual void OnReleased(OpalConnection &connection)
OpalManager & manager
Definition: endpoint.h:807
PDirectory m_defaultDirectory
Definition: t38proto.h:161
PDECLARE_NOTIFIER(PThread, OpalEndPoint, ListenerCallback)
virtual void AdjustMediaFormats(bool local, const OpalConnection &connection, OpalMediaFormatList &mediaFormats) const
Definition: connection.h:353
PString m_t38Prefix
Definition: t38proto.h:160
const PString & GetDefaultDirectory() const
Definition: t38proto.h:148
Definition: t38proto.h:80
PString m_filename
Definition: t38proto.h:256
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)