Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate a call, sms, etc from iphone

Tags:

iphone

call

is it possible to generate a call or an sms from an application that we create for iphone? Also is it possible to record a call???

like image 422
Nithin Avatar asked Jan 01 '10 06:01

Nithin


1 Answers

See the Apple URL Scheme Reference. What you want is:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:1-305-555-1212"]];

and

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms:1-305-555-1212"]];

Unfortunately, there is currently no way to specify the text of an SMS.

As for recording calls, take a look at the Recording Audio section of the Audio Queue Services Programming Guide. I'm not sure if this functionality is disabled when a phone call is taking place, and at the very least you will have to open the application to record the audio (i.e., you won't be able to automatically record the audio). You should also look into the legality of recording phone calls and any consent requirements for the areas you wish to use/offer your application.

like image 157
Martin Gordon Avatar answered Nov 08 '22 04:11

Martin Gordon