浏览代码

topos: debug log messages with linked contact addresses

Daniel-Constantin Mierla 7 年之前
父节点
当前提交
5bafb32fa3
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/modules/topos/tps_storage.c

+ 5 - 0
src/modules/topos/tps_storage.c

@@ -360,6 +360,11 @@ int tps_storage_link_msg(sip_msg_t *msg, tps_data_t *td, int dir)
 		}
 	}
 
+	LM_DBG("downstream: %s acontact: [%.*s] bcontact: [%.*s]\n",
+			(dir==TPS_DIR_DOWNSTREAM)?"yes":"no",
+			td->a_contact.len, (td->a_contact.len>0)?td->a_contact.s:"",
+			td->b_contact.len, (td->b_contact.len>0)?td->b_contact.s:"");
+
 	return 0;
 
 error: