| | |
| | | |
| | | signal(SIGPIPE, SIG_IGN); |
| | | |
| | | NSLog(@"willCreateLinphoneCore"); |
| | | // create linphone core |
| | | [self createLinphoneCore]; |
| | | [self.providerDelegate config]; |
| | | // _iapManager = [[InAppProductsManager alloc] init]; |
| | | NSLog(@"CreatedLinphoneCore"); |
| | | |
| | | // - Security fix - remove multi transport migration, because it enables tcp or udp, if by factoring settings only |
| | | // tls is enabled. This is a problem for new installations. |
| | |
| | | return; |
| | | } |
| | | |
| | | NSLog(@"Creating linphonecore"); |
| | | |
| | | // Set audio assets |
| | | NSString *ring = |
| | |
| | | linphone_core_cbs_set_version_update_check_result_received(cbs, linphone_iphone_version_update_check_result_received); |
| | | linphone_core_cbs_set_qrcode_found(cbs, linphone_iphone_qr_code_found); |
| | | linphone_core_cbs_set_user_data(cbs, (__bridge void *)(self)); |
| | | // NSLog(@"Creating linphonecore1:%@",_configDb); |
| | | |
| | | lp_config_set_int(_configDb, [@"app" UTF8String], [@"random_port_preference" UTF8String], 1); |
| | | |
| | | |
| | | theLinphoneCore = linphone_factory_create_core_with_config_3(factory, _configDb, NULL); |
| | | linphone_core_add_callbacks(theLinphoneCore, cbs); |
| | | linphone_core_start(theLinphoneCore); |
| | | |
| | | //è®¾ç½®ä¸ºéæºç«¯å£ |
| | | LinphoneSipTransports transportValue = {-1, -1, -1, -1}; |
| | | // will also update the sip_*_port section of the config |
| | | if (linphone_core_set_sip_transports(theLinphoneCore, &transportValue)) { |
| | | LOGE(@"cannot set transport"); |
| | | } |
| | | |
| | | [self removeAllAccounts]; |
| | | // Let the core handle cbs |
| | | linphone_core_cbs_unref(cbs); |