Module: kamailio
Branch: 5.3
Commit: 1eecbb239cce980cebd9e3853cc4e06fb5dd2da9
URL:
https://github.com/kamailio/kamailio/commit/1eecbb239cce980cebd9e3853cc4e06…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-10-12T10:31:55+02:00
phonenum: note about the role of country code name for phonenum_match_cn()
(cherry picked from commit dfd6c3966ed70d111a9196076bc29767c395d814)
(cherry picked from commit 755867b920e4e0d17a4bdf447a0d59a06875f8e1)
---
Modified: src/modules/phonenum/doc/phonenum_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/1eecbb239cce980cebd9e3853cc4e06…
Patch:
https://github.com/kamailio/kamailio/commit/1eecbb239cce980cebd9e3853cc4e06…
---
diff --git a/src/modules/phonenum/doc/phonenum_admin.xml
b/src/modules/phonenum/doc/phonenum_admin.xml
index d30c2026ee..f3a3e98ede 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).
</para>
+ <para>
+ 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'.
+ </para>
<para>
The parameters can be static strings or strings with variables.
</para>