CSIPServerTransaction Class Reference
class CSIPServerTransaction : public CSIPTransactionBase
|
Class for managing SIP server transactions. It provides services for creating, ending and getting SIP transaction parameters. Client cannot instantiate this class.
sipclient
Constructor & Destructor Documentation
CSIPServerTransaction(TUint32, MTransactionAssociation &)
~CSIPServerTransaction()
IMPORT_C
|
~CSIPServerTransaction
|
(
|
)
|
|
Member Functions Documentation
ConstructL(CSIPRequestElements *)
Second phase constructor.
-
Pre-condition
-
aElements!=0
DetachRequestElements(TAny *)
void
|
DetachRequestElements
|
(
|
TAny
*
|
aServerTransaction
|
)
|
[static]
|
Removes, but does not delete, request elements from aServerTransaction.
Parameters
TAny
* aServerTransaction
|
Server transaction from which response elements are removed. Ownership is not transferred.
|
Dialog()
If the request was received inside a dialog, returns the dialog.
NewL(TUint32, MTransactionAssociation &, CSIPRequestElements *)
Creates a server transaction.
NewLC(TUint32, MTransactionAssociation &, CSIPRequestElements *)
Creates a server transaction and pushes it to cleanup stack.
ReAssociateL(MTransactionAssociation &)
RequestElements()
Gets the request elements
ResponseAllowed()
IMPORT_C
TBool
|
ResponseAllowed
|
(
|
)
|
const
|
Checks if the response sending is allowed for this server transaction. For instance response is not allowed in ACK transaction.
SIPConnectionL()
Obtains the associated
CSIPConnection
instance. If connection can't be accessed anymore, this function leaves.
SendResponseL(CSIPResponseElements *)
Sends response and ends the transaction; The user must not send 100 Trying response. Leaves on failure.
-
Pre-condition
-
aElements!=0
-
State()==ETrying || State()==EProceeding
-
CSIPConnection::State()
==EActive
-
ResponseAllowed()
==ETrue
-
leave
-
KErrArgument if aElements == NULL
-
leave
-
KErrGeneral if
ResponseAllowed()
== EFalse
-
leave
-
KErrSIPInvalidTransactionState if State()!=ETrying and State()!=EProceeding
-
leave
-
KErrSIPInvalidDialogState if sending response to a request within dialog, and the dialog is in terminated state.
-
leave
-
KErrSIPResourceNotAvailable if a required SIP Client API object has been deleted
-
capability
-
NetworkServices
Parameters
CSIPResponseElements
* aElements
|
contains Status Code, optional Reason Phrase and optional SIP message headers and body. Ownership is transferred.
|
SetResponseSender(MSIPResponseSender *)
Sets a new respose sender, replacing the current sender.
Parameters
MSIPResponseSender
* aSender
|
Response sender to be used from now on. Ownership is transferred.
|
__DbgTestInvariant()
void
|
__DbgTestInvariant
|
(
|
)
|
const [private]
|
Member Data Documentation
CSIPRequestElements * iRequestElements
MSIPResponseSender * iResponseSender
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.