All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add ability to select modem on test-voicecall
@ 2010-01-28 21:56 =?unknown-8bit?q?Jo=C3=A3o?= Paulo Rechi Vita
  2010-01-29 16:44 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: =?unknown-8bit?q?Jo=C3=A3o?= Paulo Rechi Vita @ 2010-01-28 21:56 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1134 bytes --]

---
 test/test-voicecall |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/test/test-voicecall b/test/test-voicecall
index 13f371a..2da7703 100755
--- a/test/test-voicecall
+++ b/test/test-voicecall
@@ -39,11 +39,9 @@ if __name__ == "__main__":
 	global vcmanager
 
 	if (len(sys.argv) < 2):
-		print "Useage: %s <number>" % (sys.argv[0])
+		print "Useage: %s [modem] <number>" % (sys.argv[0])
 		sys.exit(1)
 
-	number = sys.argv[1]
-
 	dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
 
 	bus = dbus.SystemBus()
@@ -52,9 +50,17 @@ if __name__ == "__main__":
 							'org.ofono.Manager')
 
 	modems = manager.GetProperties()['Modems']
+	modem = modems[0]
 	print modems
 
-	vcmanager = dbus.Interface(bus.get_object('org.ofono', modems[0]),
+	if (len(sys.argv) == 3):
+		modem = sys.argv[1]
+		number = sys.argv[2]
+	else:
+		number = sys.argv[1]
+	print "Using modem %s" % modem
+
+	vcmanager = dbus.Interface(bus.get_object('org.ofono', modem),
 						'org.ofono.VoiceCallManager')
 
 	vcmanager.connect_to_signal("PropertyChanged",
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Add ability to select modem on test-voicecall
  2010-01-28 21:56 [PATCH] Add ability to select modem on test-voicecall =?unknown-8bit?q?Jo=C3=A3o?= Paulo Rechi Vita
@ 2010-01-29 16:44 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2010-01-29 16:44 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 179 bytes --]

Hi João,

> ---
>  test/test-voicecall |   14 ++++++++++----
>  1 files changed, 10 insertions(+), 4 deletions(-)
> 

Patch has been applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-29 16:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-28 21:56 [PATCH] Add ability to select modem on test-voicecall =?unknown-8bit?q?Jo=C3=A3o?= Paulo Rechi Vita
2010-01-29 16:44 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.