mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
set correctly user-agent
This commit is contained in:
parent
faba1d00d8
commit
47b86c03e3
1 changed files with 6 additions and 7 deletions
|
|
@ -1822,13 +1822,12 @@ void networkReachabilityCallBack(SCNetworkReachabilityRef target, SCNetworkReach
|
|||
|
||||
NSString *device = [[NSMutableString alloc]
|
||||
initWithString:[NSString
|
||||
stringWithFormat:@"%@_%@_iOS%@",
|
||||
[NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleDisplayName"],
|
||||
[LinphoneUtils deviceModelIdentifier],
|
||||
UIDevice.currentDevice.systemVersion]];
|
||||
device = [device stringByReplacingOccurrencesOfString:@"," withString:@"."];
|
||||
device = [device stringByReplacingOccurrencesOfString:@" " withString:@"."];
|
||||
linphone_core_set_user_agent(theLinphoneCore, device.UTF8String, LINPHONE_IOS_VERSION);
|
||||
stringWithFormat:@"%@iOS/%@ (%@) LinphoneSDK",
|
||||
[NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleDisplayName"],
|
||||
[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"],
|
||||
[LinphoneUtils deviceModelIdentifier]]];
|
||||
|
||||
linphone_core_set_user_agent(theLinphoneCore, device.UTF8String, "4.1-221-g241bbf9 (master)"); // TODO : update Linphone_sdk_version automatically
|
||||
|
||||
_contactSipField = [self lpConfigStringForKey:@"contact_im_type_value" inSection:@"sip" withDefault:@"SIP"];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue