tags:

views:

197

answers:

0

Since I don't want to jailbreak my iPhone i'm developing a personal application that needs to access the Core Telephony framework.

In 4.x Core Telephony framework has gone partially public but most of its futures are still hidden and kept private.

I've joust downloaded the header files form seriot.ch

I've found a list of all the known CoreTelephony functions but i'm not able to make my code do what should be supposed to do. Some suggestion ?

In these useless case refuse all incoming calls.

  • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    // Override point for customization after application launch. [window makeKeyAndVisible];

    CTCallCenter *callCenter = [[CTCallCenter alloc] init];

    callCenter.callEventHandler = ^(CTCall* call){

    if (call.callState == CTCallStateIncoming) {

      CTCallDisconnect(call);
    

    } };

    return YES; }