#include <PtConnection.h>
Public Types | |
enum | ConnectionState { IDLE = 0x50, OFFERED = 0x51, QUEUED = 0x52, ALERTING = 0x53, INITIATED = 0x54, DIALING = 0x55, NETWORK_REACHED = 0x56, NETWORK_ALERTING = 0x57, ESTABLISHED = 0x58, DISCONNECTED = 0x59, FAILED = 0x5A, UNKNOWN = 0x5B } |
Public Member Functions | |
PtConnection () | |
PtConnection (TaoClientTask *pClient, const char *address, const char *callId) | |
PtConnection (const PtConnection &rPtConnection) | |
PtConnection & | operator= (const PtConnection &rhs) |
PtConnection (const char *address, const char *callId) | |
virtual | ~PtConnection () |
virtual PtStatus | accept (void) |
virtual PtStatus | disconnect (void) |
retcode: PT_SUCCESS - Success retcode: PT_INVALID_STATE - Connection was not in either the OFFERED or ALERTING states. retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available More... | |
virtual PtStatus | park (char *destinationURL, PtConnection &rNewConnection) |
retcode: PT_SUCCESS - Success retcode: PT_INVALID_STATE - Connection was not in an appropriate state for this call. retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available More... | |
virtual PtStatus | redirect (char *destinationURL, PtConnection &rNewConnection) |
param: (in) destinationURL - The destination URL where the call should be parked. param: (out) rpNewConnection - Set to point to the PtConnection representing the destination where the call was parked. retcode: PT_SUCCESS - Success retcode: PT_INVALID_STATE - Connection was not in an appropriate state for this call. retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available More... | |
virtual PtStatus | reject (void) |
param: (in) destinationURL - The destination URL where the call should be redirected. param: (out) rpNewConnection - Set to point to the PtConnection representing the redirect destination. retcode: PT_SUCCESS - Success retcode: PT_INVALID_STATE - Connection was not in either the OFFERED or ALERTING states. retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available More... | |
virtual PtStatus | getAddress (PtAddress &rAddress) |
retcode: PT_SUCCESS - Success retcode: PT_INVALID_STATE - Connection was not in either the OFFERED or ALERTING states. retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available More... | |
virtual PtStatus | getCall (PtCall &rCall) |
param: (out) rpAddress - Pointer to the address object corresponding to this connection retcode: PT_SUCCESS - Success retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available More... | |
virtual PtStatus | getSessionInfo (PtSessionDesc &rSession) |
param: (out) rpCall - Pointer to the call object corresponding to this connection retcode: PT_SUCCESS - Success retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available More... | |
virtual PtStatus | getState (int &rState) |
param: (out) rSession - Set to the current session of the connection retcode: PT_SUCCESS - Success retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available More... | |
virtual PtStatus | getTerminalConnections (PtTerminalConnection termConnections[], int size, int &nItems) |
param: (out) rState - Set to the current state of the connection retcode: PT_SUCCESS - Success retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available More... | |
virtual PtStatus | numTerminalConnections (int &count) |
param: (out) termConnections - The array of PtTerminalConnection pointers param: (in) size - The number of elements in the termConnections array param: (out) nItems - The number of items assigned retcode: PT_SUCCESS - Success retcode: PT_MORE_DATA - There are more than size terminal connections retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available More... | |
virtual PtStatus | getToField (char *pName, int len) |
param: (out) count - The number of terminal connections associated with this connection retcode: PT_SUCCESS - Success retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available More... | |
virtual PtStatus | getFromField (char *pName, int len) |
param: (in) len - length of the string to store the To field More... | |
Protected Member Functions | |
void | initialize () |
Protected Attributes | |
UtlString | mAddress |
UtlString | mCallId |
int | mState |
PtConnection * | mpConnection |
TaoClientTask * | mpClient |
OsTime | mTimeOut |
Static Protected Attributes | |
static OsBSem | semInit |
static TaoReference * | mpTransactionCnt = 0 |
static unsigned int | mRef = 0 |
Private Attributes | |
OsProtectEventMgr * | mpEventMgr |
Friends | |
class | PtConnectionEvent |
param: (in) len - length of the string to store the From field More... | |
enum ConnectionState |
PtConnection | ( | ) |
PtConnection | ( | TaoClientTask * | pClient, |
const char * | address, | ||
const char * | callId | ||
) |
PtConnection | ( | const PtConnection & | rPtConnection | ) |
PtConnection | ( | const char * | address, |
const char * | callId | ||
) |
|
virtual |
|
virtual |
|
virtual |
retcode: PT_SUCCESS - Success retcode: PT_INVALID_STATE - Connection was not in either the OFFERED or ALERTING states. retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available
retcode: PT_SUCCESS - Success retcode: PT_INVALID_STATE - Connection was not in either the OFFERED or ALERTING states. retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available
param: (out) rpAddress - Pointer to the address object corresponding to this connection retcode: PT_SUCCESS - Success retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available
|
virtual |
param: (in) len - length of the string to store the To field
|
virtual |
param: (out) rpCall - Pointer to the call object corresponding to this connection retcode: PT_SUCCESS - Success retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available
|
virtual |
param: (out) rSession - Set to the current session of the connection retcode: PT_SUCCESS - Success retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available
|
virtual |
param: (out) rState - Set to the current state of the connection retcode: PT_SUCCESS - Success retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available
|
virtual |
param: (out) count - The number of terminal connections associated with this connection retcode: PT_SUCCESS - Success retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available
|
protected |
|
virtual |
param: (out) termConnections - The array of PtTerminalConnection pointers param: (in) size - The number of elements in the termConnections array param: (out) nItems - The number of items assigned retcode: PT_SUCCESS - Success retcode: PT_MORE_DATA - There are more than size terminal connections retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available
PtConnection & operator= | ( | const PtConnection & | rhs | ) |
|
virtual |
retcode: PT_SUCCESS - Success retcode: PT_INVALID_STATE - Connection was not in an appropriate state for this call. retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available
|
virtual |
param: (in) destinationURL - The destination URL where the call should be parked. param: (out) rpNewConnection - Set to point to the PtConnection representing the destination where the call was parked. retcode: PT_SUCCESS - Success retcode: PT_INVALID_STATE - Connection was not in an appropriate state for this call. retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available
|
virtual |
param: (in) destinationURL - The destination URL where the call should be redirected. param: (out) rpNewConnection - Set to point to the PtConnection representing the redirect destination. retcode: PT_SUCCESS - Success retcode: PT_INVALID_STATE - Connection was not in either the OFFERED or ALERTING states. retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available
|
friend |
param: (in) len - length of the string to store the From field
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
staticprotected |