![]() |
How to get phone call status?
Hello,
I would like to know the status of a phone call once programmatically started. I know so far that i can start a call by: Code:
dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.Call /com/nokia/csd/call com.nokia.csd.Call.CreateWith string:"$NUMBER" uint32:0 Code:
bus.connect("com.nokia.csd.Call.Instance", "/com/nokia/csd/call/1", "com.nokia.csd.Call.Instance", "AudioConnect", this, SLOT(handleCall(const QDBusMessage&))) Are there more members in "com.nokia.csd.Call.Instance" other than "AudioConnect"? Thanks |
Re: How to get phone call status?
dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.Call /com/nokia/csd/call/1 com.nokia.csd.Call.Instance.GetStatus
Retvals (AFAICT): 0 == no call in progress; 1 == call initiaited; 8 == call in progress (dial tones can be heard/recipient has picked up the phone) |
Re: How to get phone call status?
Thanks for taking intrest qwerty12!
Perhaps if I explain the purpose of my request things might become more clear. :) I'm making a python script, which works on creating a missed call for the other party. That is, it dials a number, waits for a "valid" dial tone to beep for say 2 seconds, then hangs up. I got all the mechanics of creating the call and hanging it up and running. The only problem is, how to distinguish between dialtones (Busy, No Service, etc...)? :confused: Thanks again! |
Re: How to get phone call status?
Quote:
|
Re: How to get phone call status?
Quote:
Thanks :) |
Re: How to get phone call status?
After some research I found that if I use modem commands using pnatd I could actually poll the status of the call.
Something like: atd<number>; then poll every 500ms at+clcc But i'm sure there is something neater than this. How can I find out the members com.nokia.csd.Call.Instance? So far I know there is AudioConnect... What else? |
Re: How to get phone call status?
Well peeps, I am giving up.
To give this thread closure I found a loop hole which I think is impossible to overcome. The application I was intending to do was supposed to create a missed call for the party being called programatically. I have successfuly started a call then hung it up after x seconds, but the problem is that i couldn't figure out the status of the call (Ie. Busy, Out of service..) I tried two approaches:
Thanks qwerty12, & phedders for your suggestions. |
All times are GMT. The time now is 15:57. |
vBulletin® Version 3.8.8