Corporation Server User Manual
iv
Setting and Accessing Global Init Parameters............................................................................ 2-13
Configuring Application Sessions ................................................................................................ 2-13
Defining a Servlet............................................................................................................................ 2-14
Defining the Servlet Mapping....................................................................................................... 2-14
Creating Rules Using the Request Object Structure ........................................................... 2-15
Conditions................................................................................................................................. 2-16
Examples ................................................................................................................................... 2-16
SIP Servlets in OCMS .......................................................................................................................... 2-18
Handling Initial Requests .............................................................................................................. 2-18
Implementation Decisions ............................................................................................................. 2-19
Protocol Sessions...................................................................................................................... 2-20
Extended doRequest Methods ............................................................................................... 2-20
Asynchronous Send................................................................................................................. 2-20
Multi-Threading.............................................................................................................................. 2-20
Sip Servlet API Javadoc.................................................................................................................. 2-20
External Access to SIP Servlets...................................................................................................... 2-20
OCMS Authentication and Login Modules ................................................................................ 2-21
3 Advanced SIP Servlet Configuration
Using the appId Parameter to Set Addresses for SIP Applications ............................................... 3-1
Configuring the appId Parameter.................................................................................................... 3-2
Adding Deployed Applications to the SipUriList Attribute ................................................ 3-3
Configuring Application Security ........................................................................................................ 3-4
4 Programming Guidelines
Introduction............................................................................................................................................... 4-1
Marking Applications as Distributable............................................................................................... 4-1
Storing Data in Application Sessions .................................................................................................. 4-2
Avoiding Static Data................................................................................................................................ 4-2
Avoiding Blocking Calls ......................................................................................................................... 4-2
Invalidating the SipApplicationSession and SIPSession ................................................................ 4-2
Monitoring the Memory Usage ............................................................................................................. 4-2
Avoiding Storing Shared Resources in Sessions ............................................................................... 4-2
Avoiding Creating Threads .................................................................................................................... 4-2
Creating B2BUA Applications ............................................................................................................... 4-2
5 Building a SIP Servlet Application
Prerequisites.............................................................................................................................................. 5-1
SIP Application Development Process ................................................................................................ 5-2
Creating a New Dynamic Web Project with SIP Support ................................................................ 5-3
Importing an Existing Project ................................................................................................................ 5-3
Importing Example Projects ................................................................................................................... 5-4
Importing the Basic Response SIP Application Example Project................................................ 5-5
Importing the Call Forward SIP Application Example Project................................................... 5-5
Importing the Message Sender SIP/Web Converged Application Example Project............... 5-6
Importing the Proxy/Registrar Example Project .......................................................................... 5-6