Commit 74a32770 authored by jehan's avatar jehan

-enable g729 by default

-add useragent to remote provisioning http request
parent e53d4cf7
......@@ -1872,7 +1872,7 @@ static void linphone_core_register_default_codecs(LinphoneCore *lc){
linphone_core_register_payload_type(lc,&payload_type_ilbc,"mode=30",FALSE);
linphone_core_register_payload_type(lc,&payload_type_amr,"octet-align=1",FALSE);
linphone_core_register_payload_type(lc,&payload_type_amrwb,"octet-align=1",FALSE);
linphone_core_register_payload_type(lc,&payload_type_g729,"annexb=no",FALSE);
linphone_core_register_payload_type(lc,&payload_type_g729,"annexb=yes",TRUE);
/* For AAC, we use a config value to determine if we ought to support SBR. Since it is not offically supported
* for the mpeg4-generic mime type, setting this flag to 1 will break compatibility with other clients. */
if( lp_config_get_int(lc->config, "misc", "aac_use_sbr", FALSE) ) {
......
......@@ -123,7 +123,10 @@ int linphone_remote_provisioning_download_and_apply(LinphoneCore *lc, const char
lc->provisioning_http_listener = belle_http_request_listener_create_from_callbacks(&belle_request_listener, lc);
request=belle_http_request_create("GET",uri, NULL);
request=belle_http_request_create("GET"
, uri
, belle_sip_header_create("User-Agent",linphone_core_get_user_agent(lc))
, NULL);
return belle_http_provider_send_request(lc->http_provider, request, lc->provisioning_http_listener);
} else {
......
......@@ -1463,6 +1463,7 @@ static void call_with_custom_sdp_attributes(void) {
pauline_params = linphone_core_create_call_params(pauline->lc, NULL);
linphone_call_params_add_custom_sdp_attribute(pauline_params, "weather", "bad");
linphone_call_params_add_custom_sdp_attribute(pauline_params, "working", "yes");
linphone_call_params_add_custom_sdp_attribute(pauline_params, "attribute_without_value", NULL); /*cannot be tested yet*/
linphone_call_params_add_custom_sdp_media_attribute(pauline_params, LinphoneStreamTypeAudio, "sleeping", "almost");
BC_ASSERT_TRUE(call_with_caller_params(pauline, marie, pauline_params));
linphone_call_params_unref(pauline_params);
......
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