[sr-dev] git:master:3a19b122: modules/ims_charging: add direction for Ro session in debug print

jaybeepee jason.penton at gmail.com
Wed Nov 11 12:41:49 CET 2015


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

Author: jaybeepee <jason.penton at gmail.com>
Committer: jaybeepee <jason.penton at gmail.com>
Date: 2015-11-11T13:41:32+02:00

modules/ims_charging: add direction for Ro session in debug print

---

Modified: modules/ims_charging/ims_ro.c

---

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

---

diff --git a/modules/ims_charging/ims_ro.c b/modules/ims_charging/ims_ro.c
index 2d6c84a..f736311 100644
--- a/modules/ims_charging/ims_ro.c
+++ b/modules/ims_charging/ims_ro.c
@@ -973,13 +973,12 @@ int Ro_Send_CCR(struct sip_msg *msg, struct dlg_cell *dlg, int dir, int reservat
 
     int sdp_stream_num = 0;
 
-    LM_DBG("Sending initial CCR request for reservation_units [%d] incoming_trunk_id [%.*s] outgoing_trunk_id [%.*s]\n",
-            reservation_units,
+    LM_DBG("Sending initial CCR request (%c) for reservation_units [%d] incoming_trunk_id [%.*s] outgoing_trunk_id [%.*s]\n",
+	dir==RO_ORIG_DIRECTION?'O':'T',
+			reservation_units,
             incoming_trunk_id->len, incoming_trunk_id->s,
             outgoing_trunk_id->len, outgoing_trunk_id->s);
 
-
-
     ssd = shm_malloc(sizeof (struct session_setup_data)); // lookup structure used to load session info from cdp callback on CCA
     if (!ssd) {
         LM_ERR("no more shm mem\n");




More information about the sr-dev mailing list