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.orgPau Espin Pedrol has submitted this change and it was merged.
Change subject: suites: Add ussd support to interactive shell test
......................................................................
suites: Add ussd support to interactive shell test
Change-Id: I055f2b9de56da8d956c3e4944f6600dea2ee5578
---
M suites/aoip_debug/interactive.py
M suites/debug/interactive.py
2 files changed, 22 insertions(+), 2 deletions(-)
Approvals:
Pau Espin Pedrol: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/suites/aoip_debug/interactive.py b/suites/aoip_debug/interactive.py
index 819f207..f09732b 100755
--- a/suites/aoip_debug/interactive.py
+++ b/suites/aoip_debug/interactive.py
@@ -23,7 +23,7 @@
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>')
+ 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 = cmd.strip().lower()
if not cmd:
@@ -103,5 +103,15 @@
print('hanging up %s %r' % (ms.name(), call_id))
ms.call_hangup(call_id)
+ elif cmd.startswith('ussd'):
+ if len(params) != 2:
+ print('wrong format')
+ continue
+ ussd_cmd = params[1]
+ for ms in modems:
+ print('modem %s: ussd %s' % (ms.name(), ussd_cmd))
+ response = ms.ussd_send(ussd_cmd)
+ print('modem %s: response=%r' % (ms.name(), response))
+
else:
print('Unknown command: %s' % cmd)
diff --git a/suites/debug/interactive.py b/suites/debug/interactive.py
index 1b89a7d..d5f7615 100755
--- a/suites/debug/interactive.py
+++ b/suites/debug/interactive.py
@@ -16,7 +16,7 @@
m.connect(nitb.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>')
+ 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 = cmd.strip().lower()
if not cmd:
@@ -96,5 +96,15 @@
print('hanging up %s %r' % (ms.name(), call_id))
ms.call_hangup(call_id)
+ elif cmd.startswith('ussd'):
+ if len(params) != 2:
+ print('wrong format')
+ continue
+ ussd_cmd = params[1]
+ for ms in modems:
+ print('modem %s: ussd %s' % (ms.name(), ussd_cmd))
+ response = ms.ussd_send(ussd_cmd)
+ print('modem %s: response=%r' % (ms.name(), response))
+
else:
print('Unknown command: %s' % cmd)
--
To view, visit https://gerrit.osmocom.org/4702
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I055f2b9de56da8d956c3e4944f6600dea2ee5578
Gerrit-PatchSet: 1
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>