mirror of git://git.sysmocom.de/ofono
test: Add modem argument to hangup-all
Add the possibility to specify the modem to hangup on
This commit is contained in:
parent
d77f600008
commit
6aa713f549
|
@ -9,9 +9,12 @@ manager = dbus.Interface(bus.get_object('org.ofono', '/'),
|
||||||
'org.ofono.Manager')
|
'org.ofono.Manager')
|
||||||
|
|
||||||
modems = manager.GetModems()
|
modems = manager.GetModems()
|
||||||
path = modems[0][0]
|
modem = modems[0][0]
|
||||||
|
|
||||||
manager = dbus.Interface(bus.get_object('org.ofono', path),
|
if (len(sys.argv) == 2):
|
||||||
|
modem = sys.argv[1]
|
||||||
|
|
||||||
|
manager = dbus.Interface(bus.get_object('org.ofono', modem),
|
||||||
'org.ofono.VoiceCallManager')
|
'org.ofono.VoiceCallManager')
|
||||||
|
|
||||||
manager.HangupAll()
|
manager.HangupAll()
|
||||||
|
|
Loading…
Reference in New Issue