maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Check if a phone call is currently in progress? (https://talk.maemo.org/showthread.php?t=64157)

kitwalker 2010-10-21 13:57

Check if a phone call is currently in progress?
 
Hi,

Is there a way to check if there is an ongoing phone call? I know dbus-monitor may give an indication for an incoming call, but what I'm interested is if there is any way to detect if a phone call is in progress, some value in a sysfs file that can be checked maybe?

Thanks,
Kit

uvatbc 2010-10-21 16:56

Re: Check if a phone call is currently in progress?
 
Quote:

Originally Posted by kitwalker (Post 847112)
Hi,

Is there a way to check if there is an ongoing phone call? I know dbus-monitor may give an indication for an incoming call, but what I'm interested is if there is any way to detect if a phone call is in progress, some value in a sysfs file that can be checked maybe?

Thanks,
Kit

I think you just barely missed a similar thread posted earlier.
I have posted my answer there.

bonapart 2010-10-21 17:06

Re: Check if a phone call is currently in progress?
 
and my is here http://talk.maemo.org/showpost.php?p=847268&postcount=3 =)

kitwalker 2010-10-21 17:10

Re: Check if a phone call is currently in progress?
 
Actually this was posted about an hour earlier.
Also the OP there is specifically asking for a C++ means to do it and he is asking for means to know when someone calls. For me I just want to know if there currently is an ongoing call, the call may be initiated by self too.. doesnt matter.

dalonso 2010-10-21 22:55

Re: Check if a phone call is currently in progress?
 
Hi

check the source code of Vicar because I'm sure it's doing something in this lines in order to know when a call in on going so it can feed some DTMF codes.

Best regards.

jaeezzy 2010-10-22 01:23

Re: Check if a phone call is currently in progress?
 
Quote:

Originally Posted by kitwalker (Post 847287)
Actually this was posted about an hour earlier.
Also the OP there is specifically asking for a C++ means to do it and he is asking for means to know when someone calls. For me I just want to know if there currently is an ongoing call, the call may be initiated by self too.. doesnt matter.

Here you will find a complete working example by qwerty12 in C. I've used the same in my app Phone Speakers Switcher. It tells when the phone is "ringing"(when one is receiving a call), "active"(One is on the phone or making call - even when the other end hasn't yet answered the phone) or "none".

kitwalker 2010-10-22 03:37

Re: Check if a phone call is currently in progress?
 
Thanks for the info! Will check it out...


All times are GMT. The time now is 09:24.

vBulletin® Version 3.8.8