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

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

pdb: remove AVP references completely, add some doxygen notes for helper 
function

---

Modified: src/modules/pdb/pdb.c

---

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

---

diff --git a/src/modules/pdb/pdb.c b/src/modules/pdb/pdb.c
index 1add3e1a075..eb6731d4ce7 100644
--- a/src/modules/pdb/pdb.c
+++ b/src/modules/pdb/pdb.c
@@ -216,7 +216,7 @@ int ki_pdb_query(sip_msg_t *_msg, str *number, str *dstvar)
  *
  * @param _msg the current SIP message
  * @param _number the phone number to query
- * @param _dstavp the name of the AVP where to store the result
+ * @param _dstvar the name of the pv where to store the result
  *
  * @return 1 on success, -1 on failure
  */
@@ -234,7 +234,13 @@ int pdb_query(sip_msg_t *_msg, str *_number, str *_dstvar)
 
 
 /*!
- * \return 1 if query for the number succeeded and the avp with the 
corresponding carrier id was set,
+ * Helper function for queries
+ *
+ * @param _msg the current SIP message
+ * @param number the phone number to query
+ * @param dstvar the name of the pv where to store the result
+ *
+ * @return 1 if query for the number succeeded and the pv with the 
corresponding carrier id was set,
  * -1 otherwise
  */
 int ki_pdb_query_helper(sip_msg_t *_msg, str *number, pv_spec_t *dvar)
@@ -495,7 +501,7 @@ int pdb_query_fixup(void **arg, int arg_no)
                        return -1;
                }
        } else if(arg_no == 2) {
-               /* destination avp name */
+               /* destination pv name */
                if(fixup_pvar_null(arg, 1) != 0) {
                        LM_ERR("cannot fixup parameter %d\n", arg_no);
                        return -1;

_______________________________________________
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