![]() |
2010-06-23
, 21:52
|
Posts: 5 |
Thanked: 8 times |
Joined on Jun 2010
|
#2
|
The Following 2 Users Say Thank You to roman4 For This Useful Post: | ||
![]() |
2010-06-24
, 03:05
|
Posts: 36 |
Thanked: 13 times |
Joined on Dec 2009
@ Bandung, Indonesia
|
#3
|
![]() |
2010-10-24
, 12:45
|
Posts: 44 |
Thanked: 34 times |
Joined on May 2010
|
#4
|
I'd like to write a script to auto-answer a call (actually, my intention is to answer-then-release). Releasing (hangup/reject) is working.
But answering a call always throws a com.nokia.csd.Call.Error.NotAllowed exception.
From: http://wiki.maemo.org/PyMaemo/Phone_..._examples#Call (I wrote the quoted part below myself)
Can someone shed a light on this? Thank you.
![]() |
2011-04-03
, 18:02
|
Posts: 4 |
Thanked: 3 times |
Joined on Aug 2010
|
#5
|
If you answer the call immediately as you receive the call indication the phone seems to be in a specific call state where answering is not allowed yet.
If you answer the call using the described DBUS message after a delay of e.g. 1 s it works out fine.
Another (probably better) approach is to register to the CallStatus DBUS message ("com.nokia.csd.Call", "/com/nokia/csd/call/1", "com.nokia.csd.Call.Instance.CallStatus") and wait for a call status >= 2 (=CSD_CALL_STATUS_COMING) after the "Coming" message.
Best regards,
Roman
But answering a call always throws a com.nokia.csd.Call.Error.NotAllowed exception.
From: http://wiki.maemo.org/PyMaemo/Phone_..._examples#Call (I wrote the quoted part below myself)