diff --git a/Classes/ContactDetailsTableViewController.m b/Classes/ContactDetailsTableViewController.m
index 5f2c25371..0b779b8d4 100644
--- a/Classes/ContactDetailsTableViewController.m
+++ b/Classes/ContactDetailsTableViewController.m
@@ -663,16 +663,16 @@
ABRecordSetValue(contact, kABPersonPhoneProperty, lMap, nil);
CFRelease(lMap);
} else if([path section] == 1) {
+ /* MODIFICATION prefix with sip: */
+ value = [FastAddressBook normalizeSipURI:value];
+ [textField setText:value];
+ /**/
ABMultiValueRef lcMap = ABRecordCopyValue(contact, kABPersonInstantMessageProperty);
ABMutableMultiValueRef lMap = ABMultiValueCreateMutableCopy(lcMap);
CFRelease(lcMap);
int index = ABMultiValueGetIndexForIdentifier(lMap, [entry identifier]);
CFStringRef keys[] = { kABPersonInstantMessageUsernameKey, kABPersonInstantMessageServiceKey};
- /* MODIFICATION prefix with sip:
CFTypeRef values[] = { [value copy], CONTACT_SIP_FIELD };
- */
- CFTypeRef values[] = { [FastAddressBook normalizeSipURI:value], CONTACT_SIP_FIELD };
- /**/
CFDictionaryRef lDict = CFDictionaryCreate(NULL, (const void **)&keys, (const void **)&values, 2, NULL, NULL);
ABMultiValueReplaceValueAtIndex(lMap, lDict, index);
CFRelease(lDict);
diff --git a/Classes/DialerViewController.m b/Classes/DialerViewController.m
index 61c77c9ca..dfade8c38 100644
--- a/Classes/DialerViewController.m
+++ b/Classes/DialerViewController.m
@@ -227,6 +227,10 @@ static UICompositeViewDescription *compositeDescription = nil;
return YES;
}
+- (BOOL)textFieldShouldEndEditing:(UITextField *)textField {
+ [textField setText:[FastAddressBook normalizeSipURI:[textField text]]];
+ return YES;
+}
#pragma mark - Action Functions
diff --git a/Classes/DialerViewController.xib b/Classes/DialerViewController.xib
index 0b5f30409..457b7ea95 100644
--- a/Classes/DialerViewController.xib
+++ b/Classes/DialerViewController.xib
@@ -77,7 +77,7 @@
IBCocoaTouchFramework
0
- Enter sip address or phone number...
+ sip: