diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index a1b0015ba..faeeca9e7 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -1148,8 +1148,8 @@ static LinphoneCoreVTable linphonec_vtable = { NSString *chatDBFileName = [LinphoneManager documentFile:kLinphoneInternalChatDBFilename]; const char* lRootCa = [[LinphoneManager bundleFile:@"rootca.pem"] cStringUsingEncoding:[NSString defaultCStringEncoding]]; - linphone_core_set_user_agent(theLinphoneCore,"LinphoneIPhone", - [[[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString*)kCFBundleVersionKey] UTF8String]); + linphone_core_set_user_agent(theLinphoneCore,"LinphoneIPhone", linphone_core_get_version()); + [_contactSipField release]; _contactSipField = [[self lpConfigStringForKey:@"contact_im_type_value" withDefault:@"SIP"] retain];