projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75e7471
)
test: Add selecting the modem in private-chat
author
Denis Kenzior
<denkenz@gmail.com>
Tue, 10 Sep 2013 15:53:49 +0000
(10:53 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Thu, 12 Sep 2013 18:17:39 +0000
(13:17 -0500)
test/private-chat
patch
|
blob
|
history
diff --git
a/test/private-chat
b/test/private-chat
index e7c8026e3c5e71a0e86c23a3944cba61a4270597..2fe07970ddad2fb59bfcc16052eb4bd40893e8e4 100755
(executable)
--- a/
test/private-chat
+++ b/
test/private-chat
@@
-11,10
+11,16
@@
manager = dbus.Interface(bus.get_object('org.ofono', '/'),
modems = manager.GetModems()
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),
'org.ofono.VoiceCallManager')
-mpty = manager.PrivateChat(
sys.argv[1]
, timeout=100)
+mpty = manager.PrivateChat(
callid
, timeout=100)
for path in mpty:
print path