blob: b9383ea570d23a333a893d4c1052b37af917e91e [file] [log] [blame]
Neels Hofmeyraea2f2c2017-05-18 22:01:59 +02001#!/usr/bin/env python3
2from osmo_gsm_tester.test import *
3
4hlr = suite.hlr()
5bts = suite.bts()
6mgcpgw = suite.mgcpgw(bts_ip=bts.remote_addr())
7msc = suite.msc(hlr, mgcpgw)
8bsc = suite.bsc(msc)
9ms_mo = suite.modem()
10ms_mt = suite.modem()
11
12hlr.start()
13msc.start()
14mgcpgw.start()
15
16bsc.bts_add(bts)
17bsc.start()
18
19bts.start()
20
21hlr.subscriber_add(ms_mo)
22hlr.subscriber_add(ms_mt)
23
24ms_mo.connect(bsc)
25ms_mt.connect(bsc)
Neels Hofmeyrb8011692017-05-29 03:45:24 +020026
27ms_mo.log_info()
28ms_mt.log_info()
29
30print('waiting for modems to attach...')
Neels Hofmeyraea2f2c2017-05-18 22:01:59 +020031wait(msc.subscriber_attached, ms_mo, ms_mt)
32
Neels Hofmeyrb8011692017-05-29 03:45:24 +020033sms = ms_mo.sms_send(ms_mt)
Neels Hofmeyraea2f2c2017-05-18 22:01:59 +020034wait(ms_mt.sms_was_received, sms)