virt-nitb: tweaks

Change-Id: Icba4b16e25db93ba9d069388bbe39cd5adfed770
master
Neels Hofmeyr 3 months ago
parent 99a08fb459
commit 51df7420b0
  1. 3
      virt-nitb/audio_frame.sh
  2. 1
      virt-nitb/call.sh
  3. 2
      virt-nitb/hangup.sh
  4. 7
      virt-nitb/mobile.cfg
  5. 9
      virt-nitb/mobile2.cfg
  6. 2
      virt-nitb/osmo-bsc.cfg
  7. 7
      virt-nitb/run.sh

@ -0,0 +1,3 @@
#!/bin/sh
set -x
osmo_interact_vty.py -H 127.0.0.1 -p 4247 -c "enable;audio_frame 1"

@ -1,4 +1,5 @@
#!/bin/sh
set -x
osmo_interact_vty.py -H 127.0.0.1 -p 4247 -c "enable;call 1 2"
sleep 5
osmo_interact_vty.py -H 127.0.0.2 -p 4247 -c "enable;call 2 answer"

@ -1,3 +1,3 @@
#!/bin/sh
set -x
osmo_interact_vty.py -H 127.0.0.1 -p 4247 -c "enable;call 1 hangup"

@ -1,6 +1,7 @@
ms 1
layer2-socket /tmp/osmocom_l2
sap-socket /tmp/osmocom_sap
imei 111111111111111
sim test
test-sim
imsi 901700000000001
@ -22,7 +23,7 @@ log file current_log/mobile1.log
logging level lglobal info
logging level lsms info
logging level rsl notice
logging level rr debug
logging level rr notice
logging level plmn debug
logging level cs debug
logging level nb notice
@ -54,7 +55,7 @@ log stderr
logging level lglobal info
logging level lsms info
logging level rsl notice
logging level rr debug
logging level rr notice
logging level plmn debug
logging level cs debug
logging level nb notice
@ -86,7 +87,7 @@ log gsmtap 127.0.0.12
logging level lglobal info
logging level lsms info
logging level rsl notice
logging level rr debug
logging level rr notice
logging level plmn debug
logging level cs debug
logging level nb notice

@ -4,6 +4,7 @@ line vty
ms 2
layer2-socket /tmp/osmocom_l2
sap-socket /tmp/osmocom_sap
imei 222222222222222
sim test
test-sim
imsi 901700000000002
@ -11,6 +12,8 @@ ms 2
no barred-access
rplmn 901 70
hplmn-search everywhere
audio
io-handler loopback
no shutdown
log file current_log/mobile2.log
@ -25,7 +28,7 @@ log file current_log/mobile2.log
logging level lglobal info
logging level lsms info
logging level rsl notice
logging level rr debug
logging level rr notice
logging level plmn debug
logging level cs debug
logging level nb notice
@ -57,7 +60,7 @@ log stderr
logging level lglobal info
logging level lsms info
logging level rsl notice
logging level rr debug
logging level rr notice
logging level plmn debug
logging level cs debug
logging level nb notice
@ -89,7 +92,7 @@ log gsmtap 127.0.0.11
logging level lglobal info
logging level lsms info
logging level rsl notice
logging level rr debug
logging level rr notice
logging level plmn debug
logging level cs debug
logging level nb notice

@ -24,7 +24,7 @@ network
location_area_code 23
cell_identity 0
base_station_id_code 0
codec-support fr amr
codec-support fr hr efr amr
amr tch-f modes 2 3 5 7
amr tch-f start-mode 2
amr tch-h modes 2 3 5

@ -23,7 +23,7 @@ term() {
if [ -z "$title" ]; then
title="$(basename $@)"
fi
exec $terminal -title "CN:$title" -e sh -c "$1; echo; while true; do echo 'q Enter to close'; read q_to_close; if [ \"x\$q_to_close\" = xq ]; then break; fi; done"
exec $terminal -title "CN:$title" -e sh -c "$1; echo; while sleep 1; do echo 'q Enter to close'; read q_to_close; if [ \"x\$q_to_close\" = xq ]; then break; fi; done"
}
find_term
@ -104,7 +104,7 @@ sleep .2
term "$virtphy" virtphy &
sleep .2
term "$ms1" MS1 &
sleep .2
sleep 3
term "$ms2" MS2 &
if [ "x$SIPCON_SERVER" != "xinternal" ]; then
@ -125,6 +125,9 @@ read enter_to_close
echo Closing...
#set -x
killall -2 mobile
sleep 3
if [ "x$SIPCON_SERVER" != "xinternal" ]; then
kill %11
# 'killall' seems to work only with the shortened name

Loading…
Cancel
Save