From a85bce34309ee3e48cd961d835c492a40d8b1f82 Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Thu, 6 Oct 2016 17:12:17 +0200 Subject: [PATCH] Fix set_phone_number --- coreapi/account_creator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/account_creator.c b/coreapi/account_creator.c index f98146d07..4a13fc551 100644 --- a/coreapi/account_creator.c +++ b/coreapi/account_creator.c @@ -302,7 +302,7 @@ LinphoneAccountCreatorStatus linphone_account_creator_set_phone_number(LinphoneA // if phone is valid, we lastly want to check that length is OK { - const LinphoneDialPlan* plan = linphone_dial_plan_by_ccc(country_code); + const LinphoneDialPlan* plan = linphone_dial_plan_by_ccc(creator->phone_country_code); int size = (int)strlen(phone_number); if (linphone_dial_plan_is_generic(plan)) { return LinphoneAccountCreatorCountryCodeInvalid;