set linphonec as user-agent for linphonec

parent 5cf381b6
...@@ -701,7 +701,6 @@ linphonec_init(int argc, char **argv) ...@@ -701,7 +701,6 @@ linphonec_init(int argc, char **argv)
default: default:
break; break;
} }
#ifdef ENABLE_NLS #ifdef ENABLE_NLS
if (NULL == bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR)) if (NULL == bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR))
perror ("bindtextdomain failed"); perror ("bindtextdomain failed");
...@@ -741,6 +740,8 @@ linphonec_init(int argc, char **argv) ...@@ -741,6 +740,8 @@ linphonec_init(int argc, char **argv)
* Initialize linphone core * Initialize linphone core
*/ */
linphonec=linphone_core_new (&linphonec_vtable, configfile_name, factory_configfile_name, NULL); linphonec=linphone_core_new (&linphonec_vtable, configfile_name, factory_configfile_name, NULL);
linphone_core_set_user_agent(linphonec,"Linphonec", LINPHONE_VERSION);
linphone_core_set_zrtp_secrets_file(linphonec,zrtpsecrets); linphone_core_set_zrtp_secrets_file(linphonec,zrtpsecrets);
linphone_core_enable_video_capture(linphonec, vcap_enabled); linphone_core_enable_video_capture(linphonec, vcap_enabled);
linphone_core_enable_video_display(linphonec, display_enabled); linphone_core_enable_video_display(linphonec, display_enabled);
...@@ -1159,7 +1160,6 @@ linphonec_main_loop (LinphoneCore * opm) ...@@ -1159,7 +1160,6 @@ linphonec_main_loop (LinphoneCore * opm)
add_history(iptr); add_history(iptr);
} }
#endif #endif
linphonec_parse_command_line(linphonec, iptr); linphonec_parse_command_line(linphonec, iptr);
linphonec_command_finished(); linphonec_command_finished();
free(input); free(input);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment