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

@ -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