account_creator.c: fix phone

This commit is contained in:
Gautier Pelloux-Prayer 2016-08-29 14:42:23 +02:00
parent 7e3f3ac46f
commit 2aa8e46934

View file

@ -299,7 +299,7 @@ LinphoneAccountCreatorStatus linphone_account_creator_set_phone_number(LinphoneA
{
const LinphoneDialPlan* plan = linphone_dial_plan_by_ccc(country_code);
int size = (int)strlen(phone_number);
if (size < plan->nnl) {
if (size < plan->nnl - 1) {
return LinphoneAccountCreatorPhoneNumberTooShort;
} else if (size > plan->nnl + 1) {
return LinphoneAccountCreatorPhoneNumberTooLong;