CSIPServerTransaction Class Reference
#include
<mw/sipservertransaction.h>
class CSIPServerTransaction : public CSIPTransactionBase |
Detailed Description
Class for managing SIP server transactions. It provides services for creating, ending and getting SIP transaction parameters. Client cannot instantiate this class.
Constructor & Destructor Documentation
~CSIPServerTransaction ( )
IMPORT_C | ~CSIPServerTransaction | ( | ) | |
Member Function Documentation
DetachRequestElements ( TAny * )
void | DetachRequestElements | ( | TAny * | aServerTransaction | ) | [static] |
Removes, but does not delete, request elements from aServerTransaction.
Parameter | Description | 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.
Returns: CSIPDialogImplementation* The dialog inside which the request was received, or NULL. Ownership is not transferred.
NewL ( TUint32, MTransactionAssociation &, CSIPRequestElements * )
Creates a server transaction.
Parameter | Description | aRequestId | RequestId for the transaction to use |
aAssociation | Object with which the transaction is associated |
aElements | Request elements. Ownership is transferred. |
Returns: New object. Ownership is transferred.
NewLC ( TUint32, MTransactionAssociation &, CSIPRequestElements * )
Creates a server transaction and pushes it to cleanup stack.
Parameter | Description | aRequestId | RequestId for the transaction to use |
aAssociation | Object with which the transaction is associated |
aElements | Request elements. Ownership is transferred. |
Returns: New object. Ownership is transferred.
ReAssociateL ( MTransactionAssociation & )
Parameter | Description | aAssociation | Associated object |
RequestElements ( )
Gets the request elements
Returns: Request elements. Ownership is not transferred.
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.
Returns: ETrue if response sending is allowed, EFalse otherwise
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
Parameter | Description | 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.
Parameter | Description | aSender | Response sender to be used from now on. Ownership is transferred. |