fix device name in section user-agent

This commit is contained in:
Danmei Chen 2019-03-25 13:56:07 +01:00
parent 30baa29cfc
commit 86f6e73283

View file

@ -1840,7 +1840,7 @@ void networkReachabilityCallBack(SCNetworkReachabilityRef target, SCNetworkReach
stringWithFormat:@"%@iOS/%@ (%@) LinphoneSDK",
[NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleDisplayName"],
[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"],
[LinphoneUtils deviceModelIdentifier]]];
[[UIDevice currentDevice] name]]];
linphone_core_set_user_agent(theLinphoneCore, device.UTF8String, "4.1-221-g241bbf9 (master)"); // TODO : update Linphone_sdk_version automatically