View Single Post
Posts: 14 | Thanked: 4 times | Joined on Jan 2011
#15
Originally Posted by dzano View Post
I would really like to help you but I don't have N9, and I'm not sure if DBUS commands are same.

Anyway, that script is idle until someone calls YOU (missed call) from number that you already listed in script:
(blocklist = ["+38761123456","+38762123456","1111"] ### list of numbers that you're expecting drop call from)



Veliki pozdrav i tebi drug!! haha
ok. i edit your script with number i want drop. When that num call miss my phone. terminal say error. I copy my terminal :


~ # python /home/user/MyDocs/mc.py

0985319481

ERROR:dbus.connection:Exception in handler forD-Bus signal:

Traceback (most recent call last):

File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 214, in maybe_handle_message

self._handler(*args, **kwargs)

File "/home/user/MyDocs/mc.py", line 20, in handle_call

smsiface.CreateWith(str(callernumber), dbus.UInt32(0))

File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 68, in __call__

return self._proxy_method(*args, **keywords)

File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__

**keywords)

File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 630, in call_blocking

message, timeout)

DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.2835" (uid=0 pid=15107 comm="python /home/user/MyDocs/mc.py ") interface="com.nokia.csd.Call" member="CreateWith" error name="(unset)" requested_reply=0 destination=":1.17" (uid=30006 pid=663 comm="/usr/sbin/csd -z -p call autorej=0,autoans=0,ecall"))




i think you can fix my problem. i very noob in Python. Pls help me