JLChen
2021-08-02 38f4fb064df09f344fc3237409c76a9fba2a8a9e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
//  AppDelegate.m
//  NewTestPhone
//
//  Created by liang on 2021/3/31.
//
 
#import "AppDelegate.h"
 
#import "SMLinphoneConfig.h"
#import "LinphoneManager.h"
 
 
@interface AppDelegate ()
 
@end
 
@implementation AppDelegate
 
 
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
//    [self setLinphone];
    
    return YES;
}
 
- (void)setLinphone{
//    [[LinphoneManager instance] startLinphoneCore];
//    //sip:dnake.xswitch.cn:20401
//    //1009 、1010密码1234
//    [[SMLinphoneConfig instance] registeByUserName:@"1009" pwd:@"1234" domain:@"dnake.xswitch.cn:20401" tramsport:@"UDP"];
    
}
 
#pragma mark - UISceneSession lifecycle
 
 
- (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options {
    // Called when a new scene session is being created.
    // Use this method to select a configuration to create the new scene with.
    return [[UISceneConfiguration alloc] initWithName:@"Default Configuration" sessionRole:connectingSceneSession.role];
}
 
 
- (void)application:(UIApplication *)application didDiscardSceneSessions:(NSSet<UISceneSession *> *)sceneSessions {
    // Called when the user discards a scene session.
    // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
    // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}
 
 
@end