[sr-dev] git:master:da017867: tm: add a comment to tm_xdata_swap

Henning Westerholt hw at gilawa.com
Tue Aug 9 16:16:42 CEST 2022


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

Author: Henning Westerholt <hw at gilawa.com>
Committer: Henning Westerholt <hw at gilawa.com>
Date: 2022-08-09T14:15:04Z

tm: add a comment to tm_xdata_swap

---

Modified: src/modules/tm/h_table.c

---

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

---

diff --git a/src/modules/tm/h_table.c b/src/modules/tm/h_table.c
index 6149c363d4..74e47ef7d8 100644
--- a/src/modules/tm/h_table.c
+++ b/src/modules/tm/h_table.c
@@ -514,6 +514,7 @@ struct s_table *init_hash_table()
  * backup xdata from/to msg context to local var and use T lists
  * - mode = 0 - from msg context to _txdata and use T lists
  * - mode = 1 - restore to msg context from _txdata
+ * the function can be also used to restore the core context from transacation data
  */
 void tm_xdata_swap(tm_cell_t *t, tm_xlinks_t *xd, int mode)
 {




More information about the sr-dev mailing list