CSIPDialog Class Reference

class CSIPDialog : public CBase

Class for managing SIP dialogs. It provides services querying dialog state, obtaining the dialog related SIP headers and getting all dialog associations.

The user of the class cannot instantiate this class. sipclient

Inherits from

Constructor & Destructor Documentation

CSIPDialog()

CSIPDialog()[private]

~CSIPDialog()

~CSIPDialog()

Destructor

Member Functions Documentation

CallIdL()

IMPORT_C const CSIPCallIDHeader &CallIdL()const
Gets Call-ID of SIP dialog
Pre-condition
State()==CSIPDialogEEarly || State()==CSIPDialogEConfirmed
leave
KErrSIPInvalidDialogState if dialog doesn't yet have a Call-ID

Connection()

IMPORT_C CSIPConnection *Connection()

Gets the SIP connection used for this dialog

Connection()

IMPORT_C const CSIPConnection *Connection()const

Gets the SIP connection used for this dialog.

ConstructL(CSIPConnectionImplementation &)

voidConstructL(CSIPConnectionImplementation &aConnImplementation)[private]

Parameters

CSIPConnectionImplementation & aConnImplementation

ConstructL(CSIPConnectionImplementation &, const MSIPRegistrationContext &)

voidConstructL(CSIPConnectionImplementation &aConnImplementation,
const MSIPRegistrationContext &aContext
)[private]

Parameters

CSIPConnectionImplementation & aConnImplementation
const MSIPRegistrationContext & aContext

FromHeader()

IMPORT_C const CSIPFromHeader &FromHeader()const

Gets originator's address

Implementation()

CSIPDialogImplementation &Implementation()

IsAssociated(const CSIPDialogAssocBase &)

IMPORT_C TBoolIsAssociated(const CSIPDialogAssocBase &aDialogAssoc)const

Checks if the dialog association belongs to this dialog

Parameters

const CSIPDialogAssocBase & aDialogAssoca dialog association

NewL(CSIPConnectionImplementation &)

CSIPDialog *NewL(CSIPConnectionImplementation &aConnImplementation)[static]

Two-phased constructor. This constructor should be used if the user has received SIP request that creates a SIP dialog association.

Parameters

CSIPConnectionImplementation & aConnImplementationImplementation of the used SIP connection

NewL(CSIPConnectionImplementation &, const MSIPRegistrationContext &)

CSIPDialog *NewL(CSIPConnectionImplementation &aConnImplementation,
const MSIPRegistrationContext &aContext
)[static]

Two-phased constructor This constructor should be used if the user has received SIP request that creates a SIP dialog association.

Parameters

CSIPConnectionImplementation & aConnImplementationImplementation of the used SIP connection
const MSIPRegistrationContext & aContextRegistration context whose outbound proxy and other parameters are to be used.

NewLC(CSIPConnectionImplementation &)

CSIPDialog *NewLC(CSIPConnectionImplementation &aConnImplementation)[static]

Two-phased constructor This constructor should be used if the user has received SIP request that creates a SIP dialog association.

Parameters

CSIPConnectionImplementation & aConnImplementationImplementation of the used SIP connection

NewLC(CSIPConnectionImplementation &, const MSIPRegistrationContext &)

CSIPDialog *NewLC(CSIPConnectionImplementation &aConnImplementation,
const MSIPRegistrationContext &aContext
)[static]

Two-phased constructor This constructor should be used if the user has received SIP request that creates a SIP dialog association.

Parameters

CSIPConnectionImplementation & aConnImplementationImplementation of the used SIP connection
const MSIPRegistrationContext & aContextRegistration context whose outbound proxy and other parameters are to be used.

RegistrationContext()

IMPORT_C const MSIPRegistrationContext *RegistrationContext()const

Gets used registration context for this dialog

RemoteURI()

IMPORT_C const CUri8 &RemoteURI()const

Gets remote-uri used during dialog creation

ReuseInitialRequestData()

IMPORT_C TIntReuseInitialRequestData()
Sets the dialog to state to CSIPDialog::EInit. The local dialog identifier data (Call-ID, CSeq and From-header's tag) will be reused. After calling this function, the dialog that was already terminated can be used for sending the dialog initiating request such as INVITE or SUBSCRIBE reusing the stored Call-ID and From-header's tag and the stored CSeq incremented by one.
Pre-condition
State()==CSIPDialogETerminated

SIPDialogAssociations()

IMPORT_C const RPointerArray< CSIPDialogAssocBase > &SIPDialogAssociations()const

Gets all dialog associations.

State()

IMPORT_C CSIPDialog::TStateState()const

Gets dialog state

ToHeader()

IMPORT_C const CSIPToHeader &ToHeader()const

Gets recipient's address

__DbgTestInvariant()

void__DbgTestInvariant()const [private]

operator==(const CSIPDialog &)

IMPORT_C TBooloperator==(const CSIPDialog &aDialog)const

Compares this object to another object

Parameters

const CSIPDialog & aDialogCSIPDialog object to compare

Member Enumerations Documentation

Enum TState

Dialog states

Enumerators

EInit

Initiliazed state

EEarly

Early state

EConfirmed

Confirmed state

ETerminated

Terminated state

Member Data Documentation

CSIPDialogImplementation * iImplementation

CSIPDialogImplementation *iImplementation[private]