한국어

스마트폰앱

온누리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;

}


조회 수 :
261
등록일 :
2022.06.12
14:29:58 (*.128.199.207)
엮인글 :
http://www.webs.co.kr/index.php?document_srl=3348749&act=trackback&key=eff
게시글 주소 :
http://www.webs.co.kr/index.php?document_srl=3348749
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
35 070가입 않고 국내 유선 무선 집전화 휴대폰 전화 해외 국내에서 전화 수신 받는 방법 admin 2015-02-28 482709
34 스마트폰 앱 안드로이드 아이폰 인터넷전화 무료전화 070 FAX to Email 수신 file admin 2013-02-13 95676
33 스마트폰 070 인터넷전화 무료통화 앱 WIFI 5G 4G LTE SIP 요금절약 file admin 2014-02-11 74964
32 TCP Connection Test Program file admin 2013-09-28 49798
31 스마트폰 무제한 무료통화 앱 WIFI 2G 3G 4G LTE VOIP mVOIP SIP 요금절약 admin 2014-05-31 49008
30 070 인터넷전화 온누리 070 가입 사용방법 (휴대폰) file admin 2013-04-18 40555
29 Sipdroid wiki and english manuall file admin 2013-11-09 39457
28 Android 폰 에서 Sipdroid 설치 및 설정 전화걸기 사용방법 MVOIP file admin 2012-08-12 34566
27 스마트폰에서 SIPDroid 설치 설정 전화걸기 사용방법 admin 2012-08-02 30027
26 Acrobits 아이폰 용 sip 프로그램 Softphone 070인터넷전화 수신 잘되는 client 무료 file admin 2014-06-02 27657
25 해외 로잉 무료 스마트폰 휴대폰 070 인터넷폰 인터넷전화 국내 해외 가입 상사 주재원 교민 유학생 여행 등 file admin 2015-02-28 27110
24 Third party open source sip stacks library for Android over B4A 오픈소스 라이브러리 admin 2013-09-23 20018
23 mVoIP 보다 VoLTE가 좋은 점 admin 2013-11-21 19821
22 Compiling linphone 3.7.0 on Debian Wheezy admin 2014-10-21 19731
21 스마트폰 앱 및 인터넷전화 요금 휴대폰 45원/분 유선 35원 3분 admin 2013-02-07 19444
20 HD-Voice의 정체 admin 2014-10-09 18252
19 using a g729 codec in SipDroid Add G729 to Sipdroid admin 2014-12-28 16745
18 opus-codec Opus Interactive Audio Codec admin 2014-10-10 16273
17 카카오톡PC에서 사용하는 오픈소스 라이브러리 admin 2017-12-01 8446
16 스마트폰 070 장점 국내전화 국제전화 로밍요금 해결 꼭 사용해보세요 admin 2018-01-07 7404
15 mDNS 덕분에 SIP 네트워크 배포가 쉬워졌습니다. admin 2018-09-01 5119
14 Basic registration test sourec code admin 2019-05-06 3201
13 Pjsip 설명 정리 동작 함수 admin 2019-09-09 2760
12 linphone-iphone account code analysis admin 2022-06-11 277
11 linphone-iphone sourcecode SideMenuView code analysis admin 2022-06-14 271
» linphone-iphone popup_password_request popup code analysis admin 2022-06-12 261
9 linphone-iphone/Settings/InAppSettings.bundle/ plist file list code analysis admin 2022-06-16 244
8 linphone-iphone sourcecode SideMenuTableView code analysis admin 2022-06-16 237
7 Linphone-iphone SettingsView code analysis admin 2022-06-18 235
6 linphone-iphone call number call button code analysis admin 2022-06-18 233