From: Antonio Ospite Date: Wed, 15 Sep 2010 11:13:57 +0000 (+0200) Subject: fso-make-call.py: add the mainloop specifier X-Git-Url: https://git.ao2.it/fso-scripts.git/commitdiff_plain/14466fa8ba2fb88bfcb03b0d78f8de6c28867d79 fso-make-call.py: add the mainloop specifier In order to have signals working we need to set the DBusGMainLoop. --- diff --git a/fso-make-call.py b/fso-make-call.py index aec370e..0dc936e 100755 --- a/fso-make-call.py +++ b/fso-make-call.py @@ -4,6 +4,9 @@ import sys import time import dbus +from dbus.mainloop.glib import DBusGMainLoop +DBusGMainLoop(set_as_default=True) + def onCallStatus(sender = "", *args, **kwargs): status = str(args[0]) if (args[1].has_key("peer")):