~rsalveti/phablet-extras/ofono-imei-revision

« back to all changes in this revision

Viewing changes to test/hangup-call

  • Committer: Stéphane Graber
  • Date: 2013-01-28 16:24:35 UTC
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: stgraber@ubuntu.com-20130128162435-oz7212z6jz68ri1c
Tags: upstream-1.12
Import upstream version 1.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
 
 
3
import sys
 
4
import dbus
 
5
 
 
6
bus = dbus.SystemBus()
 
7
 
 
8
if (len(sys.argv) < 2):
 
9
        print "Usage: %s [ Call Path ]" % (sys.argv[0])
 
10
        sys.exit(1)
 
11
 
 
12
call = dbus.Interface(bus.get_object('org.ofono', sys.argv[1]),
 
13
                                                'org.ofono.VoiceCall')
 
14
call.Hangup()