
# Select location service implementation.
# If "usejdbclocation" property is true, JDBC location service will be deployed.
# Default is to use Activity Context Naming implementation.
usejdbclocation=true
The PostgreSQL database that was configured during the SLEE installation is already setup to act as the repository for a JDBC
Location Service.
Note. The table is removed and recreated every time the
$RHINO_NODE_HOME/init-management-db.sh
script is exe-
cuted.
This table stores a record for each contact address that the user currently has registered. To use another database for the location
service, configure the database with a simple schema. A single table by the name of “registrations” is required. The SQL
fragment below shows how to create the table:
create table registrations (
sipaddress varchar(80) not null,
contactaddress varchar(80) not null,
expiry bigint,
qvalue integer,
cseq integer,
callid varchar(80),
primary key (sipaddress, contactaddress)
);
COMMENT ON TABLE registrations IS ’SIP Location Service registrations’;
The JDBC Location Service will automatically update the registrations table when the SIP Registrar Service receives a success-
ful REGISTER request. No further database administration is required.
The PostgreSQL database that was configured for the Rhino SLEE installation already contains this table.
22.5.4 Installing the Registrar Service
To install the SIP Registrar Service, first ensure the SLEE is running. Then go to the SIP examples directory and execute the
Ant target
deployregistrar
:
user@host:~/rhino/examples/sip$ ant deployregistrar
Buildfile: build.xml
init:
compile-sip-examples:
sip-ac-location:
[sbbjar] Building sbb-jar: /home/users/rhino/examples/sip/jars/ac-location-sbb.jar
[deployablejar] Building deployable-unit-jar: /home/users/rhino/examples/sip/jars/sip-ac-locat
ion-service.jar
[delete] Deleting: /home/users/rhino/examples/sip/jars/ac-location-sbb.jar
sip-jdbc-location:
[sbbjar] Building sbb-jar: /home/users/rhino/examples/sip/jars/jdbc-location-sbb.jar
[deployablejar] Building deployable-unit-jar: /home/users/rhino/examples/sip/jars/sip-jdbc-loc
ation-service.jar
[delete] Deleting: /home/users/rhino/examples/sip/jars/jdbc-location-sbb.jar
Open Cloud Rhino 1.4.3 Administration Manual v1.1 138
Comentarios a estos manuales