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

Author: Henning Westerholt <h...@gilawa.com>
Committer: Henning Westerholt <h...@gilawa.com>
Date: 2025-06-10T13:14:34Z

pdb: remove AVP references completely in docs, improve example

---

Modified: src/modules/pdb/doc/pdb_admin.xml

---

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

---

diff --git a/src/modules/pdb/doc/pdb_admin.xml 
b/src/modules/pdb/doc/pdb_admin.xml
index f638a29ed32..797fd510d82 100644
--- a/src/modules/pdb/doc/pdb_admin.xml
+++ b/src/modules/pdb/doc/pdb_admin.xml
@@ -124,27 +124,27 @@ modparam("pdb", "ll_info", 3)
                <title>Functions</title>
                <section>
            <title>
-                               <function moreinfo="none">pdb_query (string 
query, string dstavp)</function>
+                               <function moreinfo="none">pdb_query (string 
query, string dstpv)</function>
            </title>
            <para>
                                Sends the query string to all configured 
servers and stores the answer in
-                               dstavp. If it takes more than the configured 
timeout, false is returned.
+                               dstvp. If it takes more than the configured 
timeout, false is returned.
 
                                In addition to a string, any pseudo-variable 
can be used as query.
 
                                The answer must consist of the null terminated 
query string followed by
                                a two byte integer value in network byte order. 
The integer value will
-                               be stored in the given pseudo-variable dstavp.
+                               be stored in the given pseudo-variable dstvp.
            </para>
                        <example>
                                <title><function>pdb_query</function> 
usage</title>
                                <programlisting format="linespecific">
 ...
 # query external service for routing information
-if (!pdb_query("$rU", "$avp(i:82)"))
-  $avp(i:82) = 0; # default routing
+if (!pdb_query("$rU", "$avp(routing)"))
+  $avp(routing) = 0; # default routing
 }
-cr_route("$avp(i:82)", "$rd", "$rU", "$rU", "call_id");
+cr_route("$avp(routing)", "$rd", "$rU", "$rU", "call_id");
 ...
                                </programlisting>
                        </example>

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to