Add sms_db param and sms() shell function
This commit is contained in:
parent
d5b67e7b63
commit
30bc66ca71
5 changed files with 11 additions and 3 deletions
|
@ -20,7 +20,8 @@ class rhizo_base {
|
||||||
$notouchcron = hiera('rhizo::notouchcron', 0)
|
$notouchcron = hiera('rhizo::notouchcron', 0)
|
||||||
$use_ups = hiera('rhizo::use_ups')
|
$use_ups = hiera('rhizo::use_ups')
|
||||||
$rhizomatica_dir = hiera('rhizo::rhizomatica_dir')
|
$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')
|
$use_sip = hiera('rhizo::use_sip')
|
||||||
$advice_email = hiera('rhizo::advice_email')
|
$advice_email = hiera('rhizo::advice_email')
|
||||||
$charge_scheme = hiera('rhizo::charge_scheme', 'normal')
|
$charge_scheme = hiera('rhizo::charge_scheme', 'normal')
|
||||||
|
|
|
@ -17,6 +17,7 @@ class rhizo_base::osmocom {
|
||||||
$smsc_password = $rhizo_base::smsc_password
|
$smsc_password = $rhizo_base::smsc_password
|
||||||
$smpp_password = $rhizo_base::smpp_password
|
$smpp_password = $rhizo_base::smpp_password
|
||||||
|
|
||||||
|
$sms_db = $rhizo_base::sms_db
|
||||||
$mncc_codec = $rhizo_base::mncc_codec
|
$mncc_codec = $rhizo_base::mncc_codec
|
||||||
|
|
||||||
$mncc_ip_address = $rhizo_base::mncc_ip_address
|
$mncc_ip_address = $rhizo_base::mncc_ip_address
|
||||||
|
|
|
@ -10,7 +10,7 @@ JB_in = '<%= @jb_in %>'
|
||||||
JB_out = '<%= @jb_out %>'
|
JB_out = '<%= @jb_out %>'
|
||||||
|
|
||||||
rhizomatica_dir = '<%= @rhizomatica_dir %>'
|
rhizomatica_dir = '<%= @rhizomatica_dir %>'
|
||||||
sq_hlr_path = '<%= @sq_hlr_path %>'
|
sq_hlr_path = '<%= @hlr_db %>'
|
||||||
use_sip = '<%= @use_sip %>'
|
use_sip = '<%= @use_sip %>'
|
||||||
advice_email = <%= @advice_email %>
|
advice_email = <%= @advice_email %>
|
||||||
test_playback = '<%= @test_playback %>'
|
test_playback = '<%= @test_playback %>'
|
||||||
|
|
|
@ -66,6 +66,7 @@ network
|
||||||
rrlp mode none
|
rrlp mode none
|
||||||
mm info 1
|
mm info 1
|
||||||
msc
|
msc
|
||||||
|
sms-database <%= @sms_db %>
|
||||||
mncc external /tmp/bsc_mncc
|
mncc external /tmp/bsc_mncc
|
||||||
mncc guard-timeout 180
|
mncc guard-timeout 180
|
||||||
ncss guard-timeout 30
|
ncss guard-timeout 30
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
# Shell Functions for Rhizomatica Community Celular Network
|
# Shell Functions for Rhizomatica Community Celular Network
|
||||||
#
|
#
|
||||||
|
|
||||||
OSMO_HLR="<%= @sq_hlr_path %>"
|
OSMO_HLR="<%= @hlr_db %>"
|
||||||
|
OSMO_SMS="<%= @sms_db %>"
|
||||||
DID="<%= @voip_did %>"
|
DID="<%= @voip_did %>"
|
||||||
|
|
||||||
waitfor0calls () {
|
waitfor0calls () {
|
||||||
|
@ -43,6 +44,10 @@ hlr() {
|
||||||
sudo /usr/bin/sqlite3 -column -header $OSMO_HLR
|
sudo /usr/bin/sqlite3 -column -header $OSMO_HLR
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sms() {
|
||||||
|
sudo /usr/bin/sqlite3 -column -header $OSMO_SMS
|
||||||
|
}
|
||||||
|
|
||||||
tl() {
|
tl() {
|
||||||
if [ "$1" == "" ] ; then
|
if [ "$1" == "" ] ; then
|
||||||
tail -f /var/log/rccn/*log
|
tail -f /var/log/rccn/*log
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue