Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix]: Added a method to resign after involuntary disconnection, GitHub ... #116

Merged
merged 1 commit into from
Mar 1, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Classes/WizardViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,9 @@ - (void)registrationUpdate:(LinphoneRegistrationState)state message:(NSString*)m
case LinphoneRegistrationNone:
case LinphoneRegistrationCleared: {
[waitView setHidden:true];
if (LinphoneGlobalShutdown) {
[self resign];
}
break;
}
case LinphoneRegistrationFailed: {
Expand Down Expand Up @@ -1794,4 +1797,20 @@ - (void)recoverPasswordForPhoneNumber:(NSString *)phoneNumber andCountryCode:(NS
}
}

# pragma mark - Resign

- (void) resign {

NSString *phone = self.phoneNumberRegisterField.text;
NSString *password = self.passwordRegisterField.text;
NSString *domain = self.domainRegisterField.text;


[self checkIsSameUserSigningIn:phone];
[self.waitView setHidden:false];
[self addProxyConfig:[[LinphoneManager instance] cleanPhoneNumber:phone] password:password domain:domain withTransport:@"tcp"];


}

@end