한국어

스마트폰앱

온누리070 플레이스토어 다운로드
    acrobits softphone
     온누리 070 카카오 프러스 친구추가온누리 070 카카오 프러스 친구추가친추
     카카오톡 채팅 상담 카카오톡 채팅 상담카톡
    
     라인상담
     라인으로 공유

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app



linphone_iphone_popup_password_request


LinphoneManager.m

createLinphoneCore

https://github.com/BelledonneCommunications/linphone-iphone/blob/e10cb36cad2051de4690c6740bc9a54904cb84a1/Classes/LinphoneManager.m

- (void)createLinphoneCore {

linphone_core_cbs_set_authentication_requested(cbs, linphone_iphone_popup_password_request);



//LinphoneManager.m

linphone_iphone_popup_password_request

linphone_core_cbs_set_authentication_requested(cbs, linphone_iphone_popup_password_request);

https://github.com/BelledonneCommunications/linphone-iphone/blob/e10cb36cad2051de4690c6740bc9a54904cb84a1/Classes/LinphoneManager.m



#pragma mark - Auth info Function


static void linphone_iphone_popup_password_request(LinphoneCore *lc, LinphoneAuthInfo *auth_info, LinphoneAuthMethod method) {

// let the wizard handle its own errors

if ([PhoneMainView.instance currentView] != AssistantView.compositeViewDescription) {

const char * realmC = linphone_auth_info_get_realm(auth_info);

const char * usernameC = linphone_auth_info_get_username(auth_info) ? : "";

const char * domainC = linphone_auth_info_get_domain(auth_info) ? : "";

static UIAlertController *alertView = nil;

// InstantMessageDeliveryNotifications from previous accounts can trigger some pop-up spam asking for indentification

// Try to filter the popup password request to avoid displaying those that do not matter and can be handled through a simple warning

const MSList *accountList = linphone_core_get_account_list(LC);

bool foundMatchingConfig = false;

while (accountList && !foundMatchingConfig) {

LinphoneAccountParams const *accountParams = linphone_account_get_params(accountList->data);

const char * configUsername = linphone_address_get_username(linphone_account_params_get_identity_address(accountParams));

const char * configDomain = linphone_account_params_get_domain(accountParams);

foundMatchingConfig = (strcmp(configUsername, usernameC) == 0) && (strcmp(configDomain, domainC) == 0);

accountList = accountList->next;

}

if (!foundMatchingConfig) {

LOGW(@"Received an authentication request from %s@%s, but ignored it did not match any current user", usernameC, domainC);

return;

}

// avoid having multiple popups

[PhoneMainView.instance dismissViewControllerAnimated:YES completion:nil];


// dont pop up if we are in background, in any case we will refresh registers when entering

// the application again

if ([[UIApplication sharedApplication] applicationState] != UIApplicationStateActive) {

return;

}


NSString *realm = [NSString stringWithUTF8String:realmC?:domainC];

NSString *username = [NSString stringWithUTF8String:usernameC];

NSString *domain = [NSString stringWithUTF8String:domainC];

alertView = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"Authentification needed", nil)

     message:[NSString stringWithFormat:NSLocalizedString(@"Connection failed because authentication is "

  @"missing or invalid for %@@%@.\nYou can "

  @"provide password again, or check your "

  @"account configuration in the settings.", nil), username, realm]

     preferredStyle:UIAlertControllerStyleAlert];


UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Cancel", nil)

style:UIAlertActionStyleDefault

handler:^(UIAlertAction * action) {}];


[alertView addTextFieldWithConfigurationHandler:^(UITextField *textField) {

textField.placeholder = NSLocalizedString(@"Password", nil);

textField.clearButtonMode = UITextFieldViewModeWhileEditing;

textField.borderStyle = UITextBorderStyleRoundedRect;

textField.secureTextEntry = YES;

}];


UIAlertAction* continueAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Confirm password", nil)

style:UIAlertActionStyleDefault

handler:^(UIAlertAction * action) {

NSString *password = alertView.textFields[0].text;

LinphoneAuthInfo *info =

linphone_auth_info_new(username.UTF8String, NULL, password.UTF8String, NULL,

       realm.UTF8String, domain.UTF8String);

linphone_core_add_auth_info(LC, info);

[LinphoneManager.instance refreshRegisters];

}];


UIAlertAction* settingsAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Go to settings", nil)

style:UIAlertActionStyleDefault

handler:^(UIAlertAction * action) {

[PhoneMainView.instance changeCurrentView:SettingsView.compositeViewDescription];

}];


[alertView addAction:defaultAction];

[alertView addAction:continueAction];

[alertView addAction:settingsAction];

[PhoneMainView.instance presentViewController:alertView animated:YES completion:nil];

}

}


liblinphone/coreapi/linphonecore.c

linphone_core_cbs_set_authentication_requested

https://github.com/BelledonneCommunications/liblinphone/blob/d73e31d6ae2e9ba4a909430b2f1ab52d004a5906/coreapi/linphonecore.c


void linphone_core_cbs_set_authentication_requested(LinphoneCoreCbs *cbs, LinphoneCoreCbsAuthenticationRequestedCb cb) {

cbs->vtable->authentication_requested = cb;

}


조회 수 :
8683
등록일 :
2022.06.12
14:29:58 (*.128.199.207)
엮인글 :
http://www.webs.co.kr/index.php?document_srl=3348749&act=trackback&key=ade
게시글 주소 :
http://www.webs.co.kr/index.php?document_srl=3348749
List of Articles
번호 제목 글쓴이 조회 수 추천 수 날짜
35 linphone _MSFactory admin 8616   2022-08-29
 
34 linphone-iphone CallKit reportIncomingCall code analyze admin 8697   2022-07-16
 
33 linphone-iphone SettingsView settingsStore removeAccount admin 8637   2022-06-22
 
32 Linphone-iphone AssistantView code analysis admin 8565   2022-06-22
 
31 linphone-iphone IASKSettingsReader .plist-> locateSettingsFile -> setSettingsBundle save admin 8785   2022-06-20
 
30 linphone-iphone IASKSettingsReader IASKSpecifier code analysis admin 8575   2022-06-19
 
29 Linphone-iphone SettingsView code analysis admin 8482   2022-06-18
 
28 linphone-iphone call number call button code analysis admin 8586   2022-06-18
 
27 linphone-iphone/Settings/InAppSettings.bundle/ plist file list code analysis admin 8371   2022-06-16
 
26 linphone-iphone sourcecode SideMenuTableView code analysis admin 8648   2022-06-16
 
25 linphone-iphone sourcecode SideMenuView code analysis admin 8511   2022-06-14
 
» linphone-iphone popup_password_request popup code analysis admin 8683   2022-06-12
linphone_iphone_popup_password_request LinphoneManager.m createLinphoneCore https://github.com/BelledonneCommunications/linphone-iphone/blob/e10cb36cad2051de4690c6740bc9a54904cb84a1/Classes/LinphoneManager.m - (void)creat...  
23 linphone-iphone account code analysis admin 8580   2022-06-11
 
22 Pjsip 설명 정리 동작 함수 admin 14033   2019-09-09
 
21 Basic registration test sourec code admin 13795   2019-05-06
 
20 mDNS 덕분에 SIP 네트워크 배포가 쉬워졌습니다. admin 13790   2018-09-01
 
19 스마트폰 070 장점 국내전화 국제전화 로밍요금 해결 꼭 사용해보세요 admin 16513   2018-01-07
 
18 카카오톡PC에서 사용하는 오픈소스 라이브러리 admin 18814   2017-12-01
 
17 해외 로잉 무료 스마트폰 휴대폰 070 인터넷폰 인터넷전화 국내 해외 가입 상사 주재원 교민 유학생 여행 등 file admin 37233   2015-02-28
 
16 070가입 않고 국내 유선 무선 집전화 휴대폰 전화 해외 국내에서 전화 수신 받는 방법 admin 527165   2015-02-28
 
15 using a g729 codec in SipDroid Add G729 to Sipdroid admin 26441   2014-12-28
 
14 Compiling linphone 3.7.0 on Debian Wheezy admin 27845   2014-10-21
 
13 opus-codec Opus Interactive Audio Codec admin 27520   2014-10-10
 
12 HD-Voice의 정체 admin 29274   2014-10-09
 
11 Acrobits 아이폰 용 sip 프로그램 Softphone 070인터넷전화 수신 잘되는 client 무료 admin 39474   2014-06-02
 
10 스마트폰 무제한 무료통화 앱 WIFI 2G 3G 4G LTE VOIP mVOIP SIP 요금절약 admin 75493   2014-05-31
 
9 스마트폰 070 인터넷전화 무료통화 앱 WIFI 5G 4G LTE SIP 요금절약 file admin 86165   2014-02-11
 
8 mVoIP 보다 VoLTE가 좋은 점 admin 28436   2013-11-21
 
7 Sipdroid wiki and english manuall file admin 73022   2013-11-09
 
6 TCP Connection Test Program file admin 76619   2013-09-28