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

Author: Kamailio Dev <[email protected]>
Committer: Kamailio Dev <[email protected]>
Date: 2026-06-22T17:31:18+02:00

modules: readme files regenerated - phonenum ... [skip ci]

---

Modified: src/modules/phonenum/README

---

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

---

diff --git a/src/modules/phonenum/README b/src/modules/phonenum/README
index 9e23de0dfd8..c016bf63504 100644
--- a/src/modules/phonenum/README
+++ b/src/modules/phonenum/README
@@ -26,7 +26,8 @@ Daniel-Constantin Mierla
         3. Parameters
 
               3.1. smode (int)
-              3.2. resid (str)
+              3.2. shortcode (int)
+              3.3. resid (str)
 
         4. Functions
 
@@ -38,9 +39,10 @@ Daniel-Constantin Mierla
    List of Examples
 
    1.1. Set smode parameter
-   1.2. Set resid parameter
-   1.3. phonenum_match usage
-   1.4. phonenum_match_cn usage
+   1.2. Set shortcode parameter
+   1.3. Set resid parameter
+   1.4. phonenum_match usage
+   1.5. phonenum_match_cn usage
 
 Chapter 1. Admin Guide
 
@@ -55,7 +57,8 @@ Chapter 1. Admin Guide
    3. Parameters
 
         3.1. smode (int)
-        3.2. resid (str)
+        3.2. shortcode (int)
+        3.3. resid (str)
 
    4. Functions
 
@@ -98,7 +101,8 @@ Chapter 1. Admin Guide
 3. Parameters
 
    3.1. smode (int)
-   3.2. resid (str)
+   3.2. shortcode (int)
+   3.3. resid (str)
 
 3.1. smode (int)
 
@@ -111,7 +115,25 @@ Chapter 1. Admin Guide
 modparam("phonenum", "smode", 0)
 ...
 
-3.2. resid (str)
+3.2. shortcode (int)
+
+   Enable validation for short numbers (service codes) when matching with
+   phonenum_match_cn() and a region code is provided.
+
+   Default value is “0” (disabled).
+
+   Example 1.2. Set shortcode parameter
+...
+modparam("phonenum", "shortcode", 1)
+...
+if(phonenum_match_cn("115", "DE", "src")) {
+    if($phn(src=>valid)==1) {
+        xlog("DE short code accepted: $phn(src=>natnum)\n");
+    }
+}
+...
+
+3.3. resid (str)
 
    Preregister result container id during initialization, enabling the use
    of the module in KEMI scripts. In native kamailio.cfg file,
@@ -119,7 +141,7 @@ modparam("phonenum", "smode", 0)
 
    Default value is “” (empty).
 
-   Example 1.2. Set resid parameter
+   Example 1.3. Set resid parameter
 ...
 modparam("phonenum", "resid", "src")
 ...
@@ -143,7 +165,7 @@ if(phonenum_match("1-484-555-8888", "src")) {
 
    It can be used from ANY_ROUTE.
 
-   Example 1.3. phonenum_match usage
+   Example 1.4. phonenum_match usage
 ...
 if(phonenum_match("1-484-555-8888", "src")) {
     if($phn(src=>valid)==1) {
@@ -172,7 +194,7 @@ if(phonenum_match("1-484-555-8888", "src")) {
 
    It can be used from ANY_ROUTE.
 
-   Example 1.4. phonenum_match_cn usage
+   Example 1.5. phonenum_match_cn usage
 ...
 if(phonenum_match_cn("1-484-555-8888", "US", "src")) {
     if($phn(src=>valid)==1) {

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to