Reply
Thread Tools
Posts: 226 | Thanked: 270 times | Joined on Apr 2012 @ Bosnia and Herzegovina
#11
Originally Posted by qwazix View Post
Haha, I can't stop thinking what will happen if both parties have this installed...
Something like this

http://youtu.be/AasFK70sOkQ
 

The Following 3 Users Say Thank You to dzano For This Useful Post:
Posts: 14 | Thanked: 4 times | Joined on Jan 2011
#12
hi @dzano

Originally Posted by dzano View Post
Something like this

http://youtu.be/AasFK70sOkQ

i try run your script on my N9 terminal, but my phone doesnt do anything when i call someone (below 3s). Pls help me
 
Posts: 242 | Thanked: 269 times | Joined on Mar 2010
#13
Originally Posted by dzano View Post
Something like this

http://youtu.be/AasFK70sOkQ
Hahaha, awesome!

Pozdrav u Bosnu!
 
Posts: 226 | Thanked: 270 times | Joined on Apr 2012 @ Bosnia and Herzegovina
#14
Originally Posted by md07 View Post
hi @dzano

i try run your script on my N9 terminal, but my phone doesnt do anything when i call someone (below 3s). Pls help me
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)

Originally Posted by zlatokosi View Post
Hahaha, awesome!

Pozdrav u Bosnu!
Veliki pozdrav i tebi drug!! haha
 
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
 
Reply

Tags
missed call, python dbus


 
Forum Jump


All times are GMT. The time now is 11:14.