PDA

View Full Version : iPhone SDK: Phone Functions




psalesses
Jun 11, 2008, 07:57 PM
I have a few simple questions about an application I'm trying to build. Please don't tell me that the phone already does it, because those won't help.

When a phone call is in progress...
is there anyway to play a sound file to the caller on the other line?
can I add a button to mute my voice to the caller?
can I access the phone's code and end the call?



rscott
Jun 11, 2008, 08:21 PM
I'm rather certain none of those are possible. When you think iPhone applications, think independent programs in isolation. This isn't Android.

drivefast
Jun 12, 2008, 01:00 PM
no, no and no :(

while a call is in progress, you may press the home button and start another application. however, this application cannot use the microphone and cannot play sounds - the hardware is dedicated to the phone app. i dont know how the sound stream goes from the microphone hardware to the gsm encoder, but i highly doubt there is a way to interpose your application in between and have your stream delivered - at least i'm sure apple will not accept that. muting and unmuting is almost the same, except that you break the stream flow instead of connecting your stream flow.

as far as i know there is no "hook" in the phone application that you could use to be notified that the call is over. however, from the OS' safety perspective, this *could* be a feature that apple may provide if there is enough request for it.