Update User-Agent to be compliant with Linphone android (use git commit hash)

This commit is contained in:
Gautier Pelloux-Prayer 2014-10-29 09:44:04 +01:00
parent bd3e023dff
commit 38353256bb

View file

@ -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];