We present here the installation steps for the LoST server implementation developed by by Wonsang Song in order to be interfaced with the LRF component of the Open IMS Core.
The steps to download and install the necessary components are:
The database will contain sample data for mapping location information (civic or geodetic) and name of service (e.g. "urn:service:sos.police") from an emergency INVITE. For how to create the database see lost-db-1.0.0/README.
By default, the location informations sent to the LoST server will be mapped in the database as SIP URIs from the domain irt.cs.columbia.edu, for example psap_nj@irt.cs.columbia.edu. You can use sed tool to modify the scripts civic_us.sql and geo_us.sql to switch the PSAP SIP URIs to the open-ims.test domain.
sed s/"irt.cs.columbia.edu"/"open-ims.test"/ civic_us.sql > new_civic_us.sql sed s/"irt.cs.columbia.edu"/"open-ims.test"/ geo_us.sql > new_geo_us.sql
Now you must use these files to create the databases.
$mv new_civic_us.sql civic_us.sql $mv new_geo_us.sql geo_us.sql
Verify that the owner of the database (configured in the scripts create_db.sh, create_as.sh and create_resoler.sh) is the same you are using in the LoST server, or that the user from the LoST server has been granted SELECT access to the database.
You can now run the scripts: create_db.sh, create_as.sh and create_resoler.sh to create the Postgres database for the LoST server.
Read lost-server-1.0.0/README.
To adjust the type of connection (pooling or not) you have to modify the lost.properties file, that can be found in lost-1.0.0/src/, the lost-server README is erroneous on the filepath of lost.properties.
You must configure it before installing, so that the application is copied in the right tomcat folder and running on the wanted path and port.
The LoST server must not interfere with the HSS server of the Open IMS Core, running by default on the localhost on the port 8080.
Do not forget to copy the jars postgresql-jdbc4.jar and servlet-api.jar in a lib directory from the tomcat folder. (see lost-server-1.0.0/README)
The classes of the LoST application must be compiled and installed in the configured tomcat folder.
$cd lost-server-1.0.0/
$ant install
The tomcat server must be started as in the tutorial here, for example:
/usr/local/tomcat/bin/startup.sh