[sr-dev] git:master:dfd6c396: phonenum: note about the role of country code name for phonenum_match_cn()

Daniel-Constantin Mierla miconda at gmail.com
Fri Oct 2 21:38:31 CEST 2020


Module: kamailio
Branch: master
Commit: dfd6c3966ed70d111a9196076bc29767c395d814
URL: https://github.com/kamailio/kamailio/commit/dfd6c3966ed70d111a9196076bc29767c395d814

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-10-02T21:38:16+02:00

phonenum: note about the role of country code name for phonenum_match_cn()

---

Modified: src/modules/phonenum/doc/phonenum_admin.xml

---

Diff:  https://github.com/kamailio/kamailio/commit/dfd6c3966ed70d111a9196076bc29767c395d814.diff
Patch: https://github.com/kamailio/kamailio/commit/dfd6c3966ed70d111a9196076bc29767c395d814.patch

---

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>




More information about the sr-dev mailing list