Am Donnerstag 28 August 2008 01:10:25 schrieb Michael 'Mickey' Lauer:
> def onCallStatus( index, status, properties ):
> if status == "incoming":
> try:
> action = actions[properties["number"]]
> except KeyError:
> pass
> else:
> subprocess.Popen( action, shell=True )
Bummer, forgot to hangup here... use that:
def onCallStatus( index, status, properties ):
if status == "incoming":
try:
action = actions[properties["number"]]
except KeyError:
pass
else:
obj =
bus.get_object( "org.freesmartphone.ogsmd", "/org/freesmartphone/Device/GSM" )
callInterface = dbus.Interface(
obj, "org.freesmartphone.GSM.Call" )
callInterface.Release( index )
subprocess.Popen( action, shell=True )
--
:M:
_______________________________________________
Openmoko community mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/community