sipXcallLib home page


Public Types | Public Member Functions | Private Attributes | Friends | List of all members
PtAddressForwarding Class Reference

#include <PtAddressForwarding.h>

Public Types

enum  ForwardingType { FORWARD_UNCONDITIONALLY = 1, FORWARD_ON_BUSY = 2, FORWARD_ON_NOANSWER = 3 }
 
enum  FilterType { ALL_CALLS = 1, INTERNAL_CALLS = 2, EXTERNAL_CALLS = 3, SPECIFIC_ADDRESS = 4 }
 enumcode: FORWARD_UNCONDITIONALLY - Forward calls unconditionally enumcode: FORWARD_ON_BUSY - Forward calls on busy enumcode: FORWARD_ON_NOANSWER - Forward calls on no answer More...
 

Public Member Functions

 PtAddressForwarding ()
 enumcode: ALL_CALLS - Apply forwarding instruction to all incoming calls enumcode: INTERNAL_CALLS - Apply instruction to calls originating within the provider's domain enumcode: EXTERNAL_CALLS - Apply instruction to calls originating from outside the provider's domain enumcode: SPECIFIC_ADDRESS - Apply instruction to calls originating from a specific address More...
 
 PtAddressForwarding (const char *destinationURL, int type=FORWARD_UNCONDITIONALLY, int noAnswerTimeout=0)
 
 PtAddressForwarding (const char *destinationURL, int type, PtBoolean internalCalls, int noAnswerTimeout)
 param: destinationURL - Destination address URL for the call forwarding operation param: type - Forwarding instruction type param: noAnswerTimeout - Timeout value for forwarding on no answer default 0 means 24 seconds More...
 
 PtAddressForwarding (const char *destinationURL, int type, const char *callerURL, int noAnswerTimeout)
 param: destinationURL - Destination address URL for the call forwarding operation param: type - Forwarding instruction type param: internalCalls - If TRUE, forward only internal calls, otherwise forward only external calls param: noAnswerTimeout - Timeout value for forwarding on no answer More...
 
 PtAddressForwarding (const char *destinationURL, int type, int filterType, const char *callerURL, int noAnswerTimeout)
 param: destinationURL - Destination address URL for the call forwarding operation param: type - Forwarding instruction type param: callerURL - The URL for the incoming caller address that this forward operation affects param: noAnswerTimeout - Timeout value for forwarding on no answer More...
 
 PtAddressForwarding (const PtAddressForwarding &rPtAddressForwarding)
 param: destinationURL - Destination address URL for the call forwarding operation param: type - Forwarding instruction type param: filterType - Forwarding filter type param: callerURL - The URL for the incoming caller address that this forward operation affects param: noAnswerTimeout - Timeout value for forwarding on no answer More...
 
virtual ~PtAddressForwarding ()
 
PtAddressForwardingoperator= (const PtAddressForwarding &rhs)
 
PtBoolean operator== (const PtAddressForwarding &rhs)
 
PtStatus getDestinationAddress (char *address, int len)
 
PtStatus getFilter (int &filterType)
 
PtStatus getSpecificCaller (char *address, int len)
 
PtStatus getType (int &type)
 
PtStatus getNoAnswerTimeout (int &time)
 

Private Attributes

int mForwardingType
 
int mNoAnswerTimeout
 
int mFilterType
 
UtlString mDestinationUrl
 
UtlString mCallerUrl
 

Friends

class PtAddress
 
class CpCallManager
 
TaoStatus TaoAddressAdaptor::addressSetForwarding (TaoMessage &rMsg)
 

Member Enumeration Documentation

enum FilterType

enumcode: FORWARD_UNCONDITIONALLY - Forward calls unconditionally enumcode: FORWARD_ON_BUSY - Forward calls on busy enumcode: FORWARD_ON_NOANSWER - Forward calls on no answer

Enumerator
ALL_CALLS 
INTERNAL_CALLS 
EXTERNAL_CALLS 
SPECIFIC_ADDRESS 
Enumerator
FORWARD_UNCONDITIONALLY 
FORWARD_ON_BUSY 
FORWARD_ON_NOANSWER 

Constructor & Destructor Documentation

enumcode: ALL_CALLS - Apply forwarding instruction to all incoming calls enumcode: INTERNAL_CALLS - Apply instruction to calls originating within the provider's domain enumcode: EXTERNAL_CALLS - Apply instruction to calls originating from outside the provider's domain enumcode: SPECIFIC_ADDRESS - Apply instruction to calls originating from a specific address

PtAddressForwarding ( const char *  destinationURL,
int  type = FORWARD_UNCONDITIONALLY,
int  noAnswerTimeout = 0 
)
PtAddressForwarding ( const char *  destinationURL,
int  type,
PtBoolean  internalCalls,
int  noAnswerTimeout 
)

param: destinationURL - Destination address URL for the call forwarding operation param: type - Forwarding instruction type param: noAnswerTimeout - Timeout value for forwarding on no answer default 0 means 24 seconds

PtAddressForwarding ( const char *  destinationURL,
int  type,
const char *  callerURL,
int  noAnswerTimeout 
)

param: destinationURL - Destination address URL for the call forwarding operation param: type - Forwarding instruction type param: internalCalls - If TRUE, forward only internal calls, otherwise forward only external calls param: noAnswerTimeout - Timeout value for forwarding on no answer

PtAddressForwarding ( const char *  destinationURL,
int  type,
int  filterType,
const char *  callerURL,
int  noAnswerTimeout 
)

param: destinationURL - Destination address URL for the call forwarding operation param: type - Forwarding instruction type param: callerURL - The URL for the incoming caller address that this forward operation affects param: noAnswerTimeout - Timeout value for forwarding on no answer

PtAddressForwarding ( const PtAddressForwarding rPtAddressForwarding)

param: destinationURL - Destination address URL for the call forwarding operation param: type - Forwarding instruction type param: filterType - Forwarding filter type param: callerURL - The URL for the incoming caller address that this forward operation affects param: noAnswerTimeout - Timeout value for forwarding on no answer

~PtAddressForwarding ( )
virtual

Member Function Documentation

PtStatus getDestinationAddress ( char *  address,
int  len 
)
PtStatus getFilter ( int &  filterType)
PtStatus getNoAnswerTimeout ( int &  time)
PtStatus getSpecificCaller ( char *  address,
int  len 
)
PtStatus getType ( int &  type)
PtAddressForwarding & operator= ( const PtAddressForwarding rhs)
PtBoolean operator== ( const PtAddressForwarding rhs)

Friends And Related Function Documentation

friend class CpCallManager
friend
friend class PtAddress
friend

Member Data Documentation

UtlString mCallerUrl
private
UtlString mDestinationUrl
private
int mFilterType
private
int mForwardingType
private
int mNoAnswerTimeout
private