Project

General

Profile

Bug #784

Number validation in Kannel!

Added by Vasia Pupkini4 about 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
08/24/2018
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

Dear support Kannel, many respected professionals, I will immediately say that this is not a problem! We need your professional advice in configuring Kannel. Namely, the validation of the number is of interest, for example: Suppose the valid number consists of 7 digits. Which option should be used so that the number of the sender or recipient is not more than and not less than 7 digits in order to eliminate random errors. I have an assumption that it's preferable to use the white-list-regex, but I do not think up the end :) For earlier thanks for the answer and again I apologize for writing in the wrong place.

History

#1 Updated by Vasia Pupkini4 about 1 year ago

Topic is closed.

In the beginning I chose the most primitive way:
...
unified-prefix = "+9989,009989,0;+,00"
...
white-list-regex = ^(\+|00)9989\d\d\d\d\d\d\d\d
...

Additional material:
https://stackoverflow.com/questions/123559/a-comprehensive-regex-for-phone-number-validation

Also available in: Atom PDF