From 755867b920e4e0d17a4bdf447a0d59a06875f8e1 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Fri, 2 Oct 2020 21:37:15 +0200 Subject: [PATCH] phonenum: note about the role of country code name for phonenum_match_cn() (cherry picked from commit dfd6c3966ed70d111a9196076bc29767c395d814) --- src/modules/phonenum/doc/phonenum_admin.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/modules/phonenum/doc/phonenum_admin.xml b/src/modules/phonenum/doc/phonenum_admin.xml index d30c2026eec..f3a3e98ede0 100644 --- a/src/modules/phonenum/doc/phonenum_admin.xml +++ b/src/modules/phonenum/doc/phonenum_admin.xml @@ -156,6 +156,14 @@ if(phonenum_match("1-484-555-8888", "src")) { (two letter, e.g: "DE", "US", "ES"). The function has to be called before accessing a key via: $phn(pvc=>key). + + Note from libphonenumber library docs: country name code is the region + that is expected the number to be from. It is only used if the number + being parsed is not written in international format. The country code + for the number in this case would be stored as that of the region + supplied. If the number is guaranteed to start with a '+' followed + by the country calling code, then region 'ZZ'. + The parameters can be static strings or strings with variables.