소스 검색

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

jaybeepee 10 년 전
부모
커밋
3a19b12257
1개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 4
      modules/ims_charging/ims_ro.c

+ 3 - 4
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");