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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2018-03-21T14:59:29+01:00

phonenum: docs - updated pv names to match c code

---

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

---

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

---

diff --git a/src/modules/phonenum/doc/phonenum_admin.xml 
b/src/modules/phonenum/doc/phonenum_admin.xml
index 1b13cfb2b9..16e85c5766 100644
--- a/src/modules/phonenum/doc/phonenum_admin.xml
+++ b/src/modules/phonenum/doc/phonenum_admin.xml
@@ -111,8 +111,13 @@ modparam("phonenum", "smode", 0)
                <title><function>phonenum_match</function> usage</title>
                <programlisting format="linespecific">
 ...
-if(phonenum_match("1-484-555-8888", "src"))
-    xlog("number normalized to: $phn(src=&gt;num)\n");
+if(phonenum_match("1-484-555-8888", "src")) {
+    if($phn(src=&gt;valid)==1) {
+        xlog("number normalized to: $phn(src=&gt;normalized)\n");
+    } else {
+        xlog("number normalization error: $phn(src=&gt;error)\n");
+    }
+}
 ...
 </programlisting>
            </example>
@@ -131,16 +136,27 @@ if(phonenum_match("1-484-555-8888", "src"))
                                </para>
                        <itemizedlist>
                                <listitem><para>
-                                       <emphasis>number</emphasis> - 
normalized phone number
+                                       <emphasis>number</emphasis> - phone 
number that is matched
                                </para></listitem>
                                <listitem><para>
-                                       <emphasis>country</emphasis> - country 
for phone number
+                                       <emphasis>valid</emphasis> - 1 if the 
matched number has a
+                                       valid result; 0 otherwise
                                </para></listitem>
                                <listitem><para>
-                                       <emphasis>region</emphasis> - region 
for phone number
+                                       <emphasis>normalized</emphasis> - 
normalized phone number
                                </para></listitem>
                                <listitem><para>
-                                       <emphasis>operator</emphasis> - 
operator for phone number
+                                       <emphasis>cctel</emphasis> - country 
code for phone number
+                               </para></listitem>
+                               <listitem><para>
+                                       <emphasis>ltype</emphasis> - local 
network type
+                               </para></listitem>
+                               <listitem><para>
+                                       <emphasis>ndesc</emphasis> - phone 
number description
+                               </para></listitem>
+                               <listitem><para>
+                                       <emphasis>error</emphasis> - error 
string if phone number
+                                       matching fails.
                                </para></listitem>
                        </itemizedlist>
                        </listitem>


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to