Installation
Best refer to README.txt which comes with osmo-oohmi for further information.
Prerequisites
sudo aptitude install python-pyramid python-coverage python-nose
pip install pyramid_exclog pyramid_debugtoolbar
Fetch
git://git.osmocom.org/python/osmo-oohmi
Configure
On my Ubuntu system I had to edit osmocom-oohmi start script, as the pserve executable is under a different path. As its in the PATH I just removed the hardcoded path. Also I changed the cd command.
### BEGIN INIT INFO
# Provides: osmo-oohmi
# Required-Start: $network $local_fs
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: OpenBSC and OsmoSGSN HLR Management Interface
# Description: Web Management interface for OpenBSC, OsmoSGSN, GGSN, Asterisk and LCR services.
### END INIT INFO
cd /opt/osmo-oohmi/
case "$1" in
start)
pserve production.ini start ;;
stop)
pserve production.ini stop ;;
restart)
pserve production.ini restart ;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1 ;;
esac
exit 0
The path to the hlr.sqlite in hlr_mgm/__init__.py will also have to be adjusted. You might also want to change the provider name.
# OpenBSC Settings
settings['provider'] = '<<Provider Name>>'
settings['db'] = '/root/cfg/hlr.sqlite3'
settings['bsc_ip'] = "127.0.0.1"
settings['sgsn_ip'] = "127.0.0.1"
settings['bsc_port'] = 4242
settings['sgsn_port'] = 4245
Install
python setup.py install
Usage
After starting osmo-oohmi you can access the webinterface at http://localhost:8080/.
Notes
A few pages cause errors and will not function. Seems some fixing will be necessary.