#include <mw/sipservertransaction.h>
Link against: sipclient
class CSIPServerTransaction : public CSIPTransactionBase |
Public Member Functions | |
---|---|
~CSIPServerTransaction() | |
void | DetachRequestElements(TAny *) |
CSIPDialogImplementation * | Dialog() |
CSIPServerTransaction * | NewL(TUint32, MTransactionAssociation &, CSIPRequestElements *) |
CSIPServerTransaction * | NewLC(TUint32, MTransactionAssociation &, CSIPRequestElements *) |
void | ReAssociateL(MTransactionAssociation &) |
IMPORT_C const CSIPRequestElements * | RequestElements() |
IMPORT_C TBool | ResponseAllowed() |
CSIPConnection & | SIPConnectionL() |
IMPORT_C void | SendResponseL(CSIPResponseElements *) |
void | SetResponseSender(MSIPResponseSender *) |
Inherited Attributes | |
---|---|
CSIPTransactionBase::iAssociation | |
CSIPTransactionBase::iRequestId |
Inherited Enumerations | |
---|---|
CSIPTransactionBase:TState |
Class for managing SIP server transactions. It provides services for creating, ending and getting SIP transaction parameters. Client cannot instantiate this class.
void | DetachRequestElements | ( | TAny * | aServerTransaction | ) | [static] |
Removes, but does not delete, request elements from aServerTransaction.
Parameters | |
---|---|
aServerTransaction | Server transaction from which response elements are removed. Ownership is not transferred. |
CSIPDialogImplementation * | Dialog | ( | ) | const |
If the request was received inside a dialog, returns the dialog.
CSIPServerTransaction * | NewL | ( | TUint32 | aRequestId, |
MTransactionAssociation & | aAssociation, | |||
CSIPRequestElements * | aElements | |||
) | [static] |
Creates a server transaction.
Parameters | |
---|---|
aRequestId | RequestId for the transaction to use |
aAssociation | Object with which the transaction is associated |
aElements | Request elements. Ownership is transferred. |
CSIPServerTransaction * | NewLC | ( | TUint32 | aRequestId, |
MTransactionAssociation & | aAssociation, | |||
CSIPRequestElements * | aElements | |||
) | [static] |
Creates a server transaction and pushes it to cleanup stack.
Parameters | |
---|---|
aRequestId | RequestId for the transaction to use |
aAssociation | Object with which the transaction is associated |
aElements | Request elements. Ownership is transferred. |
void | ReAssociateL | ( | MTransactionAssociation & | aAssociation | ) |
Update the MTransactionAssociation to point to aAssociation.
Parameters | |
---|---|
aAssociation | Associated object |
IMPORT_C const CSIPRequestElements * | RequestElements | ( | ) | const |
Gets the request elements
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.
CSIPConnection & | SIPConnectionL | ( | ) |
Obtains the associated CSIPConnection instance. If connection can't be accessed anymore, this function leaves.
IMPORT_C void | SendResponseL | ( | CSIPResponseElements * | aElements | ) |
State()==ETrying || State()==EProceeding CSIPConnection::State()==EActive ResponseAllowed()==ETrue
Parameters | |
---|---|
aElements | contains Status Code, optional Reason Phrase and optional SIP message headers and body. Ownership is transferred. |
Leave Codes | |
---|---|
KErrArgument | if aElements == NULL |
KErrGeneral | if |
KErrSIPInvalidTransactionState | if State()!=ETrying and State()!=EProceeding |
KErrSIPInvalidDialogState | if sending response to a request within dialog, and the dialog is in terminated state. |
KErrSIPResourceNotAvailable | if a required SIP Client API object has been deleted |
Capability | |
---|---|
NetworkServices |