|
||||||||
RegistrarServletOverviewThe SIP servlet that handles a REGISTER message from a user agent (UA). RegistrarServlet is an SIP servlet that implements the registration server (registrar) function defined in RFC3261. Note that the current version of this SIP proxy servlet does not fully conform to RFC3261. RegistrarServlet provides the following as the main function.
RegistrarServlet uses the authentication function provided by SIP Servlet Engine when authenticating. See the example shown below. Initialization ParametersThe following table lists the initialization parameters you can set in RegistrarServlet.
External InterfacesRegistrarServlet uses the following SPI:
Related FileThe RegistrarServlet setting should be defined in the sip.xml. ExampleHere is an example of the sip.xml. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sip-app PUBLIC "-//Java Community Process//DTD SIP Application 1.0//EN" "http://www.jcp.org/dtd/sip-app_1_0.dtd"> <sip-app> <display-name>SIP Servlet based Registrar</display-name> <servlet> <servlet-name>registrar</servlet-name> <servlet-class>com.oki.sip.apps.registrar.RegistrarServlet</servlet-class> <init-param> <param-name>exclusive</param-name> <param-value>true</param-value> </init-param> <load-on-startup/> </servlet> <servlet-mapping> <servlet-name>registrar</servlet-name> <pattern> <equal> <var>request.method</var> <value>REGISTER</value> </equal> </pattern> </servlet-mapping> <session-config> <session-timeout>1</session-timeout> </session-config> <security-constraint> <display-name>DEMO Constraint</display-name> <resource-collection> <resource-name>Demo constraint</resource-name> <description>This constraint is for Demo-application</description> <servlet-name>registrar</servlet-name> </resource-collection> <auth-constraint> <role-name>sipuser</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>DIGEST</auth-method> <realm-name>oki.com</realm-name> </login-config> <security-role> <description>Default SIP User</description> <role-name>sipuser</role-name> </security-role> </sip-app> ReferenceLast Modified:Tue Dec 28 14:11:54 JST 2004 |
||||||||
|