chenqiyang
2021-08-24 8227d1cefb20e357250a4a7fe8da32141b6cfc1e
HDLLinPhoneSDK/HDLLinPhoneSDK/HDLLPOnMonitorViewController.m
@@ -85,9 +85,21 @@
    if (self.titleName&&self.titleName.length!=0) {
        self.titleUILabel.text=self.titleName;
    }
    [NSNotificationCenter.defaultCenter addObserver:self
                                           selector:@selector(registrationUpdate:)
                                               name:@"LinphoneRegistrationUpdate"
                                             object:nil];
}
- (void)registrationUpdate:(NSNotification *)notif {
    int state = [[notif.userInfo objectForKey:@"state"] intValue];
    if(state==11){//挂断了
        NSLog(@"挂断或出错了");
        [self showUIAlertViewWithBack:@"监视结束"];
    }
}
-(void)initLlanguage{
    NSString *languageName = [[[NSUserDefaults standardUserDefaults] objectForKey:@"AppleLanguages"] objectAtIndex:0];