mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 03:28:07 +00:00
account_creator.c: fix phone
This commit is contained in:
parent
7e3f3ac46f
commit
2aa8e46934
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue