Commit 24e637c8 authored by François Grisez's avatar François Grisez

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
parent a8006a01
......@@ -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() {
out_call = linphone_core_invite(marie->lc,"pauline");
if(out_call == NULL) goto end;
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");
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