This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Pau Espin Pedrol gerrit-no-reply at lists.osmocom.orgHello Neels Hofmeyr, Harald Welte, Jenkins Builder, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/5010 to look at the new patch set (#6). suites: aoip_debug: Start GPRS services Change-Id: I991d0329ff068aaa7c101a5f55ad40616faac121 --- M suites/aoip_debug/interactive.py M suites/aoip_debug/suite.conf 2 files changed, 43 insertions(+), 4 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/10/5010/6 diff --git a/suites/aoip_debug/interactive.py b/suites/aoip_debug/interactive.py index cad68b7..312083a 100755 --- a/suites/aoip_debug/interactive.py +++ b/suites/aoip_debug/interactive.py @@ -2,30 +2,40 @@ from osmo_gsm_tester.testenv import * hlr = suite.hlr() bts = suite.bts() +pcu = bts.pcu() mgcpgw = suite.mgcpgw(bts_ip=bts.remote_addr()) mgw_bsc = suite.mgw() stp = suite.stp() +ggsn = suite.ggsn() +sgsn = suite.sgsn(hlr, ggsn) msc = suite.msc(hlr, mgcpgw, stp) bsc = suite.bsc(msc, mgw_bsc, stp) + modems = suite.modems(int(prompt('How many modems?'))) + +bsc.bts_add(bts) +sgsn.bts_add(bts) hlr.start() stp.start() +ggsn.start() +sgsn.start() msc.start() mgcpgw.start() mgw_bsc.start() - -bsc.bts_add(bts) bsc.start() bts.start() +print('Waiting for bts to be ready...') +wait(bts.ready_for_pcu) +pcu.start() for m in modems: hlr.subscriber_add(m) m.connect(msc.mcc_mnc()) while True: - cmd = prompt('Enter command: (q)uit (s)ms (g)et-registered (w)ait-registered, call-list [<ms_msisdn>], call-dial <src_msisdn> <dst_msisdn>, call-wait-incoming <src_msisdn> <dst_msisdn>, call-answer <mt_msisdn> <call_id>, call-hangup <ms_msisdn> <call_id>, ussd <command>') + cmd = prompt('Enter command: (q)uit (s)ms (g)et-registered (w)ait-registered, call-list [<ms_msisdn>], call-dial <src_msisdn> <dst_msisdn>, call-wait-incoming <src_msisdn> <dst_msisdn>, call-answer <mt_msisdn> <call_id>, call-hangup <ms_msisdn> <call_id>, ussd <command>, data-attach, data-wait, data-detach, data-activate') cmd = cmd.strip().lower() if not cmd: @@ -115,5 +125,34 @@ response = ms.ussd_send(ussd_cmd) print('modem %s: response=%r' % (ms.name(), response)) + elif cmd.startswith('data-attach'): + if len(params) != 1: + print('wrong format') + continue + for ms in modems: + print('modem %s: attach' % ms.name()) + ms.attach() + wait(ms.is_attached) + print('modem %s: attached' % ms.name()) + + elif cmd.startswith('data-detach'): + if len(params) != 1: + print('wrong format') + continue + for ms in modems: + print('modem %s: detach' % ms.name()) + ms.attach() + wait(lambda: not ms.is_attached()) + print('modem %s: detached' % ms.name()) + + elif cmd.startswith('data-activate'): + if len(params) != 1: + print('wrong format') + continue + for ms in modems: + print('modem %s: activate' % ms.name()) + response = ms.activate_context() + print('modem %s: response=%r' % (ms.name(), response)) + else: print('Unknown command: %s' % cmd) diff --git a/suites/aoip_debug/suite.conf b/suites/aoip_debug/suite.conf index d75cacb..2f36e1d 100644 --- a/suites/aoip_debug/suite.conf +++ b/suites/aoip_debug/suite.conf @@ -1,6 +1,6 @@ resources: ip_address: - - times: 6 + - times: 8 bts: - times: 1 modem: -- To view, visit https://gerrit.osmocom.org/5010 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: I991d0329ff068aaa7c101a5f55ad40616faac121 Gerrit-PatchSet: 6 Gerrit-Project: osmo-gsm-tester Gerrit-Branch: master Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de> Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de> Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>