mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
Set LinphoneIPhone as user agent
This commit is contained in:
parent
19be7093e6
commit
6e953d10f3
1 changed files with 2 additions and 0 deletions
|
|
@ -762,6 +762,8 @@ static LinphoneCoreVTable linphonec_vtable = {
|
|||
linphone_core_enable_logs_with_cb((OrtpLogFunc)linphone_iphone_log_handler);
|
||||
}
|
||||
[LinphoneLogger logc:LinphoneLoggerLog format:"Create linphonecore"];
|
||||
linphone_core_set_user_agent([@"LinphoneIPhone" UTF8String],
|
||||
[[[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString*)kCFBundleVersionKey] UTF8String]);
|
||||
theLinphoneCore = linphone_core_new (&linphonec_vtable
|
||||
, [confiFileName cStringUsingEncoding:[NSString defaultCStringEncoding]]
|
||||
, [factoryConfig cStringUsingEncoding:[NSString defaultCStringEncoding]]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue