#include <CpCall.h>


Public Member Functions | |
| CpCall (CpCallManager *manager=NULL, CpMediaInterface *callMediaInterface=NULL, int callIndex=-1, const char *callId=NULL, int holdType=CallManager::NEAR_END_HOLD) | |
| virtual | ~CpCall () | 
| void | setDropState (UtlBoolean state) | 
| void | postMetaEvent (int state, int remoteIsCallee=-1) | 
| void | postTaoListenerMessage (int responseCode, UtlString responseText, int eventId, int type, int cause=PtEvent::CAUSE_NORMAL, int remoteIsCallee=1, UtlString remoteAddress="", int isRemote=0, UtlString targetCallId=OsUtil::NULL_OS_STRING) | 
| void | setCallState (int responseCode, UtlString responseText, int state, int cause=PtEvent::CAUSE_NORMAL) | 
| virtual void | inFocus (int talking=1) | 
| virtual void | outOfFocus () | 
| virtual void | sendFlowgraphMessage (OsMsg &flowgraphMessage) | 
| virtual void | localHold () | 
| virtual void | hangUp (UtlString callId, int metaEventId) | 
| virtual void | getLocalAddress (char *address, int len) | 
| virtual void | getLocalTerminalId (char *terminal, int len) | 
| virtual void | getCallId (UtlString &callId) | 
| virtual void | setCallId (const char *callId) | 
| void | setLocalConnectionState (int newState) | 
| int | getLocalConnectionState () | 
| int | getCallIndex () | 
| int | getCallState () | 
| virtual void | printCall () | 
| void | enableDtmf () | 
| virtual void | startMetaEvent (int metaEventId, int metaEventType, int numCalls, const char *metaEventCallIds[], int remoteIsCallee=-1) | 
| virtual void | setMetaEvent (int metaEventId, int metaEventType, int numCalls, const char *metaEventCallIds[]) | 
| void | getMetaEvent (int &metaEventId, int &metaEventType, int &numCalls, const UtlString *metaEventCallIds[]) const | 
| virtual void | stopMetaEvent (int remoteIsCallee=-1) | 
| void | setCallType (int callType) | 
| int | getCallType () const | 
| void | setTargetCallId (const char *targetCallId) | 
| void | getTargetCallId (UtlString &targetCallId) const | 
| void | setOriginalCallId (const char *targetCallId) | 
| void | getOriginalCallId (UtlString &targetCallId) const | 
| int | getLocalConnectionState (int state) | 
| virtual UtlBoolean | hasCallId (const char *callId)=0 | 
| virtual enum handleWillingness | willHandleMessage (const OsMsg &eventMessage)=0 | 
| virtual UtlBoolean | isQueued () | 
| virtual UtlBoolean | isCallIdSet () | 
| virtual UtlBoolean | isLocalHeld () | 
| virtual UtlBoolean | canDisconnectConnection (Connection *pConnection)=0 | 
| virtual UtlBoolean | isInFocus () const | 
Static Public Member Functions | |
| static int | getCallTrackingListCount () | 
| static void | getStateString (int state, UtlString *stateLabel) | 
Protected Member Functions | |
| virtual UtlBoolean | handleMessage (OsMsg &eventMessage) | 
| virtual UtlBoolean | handleCallMessage (OsMsg &eventMessage)=0 | 
| virtual UtlBoolean | handleMiNotificationMessage (MiNotification ¬ification)=0 | 
| virtual void | onHook ()=0 | 
| virtual UtlBoolean | getConnectionState (const char *remoteAddress, int &state)=0 | 
| virtual UtlBoolean | getTermConnectionState (const char *address, const char *terminal, int &state)=0 | 
| void | addHistoryEvent (const char *messageLogString) | 
| void | addHistoryEvent (const int msgSubType, const CpMultiStringMessage *multiStringMessage) | 
Protected Attributes | |
| CpCallManager * | mpManager | 
| UtlString | mCallId | 
| volatile UtlBoolean | mCallInFocus | 
| UtlBoolean | mRemoteDtmf | 
| UtlBoolean | mDtmfEnabled | 
| OsRWMutex | mCallIdMutex | 
| CpMediaInterface * | mpMediaInterface | 
| int | mCallIndex | 
| int | mCallState | 
| int | mHoldType | 
| int | mLocalConnectionState | 
| int | mLocalTermConnectionState | 
| UtlBoolean | mLocalHeld | 
| OsMsgDispatcher | mMediaMsgDispatcher | 
| UtlBoolean | mDropping | 
| int | mMetaEventId | 
| int | mMetaEventType | 
| int | mNumMetaEventCalls | 
| UtlString * | mpMetaEventCallIds | 
| int | mMessageEventCount | 
| UtlString | mCallHistory [CP_CALL_HISTORY_LENGTH] | 
Private Member Functions | |
| CpCall & | operator= (const CpCall &rhs) | 
| CpCall (const CpCall &rCpCall) | |
| int | tcStateFromEventId (int eventId) | 
Static Private Member Functions | |
| static OsStatus | addToCallTrackingList (UtlString &rCallTaskName) | 
| static OsStatus | removeFromCallTrackingList (UtlString &rCallTaskName) | 
Private Attributes | |
| int | mCallType | 
| UtlString | mOriginalCallId | 
| UtlString | mTargetCallId | 
Static Private Attributes | |
| static OsLockingList * | spCallTrackingList = NULL | 
| enum callTypes | 
| enum eventType | 
| enum handleWillingness | 
| enum metaEventState | 
| CpCall | ( | CpCallManager * | manager = NULL,  | 
        
| CpMediaInterface * | callMediaInterface = NULL,  | 
        ||
| int | callIndex = -1,  | 
        ||
| const char * | callId = NULL,  | 
        ||
| int | holdType = CallManager::NEAR_END_HOLD  | 
        ||
| ) | 
      
  | 
  virtual | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  staticprivate | 
      
  | 
  pure virtual | 
Implemented in CpPeerCall.
| void enableDtmf | ( | ) | 
      
  | 
  virtual | 
| int getCallIndex | ( | ) | 
| int getCallState | ( | ) | 
      
  | 
  static | 
| int getCallType | ( | ) | const | 
      
  | 
  protectedpure virtual | 
Implemented in CpPeerCall.
      
  | 
  virtual | 
Reimplemented in CpPeerCall.
      
  | 
  inline | 
| int getLocalConnectionState | ( | int | state | ) | 
      
  | 
  virtual | 
Reimplemented in CpPeerCall.
| void getMetaEvent | ( | int & | metaEventId, | 
| int & | metaEventType, | ||
| int & | numCalls, | ||
| const UtlString * | metaEventCallIds[] | ||
| ) | const | 
| void getOriginalCallId | ( | UtlString & | targetCallId | ) | const | 
      
  | 
  static | 
| void getTargetCallId | ( | UtlString & | targetCallId | ) | const | 
      
  | 
  protectedpure virtual | 
Implemented in CpPeerCall.
      
  | 
  protectedpure virtual | 
Implemented in CpPeerCall.
      
  | 
  protectedvirtual | 
      
  | 
  protectedpure virtual | 
Implemented in CpPeerCall.
      
  | 
  virtual | 
      
  | 
  pure virtual | 
Implemented in CpPeerCall.
      
  | 
  virtual | 
Reimplemented in CpPeerCall.
      
  | 
  virtual | 
      
  | 
  inlinevirtual | 
      
  | 
  virtual | 
      
  | 
  virtual | 
Reimplemented in CpPeerCall.
      
  | 
  virtual | 
      
  | 
  protectedpure virtual | 
Implemented in CpPeerCall.
      
  | 
  virtual | 
Reimplemented in CpPeerCall.
| void postMetaEvent | ( | int | state, | 
| int | remoteIsCallee = -1  | 
        ||
| ) | 
To be removed...
| void postTaoListenerMessage | ( | int | responseCode, | 
| UtlString | responseText, | ||
| int | eventId, | ||
| int | type, | ||
| int | cause = PtEvent::CAUSE_NORMAL,  | 
        ||
| int | remoteIsCallee = 1,  | 
        ||
| UtlString | remoteAddress = "",  | 
        ||
| int | isRemote = 0,  | 
        ||
| UtlString | targetCallId = OsUtil::NULL_OS_STRING  | 
        ||
| ) | 
To be removed...
      
  | 
  virtual | 
Reimplemented in CpPeerCall.
      
  | 
  staticprivate | 
      
  | 
  virtual | 
      
  | 
  virtual | 
| void setCallState | ( | int | responseCode, | 
| UtlString | responseText, | ||
| int | state, | ||
| int | cause = PtEvent::CAUSE_NORMAL  | 
        ||
| ) | 
| void setCallType | ( | int | callType | ) | 
| void setDropState | ( | UtlBoolean | state | ) | 
| void setLocalConnectionState | ( | int | newState | ) | 
      
  | 
  virtual | 
| void setOriginalCallId | ( | const char * | targetCallId | ) | 
| void setTargetCallId | ( | const char * | targetCallId | ) | 
      
  | 
  virtual | 
      
  | 
  virtual | 
      
  | 
  private | 
      
  | 
  pure virtual | 
Implemented in CpPeerCall.
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  private | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  private | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  private | 
      
  | 
  staticprivate |