mirror of git://git.sysmocom.de/ofono
test: Add selecting the modem in private-chat
This commit is contained in:
parent
75e747122c
commit
d94eb705c7
|
@ -11,10 +11,16 @@ manager = dbus.Interface(bus.get_object('org.ofono', '/'),
|
||||||
modems = manager.GetModems()
|
modems = manager.GetModems()
|
||||||
path = modems[0][0]
|
path = modems[0][0]
|
||||||
|
|
||||||
|
if (len(sys.argv) == 3):
|
||||||
|
path = sys.argv[1]
|
||||||
|
callid = sys.argv[2]
|
||||||
|
else:
|
||||||
|
callid = sys.argv[1]
|
||||||
|
|
||||||
manager = dbus.Interface(bus.get_object('org.ofono', path),
|
manager = dbus.Interface(bus.get_object('org.ofono', path),
|
||||||
'org.ofono.VoiceCallManager')
|
'org.ofono.VoiceCallManager')
|
||||||
|
|
||||||
mpty = manager.PrivateChat(sys.argv[1], timeout=100)
|
mpty = manager.PrivateChat(callid, timeout=100)
|
||||||
|
|
||||||
for path in mpty:
|
for path in mpty:
|
||||||
print path
|
print path
|
||||||
|
|
Loading…
Reference in New Issue