mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-03 19:59:36 +00:00
Fix regretion of linphone_core_interpret_url()
It didn't use anymore the default proxy config to interpret urls without domain name. For instance, NULL was returned when passing "pauline" as parameter even if a default proxy config had been declared. An assert has also been added in "QualityReporting/Call term session report not sent if call did not start" to handle the case when linphone_core_invite() return NULL
This commit is contained in:
parent
a8006a0160
commit
24e637c865
2 changed files with 5 additions and 1 deletions
|
|
@ -2550,7 +2550,8 @@ void linphone_core_iterate(LinphoneCore *lc){
|
|||
}
|
||||
|
||||
LinphoneAddress * linphone_core_interpret_url(LinphoneCore *lc, const char *url){
|
||||
return linphone_proxy_config_normalize_sip_uri(NULL, url);
|
||||
LinphoneProxyConfig *proxy = linphone_core_get_default_proxy_config(lc);
|
||||
return linphone_proxy_config_normalize_sip_uri(proxy, url);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -170,6 +170,8 @@ static void quality_reporting_not_sent_if_call_not_started() {
|
|||
|
||||
linphone_core_set_max_calls(pauline->lc,0);
|
||||
out_call = linphone_core_invite(marie->lc,"pauline");
|
||||
BC_ASSERT_PTR_NOT_NULL(out_call);
|
||||
if(out_call == NULL) goto end;
|
||||
linphone_call_ref(out_call);
|
||||
|
||||
BC_ASSERT_TRUE(wait_for_until(marie->lc,pauline->lc,&marie->stat.number_of_LinphoneCallError,1, 10000));
|
||||
|
|
@ -189,6 +191,7 @@ static void quality_reporting_not_sent_if_call_not_started() {
|
|||
BC_ASSERT_EQUAL(marie->stat.number_of_LinphonePublishProgress,0, int, "%d");
|
||||
BC_ASSERT_EQUAL(marie->stat.number_of_LinphonePublishOk,0, int, "%d");
|
||||
|
||||
end:
|
||||
linphone_core_manager_destroy(marie);
|
||||
linphone_core_manager_destroy(pauline);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue