sysmocom: Introduce suite to test emergency calls
Change-Id: I2e851c94311ded0abd4ff072b8cc72316d972750
diff --git a/src/osmo_gsm_tester/templates/osmo-bsc.cfg.tmpl b/src/osmo_gsm_tester/templates/osmo-bsc.cfg.tmpl
index a03bb0b..66fa9e5 100644
--- a/src/osmo_gsm_tester/templates/osmo-bsc.cfg.tmpl
+++ b/src/osmo_gsm_tester/templates/osmo-bsc.cfg.tmpl
@@ -58,6 +58,11 @@
% endif
ip.access unit_id ${bts.ipa_unit_id} 0
oml ip.access stream_id ${bts.stream_id} line 0
+% if bts.get('emergency_calls_allowed', False):
+ rach emergency call allowed 1
+% else:
+ rach emergency call allowed 0
+%endif
% if bts.get('sgsn', False) and bts['gprs_mode'] != 'none':
gprs mode ${bts.gprs_mode}
gprs routing area ${bts.routing_area_code}
@@ -105,6 +110,7 @@
msc
core-mobile-country-code ${bsc.net.mcc}
core-mobile-network-code ${bsc.net.mnc}
+ allow-emergency allow
ip.access rtp-base 25000
mgw remote-ip ${mgw.ip_address.addr}
mgw remote-port 2427
diff --git a/src/osmo_gsm_tester/templates/osmo-msc.cfg.tmpl b/src/osmo_gsm_tester/templates/osmo-msc.cfg.tmpl
index 8d0ab23..bf7fc2b 100644
--- a/src/osmo_gsm_tester/templates/osmo-msc.cfg.tmpl
+++ b/src/osmo_gsm_tester/templates/osmo-msc.cfg.tmpl
@@ -31,6 +31,9 @@
mgw bts-base 8000
osmux ${msc.use_osmux}
assign-tmsi
+%if msc.get('emergency_call_msisdn', None) is not None:
+ emergency-call route-to-msisdn ${msc.emergency_call_msisdn}
+%endif
cs7-instance-iu 0
cs7-instance-a 0
ctrl