From d2bac426192c074368bf78014e0d1d0ca97f3274 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Mon, 2 Sep 2019 13:45:16 +0200 Subject: [PATCH] phonenum: docs for resid parameter --- src/modules/phonenum/doc/phonenum_admin.xml | 30 ++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/src/modules/phonenum/doc/phonenum_admin.xml b/src/modules/phonenum/doc/phonenum_admin.xml index 402edfdb601..d30c2026eec 100644 --- a/src/modules/phonenum/doc/phonenum_admin.xml +++ b/src/modules/phonenum/doc/phonenum_admin.xml @@ -71,7 +71,7 @@
<varname>smode</varname> (int) - Phone number search mode. + Phone number search mode (not in use yet). @@ -87,7 +87,31 @@ modparam("phonenum", "smode", 0)
- +
+ <varname>resid</varname> (str) + + Preregister result container id during initialization, enabling the use + of the module in KEMI scripts. In native &kamailio;.cfg file, registration + is done when parsing config and finding variables. + + + + Default value is (empty). + + + + Set <varname>resid</varname> parameter + +... +modparam("phonenum", "resid", "src") +... +if(phonenum_match("1-484-555-8888", "src")) { + ... +} +... + + +
@@ -98,7 +122,7 @@ modparam("phonenum", "smode", 0) Match num against the libphonenumber and set the attributes inside - the pvc container. The function has to be called before accessing + the pvc result container. The function has to be called before accessing a key via: $phn(pvc=>key).