maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Script: auto-give a ring (missed call) (https://talk.maemo.org/showthread.php?t=89617)

dzano 2013-04-05 17:39

Re: Script: auto-give a ring (missed call)
 
Quote:

Originally Posted by qwazix (Post 1332378)
Haha, I can't stop thinking what will happen if both parties have this installed...

Something like this :D

http://youtu.be/AasFK70sOkQ

md07 2013-05-14 05:06

Re: Script: auto-give a ring (missed call)
 
hi @dzano

Quote:

Originally Posted by dzano (Post 1334323)
Something like this :D

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

zlatokosi 2013-05-14 05:15

Re: Script: auto-give a ring (missed call)
 
Quote:

Originally Posted by dzano (Post 1334323)
Something like this :D

http://youtu.be/AasFK70sOkQ

Hahaha, awesome!

Pozdrav u Bosnu!

dzano 2013-05-14 06:35

Re: Script: auto-give a ring (missed call)
 
Quote:

Originally Posted by md07 (Post 1343425)
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)

Quote:

Originally Posted by zlatokosi (Post 1343426)
Hahaha, awesome!

Pozdrav u Bosnu!

Veliki pozdrav i tebi drug!! haha

md07 2013-05-14 07:20

Re: Script: auto-give a ring (missed call)
 
Quote:

Originally Posted by dzano (Post 1343436)
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


All times are GMT. The time now is 08:02.

vBulletin® Version 3.8.8