Add sms_db param and sms() shell function

This commit is contained in:
Keith Whyte 2020-09-02 13:34:21 +02:00
parent d5b67e7b63
commit 30bc66ca71
5 changed files with 11 additions and 3 deletions

View file

@ -20,7 +20,8 @@ class rhizo_base {
$notouchcron = hiera('rhizo::notouchcron', 0)
$use_ups = hiera('rhizo::use_ups')
$rhizomatica_dir = hiera('rhizo::rhizomatica_dir')
$sq_hlr_path = hiera('rhizo::sq_hlr_path')
$hlr_db = hiera('rhizo::hlr_db', '/var/lib/osmocom/hlr.db')
$sms_db = hiera('rhizo::sms_db', '/var/lib/osmocom/sms.db')
$use_sip = hiera('rhizo::use_sip')
$advice_email = hiera('rhizo::advice_email')
$charge_scheme = hiera('rhizo::charge_scheme', 'normal')

View file

@ -17,6 +17,7 @@ class rhizo_base::osmocom {
$smsc_password = $rhizo_base::smsc_password
$smpp_password = $rhizo_base::smpp_password
$sms_db = $rhizo_base::sms_db
$mncc_codec = $rhizo_base::mncc_codec
$mncc_ip_address = $rhizo_base::mncc_ip_address

View file

@ -10,7 +10,7 @@ JB_in = '<%= @jb_in %>'
JB_out = '<%= @jb_out %>'
rhizomatica_dir = '<%= @rhizomatica_dir %>'
sq_hlr_path = '<%= @sq_hlr_path %>'
sq_hlr_path = '<%= @hlr_db %>'
use_sip = '<%= @use_sip %>'
advice_email = <%= @advice_email %>
test_playback = '<%= @test_playback %>'

View file

@ -66,6 +66,7 @@ network
rrlp mode none
mm info 1
msc
sms-database <%= @sms_db %>
mncc external /tmp/bsc_mncc
mncc guard-timeout 180
ncss guard-timeout 30

View file

@ -2,7 +2,8 @@
# Shell Functions for Rhizomatica Community Celular Network
#
OSMO_HLR="<%= @sq_hlr_path %>"
OSMO_HLR="<%= @hlr_db %>"
OSMO_SMS="<%= @sms_db %>"
DID="<%= @voip_did %>"
waitfor0calls () {
@ -43,6 +44,10 @@ hlr() {
sudo /usr/bin/sqlite3 -column -header $OSMO_HLR
}
sms() {
sudo /usr/bin/sqlite3 -column -header $OSMO_SMS
}
tl() {
if [ "$1" == "" ] ; then
tail -f /var/log/rccn/*log