Add special call failure popup on UserNotFound error

This commit is contained in:
Pierre-Eric Pelloux-Prayer 2012-01-12 16:08:42 +01:00
parent 50cf044b46
commit 3604881db9
2 changed files with 8 additions and 5 deletions

View file

@ -204,12 +204,15 @@ extern void libmssilk_init();
lMessage=NSLocalizedString(@"Please make sure your device is connected to the internet and double check your SIP account configuration in the settings.",nil);
} else {
lMessage=[NSString stringWithFormat : NSLocalizedString(@"Cannot call %@",nil),lUserName];
}
if (message!=nil){
lMessage=[NSString stringWithFormat : NSLocalizedString(@"%@\nReason was: %s",nil),lMessage, message];
}
if (linphone_call_get_reason(call) == LinphoneReasonNotFound) {
lMessage=[NSString stringWithFormat : NSLocalizedString(@"'%@' not registered to Service",nil), lUserName];
} else {
if (message!=nil){
lMessage=[NSString stringWithFormat : NSLocalizedString(@"%@\nReason was: %s",nil),lMessage, message];
}
}
lTitle=NSLocalizedString(@"Call failed",nil);
UIAlertView* error = [[UIAlertView alloc] initWithTitle:lTitle

@ -1 +1 @@
Subproject commit 5bf95231b51641ce095af49a864cf00fa6837750
Subproject commit 9140451acf5f86f2b14ac1cbfca269148fc6536f