16 #ifndef _CpGhostConnection_h_ 17 #define _CpGhostConnection_h_ 24 #include <net/SipContactDb.h> 44 static const UtlContainableType
TYPE;
49 CpCall* call = NULL,
const char* callId = NULL);
61 virtual UtlBoolean
dial(
const char* dialString,
64 const char* callController = NULL,
65 const char* originalCallConnection = NULL,
66 UtlBoolean requestQueuedCall = FALSE,
67 const void* pDisplay = NULL,
68 const void* pSecurity = NULL,
69 const char* locationHeader = NULL,
70 const int bandWidth = AUDIO_MICODEC_BW_DEFAULT,
71 UtlBoolean bOnHold = FALSE,
72 const char* originalCallId = NULL,
73 const RTP_TRANSPORT rtpTransportOptions = RTP_TRANSPORT_UDP);
78 const char* transferControllerAddress,
79 const char* targetCallId);
84 const char* transferControllerAddress);
96 virtual UtlBoolean
answer(
const void* hWnd = NULL);
100 virtual UtlBoolean
hangUp();
102 virtual UtlBoolean
hold();
104 virtual UtlBoolean
reject(
int errorCode = 0,
const char* errorText =
"");
106 virtual UtlBoolean
redirect(
const char* forwardAddress);
114 virtual UtlBoolean
accept(
int forwardOnNoAnswerSeconds,
115 const void *pSecurity = NULL,
116 const char* locationHeader = NULL,
117 const int bandWidth = AUDIO_MICODEC_BW_DEFAULT,
118 UtlBoolean sendEarlyMedia = FALSE);
130 virtual UtlBoolean
getRemoteAddress(UtlString* remoteAddress, UtlBoolean leaveFieldParametersIn)
const;
134 virtual UtlBoolean
getSession(SipSession& session);
141 size_t& nActualContacts) ;
148 virtual UtlBoolean
isInstanceOf(
const UtlContainableType type)
const;
155 UtlBoolean strictCompare)
const;
178 #endif // _CpGhostConnection_h_ Abstract call manager.
Definition: CpCallManager.h:97
virtual UtlBoolean transfereeStatus(int connectionState, int response)
Definition: CpGhostConnection.cpp:110
virtual UtlBoolean targetCallBlindTransfer(const char *transferTargetAddress, const char *transferControllerAddress)
Definition: CpGhostConnection.cpp:100
virtual UtlBoolean dial(const char *dialString, const char *callerId, const char *callId, const char *callController=NULL, const char *originalCallConnection=NULL, UtlBoolean requestQueuedCall=FALSE, const void *pDisplay=NULL, const void *pSecurity=NULL, const char *locationHeader=NULL, const int bandWidth=AUDIO_MICODEC_BW_DEFAULT, UtlBoolean bOnHold=FALSE, const char *originalCallId=NULL, const RTP_TRANSPORT rtpTransportOptions=RTP_TRANSPORT_UDP)
Definition: CpGhostConnection.cpp:74
UtlString mRemoteAddress
Definition: CpGhostConnection.h:172
CpGhostConnection & operator=(const CpGhostConnection &rhs)
Definition: CpGhostConnection.cpp:61
virtual UtlContainableType getContainableType() const
Definition: CpGhostConnection.cpp:208
virtual UtlBoolean originalCallTransfer(UtlString &transferTargetAddress, const char *transferControllerAddress, const char *targetCallId)
param: requestQueuedCall - indicates that the caller wishes to have the callee queue the call if busy...
Definition: CpGhostConnection.cpp:92
virtual UtlBoolean willHandleMessage(OsMsg &eventMessage) const
Definition: CpGhostConnection.cpp:256
static const UtlContainableType TYPE
Definition: CpGhostConnection.h:44
virtual UtlBoolean getSession(SipSession &session)
returns: TRUE/FALSE if the connection has an address. The connection may not have an address assigned...
Definition: CpGhostConnection.cpp:225
virtual UtlBoolean getRemoteAddress(UtlString *remoteAddress) const
Definition: CpGhostConnection.cpp:213
virtual void getRemoteUserAgent(UtlString *pUserAgent)
Definition: CpGhostConnection.cpp:240
virtual void outOfFocus()
Definition: CpGhostConnection.cpp:144
virtual UtlBoolean isInstanceOf(const UtlContainableType type) const
Definition: CpGhostConnection.cpp:248
Definition: Connection.h:58
virtual UtlBoolean hold()
Definition: CpGhostConnection.cpp:158
virtual UtlBoolean silentRemoteHold()
Definition: CpGhostConnection.cpp:185
CpGhostConnection(CpCallManager *callMgr=NULL, CpCall *call=NULL, const char *callId=NULL)
Definition: CpGhostConnection.cpp:36
virtual UtlBoolean isConnection(const char *callId, const char *toTag, const char *fromTag, UtlBoolean strictCompare) const
Definition: CpGhostConnection.cpp:262
virtual UtlBoolean hangUp()
Definition: CpGhostConnection.cpp:150
virtual UtlBoolean renegotiateCodecs()
Definition: CpGhostConnection.cpp:179
virtual UtlBoolean accept(int forwardOnNoAnswerSeconds, const void *pSecurity=NULL, const char *locationHeader=NULL, const int bandWidth=AUDIO_MICODEC_BW_DEFAULT, UtlBoolean sendEarlyMedia=FALSE)
Accept and incoming INVITE and change from OFFERING to ALERTING state.
Definition: CpGhostConnection.cpp:191
virtual UtlBoolean processMessage(OsMsg &eventMessage)
Definition: CpGhostConnection.cpp:201
virtual UtlBoolean reject(int errorCode=0, const char *errorText="")
Definition: CpGhostConnection.cpp:163
virtual ~CpGhostConnection()
Definition: CpGhostConnection.cpp:53
virtual UtlBoolean transferControllerStatus(int connectionState, int cause)
Definition: CpGhostConnection.cpp:115
Definition: CpGhostConnection.h:39
virtual UtlBoolean isSameRemoteAddress(Url &remoteAddress) const
Definition: CpGhostConnection.cpp:271
virtual UtlBoolean offHold()
Definition: CpGhostConnection.cpp:173
virtual UtlBoolean dequeue()
Definition: CpGhostConnection.cpp:69
virtual void getLocalContactAddresses(SIPX_CONTACT_ADDRESS contacts[], size_t nMaxContacts, size_t &nActualContacts)
Enumerate possible contact addresses.
Definition: CpGhostConnection.cpp:233
The CONTACT_ADDRESS structure includes contact information (IP-address and port), address source type...
Definition: sipXtapi.h:640
virtual UtlBoolean redirect(const char *forwardAddress)
Definition: CpGhostConnection.cpp:168
virtual UtlBoolean answer(const void *hWnd=NULL)
Definition: CpGhostConnection.cpp:138