From 38353256bb9a5fb972cdbaaefd01626604b51420 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Wed, 29 Oct 2014 09:44:04 +0100 Subject: [PATCH] Update User-Agent to be compliant with Linphone android (use git commit hash) --- Classes/LinphoneManager.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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];