#include <mw/sipsubscribedialogassoc.h>
Link against: sipclient.lib
class CSIPSubscribeDialogAssoc : public CSIPDialogAssocBase |
Inherited Attributes | |
---|---|
CSIPDialogAssocBase::iImplementation |
Class for managing SIP SUBSCRIBE dialog associations. It provides services for creating, using and terminating SIP SUBSCRIBE dialog associations. The client can have multiple SUBSRIBE dialog associations per same SIP dialog. Implementation handles SUBSCRIBE on the dialog level defined by Call-Id, local and remote tags; "Event" header semantics are client's responsibility
void | ConnectionLost | ( | ) |
void | DeletingRefresh | ( | CSIPRefresh & | aRefresh, |
TUint32 | aRefreshId | |||
) | [virtual] |
Reimplemented from CSIPDialogAssocBase::DeletingRefresh(CSIPRefresh &,TUint32)
CSIPClientTransaction * | DoSendSubscribeL | ( | CSIPMessageElements * | aElements, |
CSIPRefresh * | aRefresh, | |||
TBool | aWithinDialog | |||
) |
CSIPClientTransaction * | DoSendUnsubscribeL | ( | CSIPMessageElements * | aElements | ) |
IMPORT_C const CSIPEventHeader & | Event | ( | ) | const |
Gets an event to which the subscription is done
CSIPRefresh * | FindRefresh | ( | TUint32 | aRefreshId | ) | [virtual] |
Reimplemented from CSIPDialogAssocBase::FindRefresh(TUint32)
IMPORT_C CSIPSubscribeDialogAssoc * | NewL | ( | CSIPDialog & | aDialog, |
CSIPEventHeader * | aEvent | |||
) | [static] |
Parameters | |
---|---|
aDialog | a dialog to be associated with |
aEvent | an event to subscribe to; the ownership is transferred |
Leave Codes | |
---|---|
KErrArgument | if aEvent == 0 |
KErrSIPResourceNotAvailable | if a required SIP Client API object has been deleted |
IMPORT_C CSIPSubscribeDialogAssoc * | NewL | ( | CSIPConnection & | aConnection, |
CSIPFromHeader * | aFrom, | |||
CUri8 * | aRemoteUri, | |||
CSIPEventHeader * | aEvent, | |||
CSIPToHeader * | aTo = 0, | |||
CSIPContactHeader * | aContact = 0 | |||
) | [static] |
aRemoteUri != 0 aEvent != 0 The user of the class must not define tags in From-header and To-header.
Parameters | |
---|---|
aConnection | a SIP connection to be used with dialog association |
aFrom | originator's address; the ownership is transfered |
aRemoteUri | a remote target URI that identifies a resource that the request is addressed to. |
aEvent | an event to subscribe to; the ownership is transferred |
aTo | logical recipient's address; if not defined the remote target uri will be used for To-header construction; the ownership is transfered |
aContact | a contact to be used in dialog creation. Must be given only if user intends to re-direct future requests; the ownership is transfered |
Leave Codes | |
---|---|
KErrArgument | if aFrom == 0, aRemoteUri == 0 or aEvent == 0 |
KErrSIPResourceNotAvailable | if a required SIP Client API object has been deleted |
IMPORT_C CSIPSubscribeDialogAssoc * | NewL | ( | CSIPConnection & | aConnection, |
CUri8 * | aRemoteUri, | |||
const MSIPRegistrationContext & | aContext, | |||
CSIPEventHeader * | aEvent, | |||
CSIPFromHeader * | aFrom = 0, | |||
CSIPToHeader * | aTo = 0, | |||
CSIPContactHeader * | aContact = 0 | |||
) | [static] |
aEvent != 0 The user of the class must not define tags in From-header and To-header. aContext.IsContextActive()==ETrue
Parameters | |
---|---|
aConnection | a SIP connection to be used with dialog association |
aRemoteUri | a remote target URI that identifies a resource that the request is targeted to. |
aContext | used for selecting outbound proxy and originator's address (AOR) and contact |
aEvent | an event to subscribe to; the ownership is transferred |
aFrom | originator's address. If not defined it will be constructed using registration context (User's AOR); the ownership is transfered |
aTo | logical recipient's address; if not defined the remote target uri will be used for To-header construction; the ownership is transfered |
aContact | a contact to be used in dialog creation. Must be given only if user intends to re-direct future requests; the ownership is transfered |
Leave Codes | |
---|---|
KErrArgument | if aRemoteUri == 0 or aEvent == 0 |
KErrSIPInvalidRegistrationState | if aContext.IsContextActive()==EFalse |
KErrSIPResourceNotAvailable | if a required SIP Client API object has been deleted |
IMPORT_C CSIPSubscribeDialogAssoc * | NewLC | ( | CSIPDialog & | aDialog, |
CSIPEventHeader * | aEvent | |||
) | [static] |
Parameters | |
---|---|
aDialog | a dialog to be associated with |
aEvent | an event to subscribe to; the ownership is transferred |
Leave Codes | |
---|---|
KErrArgument | if aEvent == 0 |
KErrSIPResourceNotAvailable | if a required SIP Client API object has been deleted |
IMPORT_C CSIPSubscribeDialogAssoc * | NewLC | ( | CSIPConnection & | aConnection, |
CSIPFromHeader * | aFrom, | |||
CUri8 * | aRemoteUri, | |||
CSIPEventHeader * | aEvent, | |||
CSIPToHeader * | aTo = 0, | |||
CSIPContactHeader * | aContact = 0 | |||
) | [static] |
aRemoteUri != 0 aEvent != 0 The user of the class must not define tags in From-header and To-header.
Parameters | |
---|---|
aConnection | a SIP connection to be used with dialog association |
aFrom | originator's address; the ownership is transfered |
aRemoteUri | a remote target URI that identifies a resource that the request is addressed to. |
aEvent | an event to subscribe to; the ownership is transferred |
aTo | logical recipient's address; if not defined the remote target uri will be used for To-header construction; the ownership is transfered |
aContact | a contact to be used in dialog creation. Must be given only if user intends to re-direct future requests; the ownership is transfered |
Leave Codes | |
---|---|
KErrArgument | if aFrom == 0, aRemoteUri == 0 or aEvent == 0 |
KErrSIPResourceNotAvailable | if a required SIP Client API object has been deleted |
IMPORT_C CSIPSubscribeDialogAssoc * | NewLC | ( | CSIPConnection & | aConnection, |
CUri8 * | aRemoteUri, | |||
const MSIPRegistrationContext & | aContext, | |||
CSIPEventHeader * | aEvent, | |||
CSIPFromHeader * | aFrom = 0, | |||
CSIPToHeader * | aTo = 0, | |||
CSIPContactHeader * | aContact = 0 | |||
) | [static] |
aEvent != 0 The user of the class must not define tags in From-header and To-header. aContext.IsContextActive()==ETrue
Parameters | |
---|---|
aConnection | a SIP connection to be used with dialog association |
aRemoteUri | a remote target URI that identifies a resource that the request is targeted to. |
aContext | used for selecting outbound proxy and originator's address (AOR) and contact |
aEvent | an event to subscribe to; the ownership is transferred |
aFrom | originator's address. If not defined it will be constructed using registration context (User's AOR); the ownership is transfered |
aTo | logical recipient's address; if not defined the remote target uri will be used for To-header construction; the ownership is transfered |
aContact | a contact to be used in dialog creation. Must be given only if user intends to re-direct future requests; the ownership is transfered |
Leave Codes | |
---|---|
KErrArgument | if aRemoteUri == 0 or aEvent == 0 |
KErrSIPInvalidRegistrationState | if aContext.IsContextActive()==EFalse |
KErrSIPResourceNotAvailable | if a required SIP Client API object has been deleted |
CSIPSubscribeDialogAssoc * | NewLC | ( | CSIPConnection & | aConnection, |
CUri8 * | aRemoteUri, | |||
CSIPEventHeader * | aEvent, | |||
CSIPFromHeader * | aFrom, | |||
CSIPToHeader * | aTo, | |||
CSIPContactHeader * | aContact, | |||
const MSIPRegistrationContext * | aContext | |||
) | [static] |
IMPORT_C const CSIPRefresh * | SIPRefresh | ( | ) | const |
Gets associated refresh in case the user has requested the refresh of the SIP subscription. Note that refreshed SUBSCRIBE dialog association cannot be terminated nor updated using the returned object.
IMPORT_C CSIPClientTransaction * | SendSubscribeL | ( | CSIPMessageElements * | aElements = 0, |
CSIPRefresh * | aRefresh = 0 | |||
) |
Creates SUBSCRIBE and sends it to the remote target. 101-199 or 2xx response to SUBSCRIBE will create a dialog association in case of the first SUBSCRIBE request within this dialog. Client must not provide Event-header in the optional message headers.
Dialog().State()==CSIPDialog::EInit || Dialog().State()==CSIPDialog::EConfirmed
Parameters | |
---|---|
aElements | optional SIP message headers and body. Ownership is transferred. |
aRefresh | if set the transaction will be refreshed at given interval. Interval must be defined by including Expires-header. Ownership is transferred. |
Leave Codes | |
---|---|
KErrSIPInvalidDialogState | if |
Capability | |
---|---|
NetworkServices |
IMPORT_C CSIPClientTransaction * | SendUnsubscribeL | ( | CSIPMessageElements * | aElements = 0 | ) |
Dialog().State()==CSIPDialog::EConfirmed
Parameters | |
---|---|
aElements | optional SIP message headers and body. Ownership is transferred. |
Leave Codes | |
---|---|
KErrSIPInvalidDialogState | if |
Capability | |
---|---|
NetworkServices |
IMPORT_C CSIPClientTransaction * | UpdateL | ( | CSIPMessageElements * | aElements | ) |
Dialog().Connection().State()==EActive Dialog().State()==CSIPDialog::EConfirmed
Parameters | |
---|---|
aElements | contains user SIP headers and content; the ownership is transferred |
Leave Codes | |
---|---|
KErrArgument | if aElements == 0 or aElements contain Event-header |
KErrSIPInvalidDialogState | if |
Capability | |
---|---|
NetworkServices |