12 #ifndef _CpGatewayManager_h_ 13 #define _CpGatewayManager_h_ 19 #include <os/OsServerTask.h> 76 OsStatus
connect(
const char* callId,
77 const char* fromAddressUrl,
78 const char* fromTerminalName,
79 const char* toAddressUrl);
89 OsStatus
answer(
const char* callId,
const char* terminalName);
97 const char* connectionAddressUrl);
122 #endif // _CpGatewayManager_h_ void getNewCallId(UtlString &callId)
param: (in) terminalName - the terminalName with which the interface is to work. param: (in) pInterfa...
Definition: CpGatewayManager.cpp:56
virtual ~CpGatewayManager()
Definition: CpGatewayManager.cpp:39
OsStatus disconnectConnection(const char *callId, const char *connectionAddressUrl)
param: callId - identifies an existing incomming call. param: terminalName - this should be a valid g...
Definition: CpGatewayManager.cpp:74
OsStatus answer(const char *callId, const char *terminalName)
param: (in) callId - must refer to an existing call or a valid callId from getNewCallId. In the latter case a new call will be created. param: (in) fromAddressUrl - the originating terminal url. Note: this should be validated if it is used in conjuction with the provider or proxy server. param: (in) fromTerminalname - this should be a valid gateway terminal having a registered (via setGatewayInterface) PtGatewayInterface. param: (in) toAddressUrl - destination url. Note: in general this cannot be validated as the call may be to an address which is outside the domain of the provider. retcode: OS_SUCCESS - the callId is valid and an attempt will be made to connect the call. This does not indicate that the connect was successful or completed. retcode: OS_INVALID_ARGUMENT - the call indicated by callId previously existed, but was in an invalid state to connect a call.
Definition: CpGatewayManager.cpp:68
CpGatewayManager()
Definition: CpGatewayManager.cpp:29
CpGatewayManager & operator=(const CpGatewayManager &rhs)
Definition: CpGatewayManager.cpp:82
OsStatus setGatewayInterface(const char *terminalName, PtGatewayInterface *pInterface)
Definition: CpGatewayManager.cpp:50
Definition: PtGatewayInterface.h:76
Definition: CpGatewayManager.h:33
static CpGatewayManager * getCpGatewayManager()
Definition: CpGatewayManager.cpp:45
OsStatus connect(const char *callId, const char *fromAddressUrl, const char *fromTerminalName, const char *toAddressUrl)
Definition: CpGatewayManager.cpp:60
UtlBoolean gatewayInterfaceExists(const char *terminalName)
param: (in) callId - the handle indicating which call contains the connection to disconnect. param: (in) connectionAddressUrl - indicates which leg of the call is to be disconnected. retcode: OS_SUCCESS - the callId and connectionAddressUrl are valid and an attempt will be made to disconnect the connection. This does not indicate that the disconnect was successful or completed. retcode: OS_INVALID_ARGUMENT - the call indicated by callId or the connection indicated by connectionAddressUrl does not exist.
Definition: CpGatewayManager.cpp:92