Browse code

sbc: log messages in pcap format

Václav Kubart authored on 15/04/2013 08:00:36 • Raphael Coeffic committed on 22/05/2013 19:50:17
Showing 2 changed files
... ...
@@ -46,7 +46,7 @@ SBC - feature-wishlist
46 46
 #include "SBCSimpleRelay.h"
47 47
 #include "RegisterDialog.h"
48 48
 #include "SubscriptionDialog.h"
49
-#include "sip/msg_logger.h"
49
+#include "sip/pcap_logger.h"
50 50
 #include "sip/sip_parser.h"
51 51
 #include "sip/sip_trans.h"
52 52
 
... ...
@@ -689,7 +689,7 @@ bool SBCFactory::CCRoute(const AmSipRequest& req,
689 689
 			      "msg_logger_path",req);
690 690
 
691 691
       if(!call_profile.msg_logger_path.empty()) {
692
-	logger.reset(new file_msg_logger());
692
+	logger.reset(new pcap_logger());
693 693
 	if(logger->open(call_profile.msg_logger_path.c_str())) {
694 694
 	  ERROR("could not open message logger\n");
695 695
 	  logger.reset();
... ...
@@ -14,7 +14,7 @@
14 14
 #include "RegisterDialog.h"
15 15
 #include "SubscriptionDialog.h"
16 16
 
17
-#include "sip/msg_logger.h"
17
+#include "sip/pcap_logger.h"
18 18
 #include "sip/sip_parser.h"
19 19
 #include "sip/sip_trans.h"
20 20
 
... ...
@@ -1004,7 +1004,7 @@ bool SBCCallLeg::CCStart(const AmSipRequest& req) {
1004 1004
       ParamReplacerCtx ctx;
1005 1005
       string log_path = ctx.replaceParameters(call_profile.msg_logger_path,
1006 1006
 					      "msg_logger_path",req);
1007
-      file_msg_logger* logger = new file_msg_logger();
1007
+      file_msg_logger* logger = new pcap_logger();
1008 1008
       if(!logger->open(log_path.c_str())) {
1009 1009
         req.tt.lock_bucket();
1010 1010
         const sip_trans* t = req.tt.get_trans();