32 #ifndef OPAL_OPAL_CALL_H
33 #define OPAL_OPAL_CALL_H
45 #include <ptlib/safecoll.h>
141 PSyncPoint * sync = NULL
226 virtual OpalConnection::AnswerCallResponse
OnAnswerCall(
228 const PString & caller
302 PSafetyMode mode = PSafeReference
308 template <
class ConnClass>
311 PSafetyMode mode = PSafeReadWrite
314 PSafePtr<ConnClass> connection;
315 for (PSafePtr<OpalConnection> iterConn(
connectionsActive, PSafeReference); iterConn != NULL; ++iterConn) {
316 if ((connection = PSafePtrCast<OpalConnection, ConnClass>(iterConn)) != NULL && count-- == 0) {
317 if (!connection.SetSafetyMode(mode))
318 connection.SetNULL();
329 bool Hold(
bool hold =
true);
342 bool fromRemote =
false
378 const PString & address,
423 unsigned sessionID = 0,
426 OpalVideoFormat::ContentRole contentRole = OpalVideoFormat::eNoRole,
428 bool transfer =
false,
429 bool startPaused =
false
459 const PString & value
568 const PFilePath & filename,
584 const PString & streamId,
591 const PString & streamId
597 const PString & streamId,
605 const PString & streamId,
609 #endif // OPAL_HAS_MIXER
615 #if OPAL_T38_CAPABILITY
616 bool IsSwitchingT38()
const {
return m_T38SwitchState != e_NotSwitchingT38; }
617 bool IsSwitchingToT38()
const {
return m_T38SwitchState == e_SwitchingToT38; }
618 void ResetSwitchingT38() { m_T38SwitchState = e_NotSwitchingT38; }
619 void SetSwitchingT38(
bool to) { m_T38SwitchState = to ? e_SwitchingToT38 : e_SwitchingFromT38; }
624 PSafePtr<OpalConnection> & connection,
655 PDECLARE_ScriptFunctionNotifier(
OpalCall, ScriptClear);
658 #if OPAL_T38_CAPABILITY
675 #endif // OPAL_OPAL_CALL_H