A SIP Profile Agent plug-in is an ECOM plug-in that is used by the SIP Profile server to register the corresponding SIP profiles. For example, if the SIP Profile type is IETF, the profile server uses the IETF plug-in to register the profile.
In the following illustration, the SIP Profile Agent plug-in implements interfaces, uses APIs, and inherits a class.
The following steps describe how to develop a SIP Profile Agent plug-in.
Derive a profile agent plug-in class from CSIPProfileAgent, which provides an ECOM interface for SIP Profile Agent plug-ins.
Implement the following interfaces in the plug-in class:
MSIPProfileAgentObserver - To receive notifications of profile registration, update and deregister events, and any errors reported while doing these tasks.
MSIPProfileFSMUser - To receive profile state change notifications.
MSIPObserver - To receive SIP requests from the SIP connections that the user does no initialise.
MSIPHttpDigestChallengeObserver2 - To provide HTTP Digest authentication for SIP registrations when an instance of the CSIPHttpDigest class is used.
Derive and implement the following classes in the profile context and connection context classes:
Implement the MSIPProfileContext interface in the profile context class to get and set the information about the profile when it is in a particular state.
Implement the MSIPConnectionObserver interface in the connection context class to receive requests, responses, connection state notifications, and error notifications from the SIP stack.
Implement the MSIPProxyResolverObserver interface to receive notifications about the state of the asynchronous request to resolve proxy.
Derive the profile context and the connection context classes from CBase to create the objects on the heap.
Create instances of the CSIP and CSIPConnection classes, and monitor the states of CSIPConnection object.
Note: SIP Profile registration is performed when the state of CSIPConnection object is CSIPConnection::EActive.
Create instances of the CSIPRegistrationBinding class to perform SIP profile registrations.
Implement the SIP profile registration state machine. The state machine responds to the state changes to CSIPConnection instances and SIP profile registrations.
The following illustration shows the relationship between the SIP Profile Agent plug-in and other components used by it.
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.