Jelajahi Sumber

cbp parameters introduced

Jiri Kuthan 22 tahun lalu
induk
melakukan
1c1e275d58
2 mengubah file dengan 6 tambahan dan 2 penghapusan
  1. 4 0
      modules/tm/t_hooks.h
  2. 2 2
      modules/tm/uac.c

+ 4 - 0
modules/tm/t_hooks.h

@@ -142,6 +142,10 @@ typedef enum {
 	note that callbacks MUST be installed before forking
 	note that callbacks MUST be installed before forking
     (callback lists do not live in shmem and have no access
     (callback lists do not live in shmem and have no access
 	protection), i.e., at best from mod_init functions.
 	protection), i.e., at best from mod_init functions.
+
+	also, note: the callback param is currently not used;
+	if whoever wishes to use a callback parameter, use
+	trans->cbp
 */
 */
 
 
 typedef void (transaction_cb) ( struct cell* t, struct sip_msg* msg, 
 typedef void (transaction_cb) ( struct cell* t, struct sip_msg* msg, 

+ 2 - 2
modules/tm/uac.c

@@ -281,8 +281,8 @@ static struct socket_info *uri2sock( str *uri, union sockaddr_union *to_su,
  *           'headers' parameter
  *           'headers' parameter
  * - cb ..   callback to be called when transaction completes; if none
  * - cb ..   callback to be called when transaction completes; if none
  *           present, no callback will be called
  *           present, no callback will be called
- * - cbp ..  callback parameter -- value passed to callback function
- *           when called
+ * - cbp ..  callback parameter -- value stored in transaction context
+ *           
  *
  *
  */
  */
 int t_uac_dlg(str* msg,                     /* Type of the message - MESSAGE, OPTIONS etc. */
 int t_uac_dlg(str* msg,                     /* Type of the message - MESSAGE, OPTIONS etc. */