BEA WebLogic SIP Server findme Example
The following sections describe the findme example that is installed with WebLogic SIP Server 2.1.
The WebLogic findme example provides registration, proxy, and conference calling capabilities for SIP addresses. You can register multiple SIP phone addresses with the findme application and initiate conference calls via a JSP.
findme is implemented as a SIP application that contains three SIP Servlets:
The multiple Servlets are assembled as a SIP application, and Servlet mappings are defined, using the sip.xml descriptor.
findme also provides several JSPs that are used to interact with the included Servlets, as described in Files Used in the Example.
File |
Description |
---|---|
src/FindMe.java | Java source file for a SIP Servlet for proxying INVITE requests. |
src/Registrar.java | Java source file for a SIP Servlet that registers SIP addresses in response to REGISTER requests, removes registered addresses after the timeout specified by the phone, and resolves addresses as needed to proxy SIP INVITE requests. |
src/Conference.java | Java source file for a SIP Servlet that sets up conference calls for registered SIP addresses. |
src/dump.jsp | JavaServer Page that displays a list of registered SIP addresses. This JSP interacts with the Registrar.java Servlet. |
src/conf.jsp | JavaServer Page for selecting registered users to invite to a conference call. This Servlet gets the addresses to use for setting up the call. |
src/conf_setup.jsp | Non-interactive JavaServer Page that posts the addresses obtained with conf.jsp, using the Conference.java Servlet to set up and connect the addresses in a conference call. |
WEB-INF/sip.xml |
SIP descriptor that defines the components of the SIP application as well as the Servlet mapping. |
WEB-INF/web.xml | Web Application deployment descriptor. |
WEB-INF/weblogic.xml | WebLogic Web Application deployment descriptor. |
build.xml | Ant build script. |
Before working with this example:
If you want to deploy the findme example to a cluster of engine tier servers, you must configure the domain to support the example's RDBMS-based registration services (as opposed to the local registration used in single-server deployments). The configuration prerequisites include defining a new JDBC connection pool and also create a new table in your RDBMS with the required findme schema. Follow these steps:
findme
example requires that a database user named "system" has privileges to access the database.findme
example requires a password of "weblogic" for the database user. create table findme
( callid VARCHAR2(100),
username VARCHAR2(100),
host VARCHAR2(100),
port NUMBER(20),
registration LONG RAW
);
The findme example requires no additional server configuration.
Note: The pre-built findme example is automatically installed with WebLogic SIP Server 2.1. Follow these instructions to rebuild the example after modifying the code:
cd c:\bea\user_projects\domains\mydomain setEnv.cmd
ant build
The findme example is automatically deployed to the example domain you can create using the Configuration Wizard (see Creating a New SIP Server Domain). The example build.xml file contains a deploy target that you can use to deploy the example to a new domain. By default, the target is setup to deploy using the following attributes:
<target name="deploy">
<wldeploy action="deploy"
source="../../build/findme"
name="findme"
user="system"
password="weblogic"
verbose="true"
nostage="true"
adminurl="t3://localhost:7001"
targets="myserver"
/>
</target>
To deploy the example to a different domain, open build.xml in a text editor and change the user, password, adminurl, and targets attributes accordingly. Then deploy using the command:
ant deploy
This command deploys the exploded example application directly from the build subdirectory. To redeploy the application, use the command:
ant redeploy
Note: After you redeploy the findme example, you must restart SIP soft phones to register them with the updated application.
The findme example is compatible with the X-Lite, X-PRO, and Pingtel SIP soft phones. The Pingtel SIP phone does not require registration services.
Follow these instructions to register a free X-Lite SIP phone with the findme application:
Note: After you redeploy the findme example, you must restart SIP soft phones to register them with the updated application.
To run the example, follow these steps: