Module: kamailio
Branch: 5.4
Commit: 755867b920e4e0d17a4bdf447a0d59a06875f8e1
URL:
https://github.com/kamailio/kamailio/commit/755867b920e4e0d17a4bdf447a0d59a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-10-12T10:11:45+02:00
phonenum: note about the role of country code name for phonenum_match_cn()
(cherry picked from commit dfd6c3966ed70d111a9196076bc29767c395d814)
---
Modified: src/modules/phonenum/doc/phonenum_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/755867b920e4e0d17a4bdf447a0d59a…
Patch:
https://github.com/kamailio/kamailio/commit/755867b920e4e0d17a4bdf447a0d59a…
---
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>